!9IQChSjwSHXPPWTa:lix.systems

Lix

1106 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-rooms296 Servers

Load older messages


SenderMessageTime
15 May 2024
@mia:matrix.cybergirly.comMia :) changed their profile picture.18:39:55
@jade_:matrix.org@jade_:matrix.org
In reply to @qyriad:katesiria.org
We are killing the online flake registry

julia submitted a patch for this today :O

i do wonder if we want to be able to support alternate "online" registry fs paths

18:47:00
@jade_:matrix.org@jade_:matrix.org (in case enterprise users actually use this thing. or something. but otoh we could just ship a deprecation warning and see who complains) 18:47:31
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de) how come we have builtins.fromTOML but not builtins.toTOML ? 18:53:39
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)its fine, we have a writer for toml and worst case i can just write and then read the written thing (though ugly). But figured i'd ask as it is weird...18:56:15
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @grimmauld:grimmauld.de
how come we have builtins.fromTOML but not builtins.toTOML ?
I remember there was an issue in nix about this. The main idea is that the toml library implementation is unstable?
18:58:27
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de) One more question: genAttrs can generate an attrset from a list of names; is there an equivalent that generates an attrset to a list of values taking a function that assigns a name to each value instead of a value to each name? 19:03:59
@jade_:matrix.org@jade_:matrix.org
In reply to @aleksana:mozilla.org
I remember there was an issue in nix about this. The main idea is that the toml library implementation is unstable?
yeah that makes sense, you would need a canonical repr and trusting someone else's code to do that is a huge risk
19:04:44
@jade_:matrix.org@jade_:matrix.orgi really desperately want to have builtins not form part of the derivation interface somehow19:05:08
@jade_:matrix.org@jade_:matrix.orgreally what i want is that someone just goes and shoves this shit into a lib that is not on our stability guarantees19:05:24
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)
In reply to @jade_:matrix.org
yeah that makes sense, you would need a canonical repr and trusting someone else's code to do that is a huge risk
Yeah makes sense to me. Bit awkward but workable considering there is a writer. With my current approach i need to write it anyways so might as well.
19:05:28
@jade_:matrix.org@jade_:matrix.orgthis is the real reason i want builtins.importWasm or whatever19:05:38
@jade_:matrix.org@jade_:matrix.orgi want to make this stuff versioned separately from the evaluator19:06:01
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)
In reply to @jade_:matrix.org
yeah that makes sense, you would need a canonical repr and trusting someone else's code to do that is a huge risk
* Yeah makes sense to me. Bit awkward but workable considering there is a writer in nixpkgs lib. With my current approach i need to write it anyways so might as well.
19:06:10
@qyriad:katesiria.orgQyriad🤔 Maybe Nixpkgs could/should ship builtin-adding plugins?19:06:33
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC) That sounds like IFD 19:06:45
@qyriad:katesiria.orgQyriad No, it precisely would avoid IFD 19:06:56
@qyriad:katesiria.orgQyriad Lix has literal plugin support 19:07:12
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @qyriad:katesiria.org
No, it precisely would avoid IFD
I'd like to have IFD to avoid this
19:07:17
@qyriad:katesiria.orgQyriadLike Lix can load arbitrary shared libraries which can add arbitrary primops to the evaluator19:07:30
@qyriad:katesiria.orgQyriadThis functionality just barely sees any use19:07:39
@puck:puck.moepuckthis requires a stable ABI19:07:59
@qyriad:katesiria.orgQyriad
In reply to@aleksana:mozilla.org
I'd like to have IFD to avoid this
That's in the "fixing IFD path", which we want to do but is a ways off
19:08:01
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)Oh god what discussion have i started again... But hey, at least people are being productive over here :319:08:01
@qyriad:katesiria.orgQyriad
In reply to@puck:puck.moe
this requires a stable ABI
Yeah true
19:08:10
@lily:lily.flowersLily Foster
In reply to @grimmauld:grimmauld.de
One more question: genAttrs can generate an attrset from a list of names; is there an equivalent that generates an attrset to a list of values taking a function that assigns a name to each value instead of a value to each name?
you could make your own inverted genAttrs i guess? something like genAttrsFromValues = values: f: builtins.listToAttrs (builtins.map (v: builtins.nameValuePair (f v) v) values)
19:08:29
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)OH GOD19:08:48
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)I'll have a poke then :)19:09:14
@qyriad:katesiria.orgQyriad brb adding a new lib.attrsets API =P 19:09:42
@lily:lily.flowersLily Foster(is there a lib function to invert attrset names/values too?)19:09:47

Show newer messages


Back to Room ListRoom Version: 10