!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

862 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.185 Servers

Load older messages


SenderMessageTime
23 Oct 2025
@roberthensing:matrix.orgRobert Hensing (roberth)is it possible to generate streaming parsers too?12:55:08
@roberthensing:matrix.orgRobert Hensing (roberth)iirc http does not require unique headers, but that's only a reason to keep an additional vector around, if at all13:46:08
@xokdvium:matrix.orgSergei 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:one.ems.hostfzakariaI will ask.15:47:42
@roberthensing:matrix.orgRobert Hensing (roberth)oh cool, thanks! I guess it could be pull based or visitor-like, or generate both15:51:39
@fzakaria:one.ems.hostfzakariai 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.html15:53:25
@fzakaria:one.ems.hostfzakariamaybe it is streaming and on-demand serialization15:53:41
@fzakaria:one.ems.hostfzakariai will test it on the Linux demo.15:53:46
@fzakaria:one.ems.hostfzakaria* i will test it on the Linux git repo demo.15:53:52
@roberthensing:matrix.orgRobert Hensing (roberth)ah, that's their low level I/O thing that is consumed by the generated code, I think?15:55:18
@roberthensing:matrix.orgRobert Hensing (roberth) pull and visitor may be good names for modules that do that kind of thing 15:56:16
@fzakaria:one.ems.hostfzakariaI used this cpp library which was nice. https://github.com/NixOS/nixpkgs/pull/454770 I sponsor @jart on Github.16:01:30
@roberthensing:matrix.orgRobert Hensing (roberth)fast? nice16:03:41
@fzakaria:one.ems.hostfzakaria

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:one.ems.hostfzakariaoh there is an "no-auto-read" option16:27:41
@fzakaria:one.ems.hostfzakariahttps://doc.kaitai.io/lang_cpp_stl.html16:27:42
@philiptaron:matrix.orgPhilip 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
@philiptaron:matrix.orgPhilip Taron (UTC-8) Should I read AbstractConfig::applyConfig as allowing that to happen anywhere in the command line? 16:35:17
@roberthensing:matrix.orgRobert 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:one.ems.hostfzakariacoulnd't figure out the auto-read; oh well for now the spec is still cool17:12:59
@roberthensing:matrix.orgRobert Hensing (roberth)would be cool to have in the nix manual, like we're doing with JSON schema now17:26:47
@fzakaria:one.ems.hostfzakariawant me to link to it or just have it embedded ?21:10:44
@fzakaria:one.ems.hostfzakariahttps://github.com/NixOS/nix/pull/14345 if we want it21:19:38
24 Oct 2025
@volth:matrix.orgvolthDoes 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
@Ericson2314:matrix.orgJohn 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
@Ericson2314:matrix.orgJohn Ericson(to allow it to support older?)02:40:53
@Ericson2314:matrix.orgJohn EricsonOr alternatively, is this about making it not a compile time failure? (Since you mention glibc)02:43:57
@fzakaria:one.ems.hostfzakariahow can i build the manual with meson ?03:56:50
@fzakaria:one.ems.hostfzakaria meson compile -C build manual 03:56:56
@fzakaria:one.ems.hostfzakariaor something03:56:58

Show newer messages


Back to Room ListRoom Version: 6