| 23 Oct 2025 |
Robert Hensing (roberth) | is it possible to generate streaming parsers too? | 12:55:08 |
Robert Hensing (roberth) | iirc http does not require unique headers, but that's only a reason to keep an additional vector around, if at all | 13:46:08 |
Sergei Zimmerman (xokdvium) | In reply to @roberthensing:matrix.org iirc http does not require unique headers, but that's only a reason to keep an additional vector around, if at all Multi map exists | 15:08:34 |
fzakaria | I will ask. | 15:47:42 |
Robert Hensing (roberth) | oh cool, thanks! I guess it could be pull based or visitor-like, or generate both | 15:51:39 |
fzakaria | i don't see it in the current API but the generator has a few flags.
They call the API 'stream' lol
https://doc.kaitai.io/stream_api.html | 15:53:25 |
fzakaria | maybe it is streaming and on-demand serialization | 15:53:41 |
fzakaria | i will test it on the Linux demo. | 15:53:46 |
fzakaria | * i will test it on the Linux git repo demo. | 15:53:52 |
Robert Hensing (roberth) | ah, that's their low level I/O thing that is consumed by the generated code, I think? | 15:55:18 |
Robert Hensing (roberth) | pull and visitor may be good names for modules that do that kind of thing | 15:56:16 |
fzakaria | I used this cpp library which was nice.
https://github.com/NixOS/nixpkgs/pull/454770
I sponsor @jart on Github. | 16:01:30 |
Robert Hensing (roberth) | fast? nice | 16:03:41 |
fzakaria | also small so i can audit it
nlohmann's json.h has 24,766 lines of code. Our json.h has 233 lines of code, and our json.cpp file has 1,303 lines.
| 16:04:32 |
fzakaria | oh there is an "no-auto-read" option | 16:27:41 |
fzakaria | https://doc.kaitai.io/lang_cpp_stl.html | 16:27:42 |
Philip Taron (UTC-8) | I'm getting a little lost trying to read through the argument parsing code. Can I land --extra-experimental-features anywhere in the Nix command line, or does it have to be immediately after nix or nix-build or whatever the appropriate entry point is? | 16:34:10 |
Philip Taron (UTC-8) | Should I read AbstractConfig::applyConfig as allowing that to happen anywhere in the command line? | 16:35:17 |
Robert Hensing (roberth) | Philip Taron (UTC-8): The command line code is rather involved, I agree. Most options can be specified anywhere, with the exception of after a -- separator (foo -- bar, note the space) | 16:39:22 |
fzakaria | coulnd't figure out the auto-read; oh well for now the spec is still cool | 17:12:59 |
Robert Hensing (roberth) | would be cool to have in the nix manual, like we're doing with JSON schema now | 17:26:47 |
fzakaria | want me to link to it or just have it embedded ? | 21:10:44 |
fzakaria | https://github.com/NixOS/nix/pull/14345 if we want it | 21:19:38 |
| 24 Oct 2025 |
volth | Does Nix have minimum requirements for the kernel and glibc (when running on a random Linux distribution rather than NixOS) ?
I just encountered a situation where kernel version 5.9 or higher is required, which seems strange since 5.4 is still supported. Starting in August 2024, for the sake of speeding up closing files by 1 millisecond (SYS_close_range, introduced https://github.com/NixOS/nix/pull/11278)
| 01:52:58 |
John Ericson | In reply to @volth:matrix.org
Does Nix have minimum requirements for the kernel and glibc (when running on a random Linux distribution rather than NixOS) ?
I just encountered a situation where kernel version 5.9 or higher is required, which seems strange since 5.4 is still supported. Starting in August 2024, for the sake of speeding up closing files by 1 millisecond (SYS_close_range, introduced https://github.com/NixOS/nix/pull/11278) I don't think we have a policy on that. Can you do some sort of run-time check? | 02:40:34 |
John Ericson | (to allow it to support older?) | 02:40:53 |
John Ericson | Or alternatively, is this about making it not a compile time failure? (Since you mention glibc) | 02:43:57 |
fzakaria | how can i build the manual with meson ? | 03:56:50 |
fzakaria | meson compile -C build manual | 03:56:56 |
fzakaria | or something | 03:56:58 |