!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

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

You have reached the beginning of time (for this room).


SenderMessageTime
30 Jul 2025
@fzakaria:one.ems.hostfzakariai have rarely ever used the serialization format itself as inputs to things15:24:37
@Ericson2314:matrix.orgJohn Ericsonis this preserves thing widely implemented?15:24:44
@fzakaria:one.ems.hostfzakariabut maybe its because i never have canonicalization :P15:24:50
@Ericson2314:matrix.orgJohn EricsonI would like to make it easier to implement "nixlets"15:25:00
@emilazy:matrix.orgemily

no, as I said ecosystem is the main drawback. it's being used in the OCapN effort to standardize CapTP between Agoric/Spritely/I think Cap'n Proto too, and it's used in https://syndicate-lang.org, but it's not the kind of thing you'd expect to find a library in any random language for. I'm not sure what the "second-best" thing is. maybe "whichever of the several CBOR canonical forms is what CTAP uses", but IIRC that's specifically not the RFC one, so that's a nightmare.

I don't know about BCS but at a glance it seems like it does a reasonable job, assuming everyone agrees on what the format actually is. it's not self-describing though, so extensibility will indeed suffer

15:28:27
@Ericson2314:matrix.orgJohn Ericsonyeah I don't think we can use BCS15:29:18
@Ericson2314:matrix.orgJohn Ericsonit would not be good to use a map for an extensible struct15:30:44
@Ericson2314:matrix.orgJohn Ericsonbecause one then gets unnecessary enum tags on the values, which hinders extensibility15:31:00
@Ericson2314:matrix.orgJohn Ericson(you can freely choose your own not-yet-used key, but you need to also choose a not-yet-used enum tag, which is harder)15:31:23
@magic_rb:matrix.redalder.orgmagic_rbNDBF - Nix Derivation Binary Format17:00:42
@flokli:matrix.orgfloklihttps://xkcd.com/927/22:35:11

Show newer messages


Back to Room ListRoom Version: 6