-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Hydro language docs #1633
Comments
I think the way we should think about this is not as "operators" or a "grammar". It's just a Rust API, the same as tokio or Rust iterators (in particular, the "operators" available vary wildly based on type context). So I don't think it's particularly feasible to auto-gen a page with all the operators, instead we should flesh out the Rustdoc and point to https://hydro.run/rustdoc/hydro_lang/stream/struct.Stream. And also have human-written doc pages for the different collections type to provide more conceptual intuition. |
I'm fine not calling it a grammar, you're right. But I absolutely think we
should have a single page in the docs for all the hydro operators (the
API). I refer to the DFIR operators doc all the time.
…On Tue, Jan 7, 2025 at 11:32 AM Shadaj Laddad ***@***.***> wrote:
I think the way we should think about this is not as "operators" or a
"grammar". It's *just* a Rust API, the same as tokio or Rust iterators
(in particular, the "operators" available vary wildly based on type
context). So I don't think it's particularly feasible to auto-gen a page
with all the operators, instead we should flesh out the Rustdoc and point
to https://hydro.run/rustdoc/hydro_lang/stream/struct.Stream. And also
have human-written doc pages for the different collections type to provide
more conceptual intuition.
—
Reply to this email directly, view it on GitHub
<#1633 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC54QKQNKRUIPT732JWEXD2JQTURAVCNFSM6AAAAABUYD3NMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWGA3TIOBZGE>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
I think the tricky difference is unlike DFIR we have streams vs singletons vs optionals which use independent sets of operators. Also unlike DFIR we can use standard Rust tooling for documenting APIs, so I'd prefer to avoid redundancy and instead have a shortcut to this on the website. |
So the key entry points are the following?
We need a landing page for those and then rustdocs for the operators. |
We need a doc with legal Hydro operators.
The text was updated successfully, but these errors were encountered: