!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

416 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

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


SenderMessageTime
31 Jul 2025
@emilazy:matrix.orgemilythey're not really14:12:16
@emilazy:matrix.orgemilyjust hashing is meaningfully faster14:12:28
@weethet:catgirl.cloudWeetHetI don't know if nar-hash can be constructed iteratively so that you only need to rehash changed files14:13:14
@emilazy:matrix.orgemilysee https://github.com/NixOS/nix/pull/13225#pullrequestreview-2858935020 for discussion, particularly the later review subthread14:13:17
@emilazy:matrix.orgemilyI think roberth has it right that you want an opaque path type14:13:26
@emilazy:matrix.orgemilythough that is of course a big lift14:13:30
@emilazy:matrix.orgemilyNAR hashing is also just bad… but that's another matter14:13:50
@emilazy:matrix.orgemilyanyway14:14:00
@emilazy:matrix.orgemily does anyone have feelings about /nix/var/nix/b instead of /nix/var/nix/builds? 14:14:07
@emilazy:matrix.orgemilyI have implemented most of the thing to fix the Unix socket length issue14:14:24
@emilazy:matrix.orgemily with /b/ we end up below the previous average length of a build directory 14:14:33
@emilazy:matrix.orgemily with /builds/ we are still slightly above 14:14:42
@emilazy:matrix.orgemily though if you count path normalization i.e. /private/tmp/… which I think a lot of things are doing behind the scenes we are ahead even with /builds/ 14:14:53
@weethet:catgirl.cloudWeetHet

Path equality and ordering (as observable to users) must remain identical

I've changed my opinion on this, though I'm not sure if there are really no usecases for comparing paths

14:15:15
@weethet:catgirl.cloudWeetHet But it would be interesting to go over github and just see if anyone ever compares paths 14:15:38
@emilazy:matrix.orgemilyforbidding path comparison is precisely what a more opaque path type would achieve without breaking the language guarantees14:16:27
@emilazy:matrix.orgemilyit has other nice advantages too (you can do objcap stuff)14:16:39

Show newer messages


Back to Room ListRoom Version: 10