!9IQChSjwSHXPPWTa:lix.systems

Lix

810 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-rooms236 Servers

Load older messages


SenderMessageTime
15 Feb 2025
@whovian9369:matrix.orgWhovian9369(Ah this may not be the best channel for the question, sorry!)02:30:57
@aloisw:julia0815.dealoisw
In reply to @llakala:matrix.org
but nix bugs have resulted in the fileset library from being banned from nixpkgs because they have to constantly work around these issues
In fairness, this bug has not been fixed in Lix either as far as I know.
05:58:40
@k900:0upti.meK900The fun thing about that particular bug is that it's impossible to fix without changing existing semantics 06:15:53
@k900:0upti.meK900You could even argue there is no bug, just extremely unexpected behavior 06:16:14
@k900:0upti.meK900Because the behavior is consistent06:16:50
@k900:0upti.meK900It's just completely insane06:16:55
@aloisw:julia0815.dealoisw
In reply to @k900:0upti.me
The fun thing about that particular bug is that it's impossible to fix without changing existing semantics
I don't think "code behaves differently when evaluated in a "chroot" store" are existing semantics that are worth preserving.
06:17:33
@charles:computer.surgeryCharles clearly the solution is new fixed builtin functions with ' suffixed to their names 06:17:53
@k900:0upti.meK900
In reply to @aloisw:julia0815.de
I don't think "code behaves differently when evaluated in a "chroot" store" are existing semantics that are worth preserving.
I mean
06:18:21
@charles:computer.surgeryCharlesor perhaps you could pull from php naming conventions because it's done this kind of thing a lot06:18:23
@k900:0upti.meK900I'm not saying it shouldn't be changed 06:18:38
@k900:0upti.meK900I'm just saying the situation is more complicated than just "bug not fixed" 06:18:57
@k900:0upti.meK900In practice I think we should go ahead and just break it because it's absolutely impossible for the old behavior to actually be useful for anyone ever 06:19:22
@charles:computer.surgeryCharlesi was gonna ask what your take would be06:19:40
@k900:0upti.meK900But it is still a compatibility break and should be handled with care 06:21:31
@aloisw:julia0815.dealoisw
In reply to @k900:0upti.me
I'm just saying the situation is more complicated than just "bug not fixed"
I don't think it is actually, fixing the bug would just make a behaviour that is already present (namely in the non-"chroot" case) consistent.
06:21:55
@charles:computer.surgeryCharlesis there a good testing framework for nix expressions? doing assertions on positive cases is obvious, but asserting that eval should fail and how it should fail is less so06:54:34
@charles:computer.surgeryCharlesthere are docs now btw08:58:56
@charles:computer.surgeryCharles* there are docs now btw, in the readme mostly08:59:10
@charles:computer.surgeryCharles * there are docs now btw, in the readme mostly 08:59:43
@charles:computer.surgeryCharlesProject idea: nix minifier09:04:00
@benjb83:matrix.orgBenjB83 joined the room.10:18:02
@benjb83:matrix.orgBenjB83 changed their display name from Benjamín Buske to BenjB83.10:43:15
@piegames:flausch.socialpiegames
In reply to @charles:computer.surgery
Project idea: nix minifier
I think nixfmt can already do that
10:56:03
@s9616726:tu-dresden.deMaximilian Marx for maximal confusion, call it minix 11:03:49
@piegames:flausch.socialpiegamesOr it at least has the infrastructure to trivially implement, because it has other IR transformations already10:56:45
@piegames:flausch.socialpiegames
In reply to @kfears:matrix.org
Lix has also been backporting stuff from newer versions like 2.24, like pipe-operator, so as far as normal or even advanced usage (going as far as maintaining Nixpkgs) is concerned, you should be good to go
Bad example, pipe operator was implemented first in Lix and then independently in CppNix (they have different semantics)
10:58:36
@kfears:matrix.orgKFears (no longer human)
In reply to @piegames:flausch.social
Bad example, pipe operator was implemented first in Lix and then independently in CppNix (they have different semantics)
Wut
11:19:33
@kfears:matrix.orgKFears (no longer human)Tell me more?11:20:31
@piegames:flausch.socialpiegamesDifferent precedence for the backpipe operator11:45:26

Show newer messages


Back to Room ListRoom Version: 10