Nix Documentation | 405 Members | |
| Discussion about documentation improvements around the Nix ecosystem | 81 Servers |
| Sender | Message | Time |
|---|---|---|
| 16 Jan 2024 | ||
| * I think I understand sufficiently now: "executing sequential steps" here refers to explicit sequencing of computing operations. There is no explicit sequencing of computing operations. Only implicit sequencing of computing operations through specification of data dependencies is allowed. | 05:45:47 | |
| * I think I understand sufficiently now: "executing sequential steps" here refers to explicit sequencing of computing operations. There is no explicit sequencing of computing operations. Sequencing of computing operations only happens implicitly through specification of data dependencies. | 05:46:09 | |
In reply to @bzzm3r:matrix.orgThat’s right, it’s not exactly right. Of course the evaluator does things in some sequence, you just don’t have much control over it. The “executing sequential steps” is an old fragment I took from something or someone. Feel free to suggest a rewording in a PR | 07:09:49 | |
In reply to @bzzm3r:matrix.org* That’s right, it’s not very precise and, if you think too hard about it, potentially misleading. Of course the evaluator does things in some sequence, you just don’t have much control over it. The “executing sequential steps” is an old fragment I took from something or someone. Feel free to suggest a rewording in a PR | 07:10:20 | |
| Thinking too hard about stuff usually reveals that it’s all a scam… | 07:11:37 | |
| Sounds good. Currently I'm working on a PR to enable auto-formatting of EBNF in the Nix (reference) manual. (Rather than manually formatting the markdown...) | 07:11:38 | |
In reply to @bzzm3r:matrix.orgThat would be cool. Just writing down the EBNF would be way cooler though because the first is cosmetic while the second is essential. | 07:12:48 | |
In reply to @bzzm3r:matrix.org* That would be cool. Just writing down the EBNF in the first place would be way cooler though because the first is cosmetic while the second is essential. | 07:12:58 | |
In reply to @fricklerhandwerk:matrix.org I can do that first quite happily! But then it won't live in the docs "properly", as it won't be formatted per the contributing instructions. Perhaps it can just live in a side branch, where it can still receive reviews? | 07:13:48 | |
| I was not thrilled when I found out how the EBNF had to be formatted. | 07:14:08 | |
| So if I can skip that all together for now, I'd be much happier, yes. | 07:14:17 | |
In reply to @bzzm3r:matrix.orgThere are no real conventions for it, it just started adding stuff using some dreamt-up EBNF syntax from my faulty memory and wrapping it in a block quote for highlighting. | 07:15:21 | |
| (The other thing I was noticing while writing out the EBNF: it would be very, very nice to be able to link between meta-identifiers. So that would be missing in the first pass too, hopefully not to the chagrin of reviewers.) | 07:15:28 | |
| Yeah, the block quotes are what I am referring to: backticking each piece..., putting > | 07:16:03 | |
| Well, I'll give it a go, maybe I was being too lazy. | 07:16:11 | |
In reply to @bzzm3r:matrix.orgAll of that would be super nice to have, but it doesn’t matter as long as nothing is written down to begin with. Stressing out about those details just postpones the writing. | 07:16:52 | |
| Alright, will re-prioritize. Expect something even sooner | 07:17:25 | |
| (Will do it piecemeal too) | 07:17:33 | |
| * (Will do it piecemeal too, tiny PRs) | 07:17:40 | |
In reply to @bzzm3r:matrix.orgJust give it a go. If I’m at the keyboard I can always fix it up. | 07:17:42 | |
| fricklerhandwerk: https://github.com/NixOS/nix/pull/9783 I forced myself to stay small. Tried to put most of that aside to prioritize "keep it small" and "get feedback fast and early"; punted plenty to todo lists, and the "Draft" status of the PR. | 09:05:14 | |
| * fricklerhandwerk: https://github.com/NixOS/nix/pull/9783 I forced myself to stay small. Tried to put most of what I felt would be necessary in a final product aside to prioritize "keep it small" and "get feedback fast and early"; punted plenty to todo lists, and the "Draft" status of the PR. | 09:06:07 | |
| Am I right in thinking the next part of this PR should be a push which has a guide to the EBNF we plan on using? As much as possible, I want to eliminate (Ideally, we would have "raw" EBNF live in a bunch of separate files, which are processed and formatted as markdown, then inserted into the guide for presentation. These files can then also be used to drive parsers. During the processing stage, inter-linking would be performed as well, between the EBNF, and those regions of the documentation that mention something from the EBNF.) | 09:13:47 | |
| * Am I right in thinking the next part of this PR should be a push which has a guide to the EBNF we plan on using? Especially because: as much as possible, I want to eliminate (Ideally, we would have "raw" EBNF live in a bunch of separate files, which are processed and formatted as markdown, then inserted into the guide for presentation. These files can then also be used to drive parsers. During the processing stage, inter-linking would be performed as well, between the EBNF, and those regions of the documentation that mention something from the EBNF.) | 09:15:21 | |
| are there any downsides to using
(is the same as)
This could also be presented as:
| 23:33:29 | |
I guess the stuff around nix-repl> looks noisy, perhaps. Are there any other downsides? | 23:35:07 | |
| 17 Jan 2024 | ||
| * are there any downsides to using
(whole bunch of language explaining "this is the same as"....)
This could also be presented as:
| 05:04:55 | |
| While there’s no one currently working on it to my knowledge (although Shahar "Dawn" Or (mightyiam) has started work in that direction last year), REPL examples would probably be more hassle for automatic testing, and we really need automatic testing eventually. | 07:56:43 | |
| My opinion on this somewhat technically unqualified because I haven’t done concrete work on it, but I see a few theoretical advantages to have pairs of code blocks for input/output:
Generally documentation (and everything, really) should be low-tech so it’s easy to contribute to and understand how it works. That is, it shouldn’t do anything clever, because it will be hard to change for most people if it does, if only because it requires time to figure out. And time is a very scarce resource. | 08:02:49 | |
| The nix manuals are build with mdbook, which has stuff like https://github.com/FauconFan/mdbook-cmdrun which might be a possible solution for repl testing | 08:12:47 | |