!9IQChSjwSHXPPWTa:lix.systems

Lix

1103 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms294 Servers

Load older messages


SenderMessageTime
21 Oct 2025
@arianvp:matrix.orgArianIs the json serialization of derivations stable? Or only ATerms?19:40:04
@emilazy:matrix.orgemilyNix just changed it20:24:57
@emilazy:matrix.orgemilydunno if Lix considers the interface stable20:25:08
@emilazy:matrix.orgemilyAIUI the plan is to only change such output formats in the presence of an explicit versioning system for them20:25:20
@emilazy:matrix.orgemilyso I'd assume Lix won't adopt the Nix change20:25:35
@jassu:kumma.juttu.asiaJassuko I hope Nix gets properly stable & supported Nix <-> JSON implementation some day. -_- 20:34:29
@jassu:kumma.juttu.asiaJassuko I’d so much prefer writing Nix over JSON any day, but last time I checked (way over a year ago) that was not supported use case. 20:36:16
@morgan.arnold:matrix.orgmraoh, is a new serialization for derivations being considered?20:36:35
@jassu:kumma.juttu.asiaJassukoJSON is (very) far from perfect as a serialization format as soon as you have more than one implementation having to handle de-serialization. Especially so, if it’s used in anything where security matters, or encryption is involved. 😅20:39:36
@morgan.arnold:matrix.orgmra Jassuko: yeah, makes sense. i've been wondering if we should adopt a new serialization for derivations in the Guix daemon when we get around to rewriting it 20:41:05
@jassu:kumma.juttu.asiaJassukoIf I had to define a security critical JSON serialization now, I’d write the normative spec around SQLite JSON serialization with proper boundary tests included. That one is available to use on any platform and has easy enough interfaces to all possible languages… so if someone wants to implement their thing, they could just use SQLite library to validate IO whenever JSON is involved. :p20:45:50
@raitobezarius:matrix.orgraitobezariusnone are stable to us for now21:04:05
@raitobezarius:matrix.orgraitobezariusATerms are obviously stable, we will try hard not to change them21:04:16
@raitobezarius:matrix.orgraitobezariusbut we might not always expose ATerms in the future21:04:20
@raitobezarius:matrix.orgraitobezariusdo not rely on the ATerm, it's an impl detail for now21:04:27
22 Oct 2025
@lillecarl:matrix.orglillecarlWhy not?! I depend on builtins.fromJSON and builtins.toJSON for several usecases00:57:03
@niklaskorz:matrix.orgniklaskorzlooking into setting up gerrit myself right now so the afnix infra repo is a real gold mine 👀10:09:31
@niklaskorz:matrix.orgniklaskorz(thanks!)10:09:55
@abaris99f:matrix.org@abaris99f:matrix.org removed their profile picture.10:35:41
@abaris99f:matrix.org@abaris99f:matrix.org removed their display name JannikH (Abaris).10:35:53
@abaris99f:matrix.org@abaris99f:matrix.org left the room.10:35:56
@guipsp:matrix.orgGuilherme EspadaI'm confused as to why https://docs.lix.systems/manual/lix/nightly/release-notes/ doesn't seem to include the 2.93 release notes10:36:42
@aloisw:julia0815.dealoiswBecause it's wildly out of date and was generated before the release.15:36:55
@helle:tacobelllabs.nethelle (just a stray cat girl)I've considered figuring out some infrastructure for it, but there are higher priority fixes to the docs access situation15:52:17
@mxcurly:matrix.orgmxcurly joined the room.18:15:18
@jassu:kumma.juttu.asiaJassuko
In reply to @lillecarl:matrix.org
Why not?! I depend on builtins.fromJSON and builtins.toJSON for several usecases

Ohh, so those ended up being included in the builtins at some point? Nice.

Last time I checked (few years ago) people were too concerned about possible serialization issues and having to maintain compatibility over long time, so JSON was not supported as a builtin.

20:31:57
@ekler:feel-co.orgeklerfromJSON has existed since nix 1.8 (2014) and toJSON is from 1.7 (2013)20:46:59
@ekler:feel-co.orgeklerBut that's just for arbitrary data and chokes sometimes e.g. functions20:49:56
@jassu:kumma.juttu.asiaJassukoWtf. Why I didn’t find a usable JSON thing when I needed it, then. :o21:16:43
@lillecarl:matrix.orglillecarl Maybe your memory is mixing JSON and YAML. YAML is still IFD 21:24:54

Show newer messages


Back to Room ListRoom Version: 10