Lix Development | 420 Members | |
| (Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel. | 140 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Feb 2026 | ||
| This seems like a problem we need to address | 14:00:27 | |
Ah, except for nix-env --set. Since that has nothing to do with the profile's manifest and is really about profile generation management than the profile itself | 14:04:09 | |
to put it another way: set1 == set2 really ought to be equivalent to attrNames set1 == attrNames set2 && attrValues set1 == attrValues set2. you can always express this in the language and if we model the current behaviour as nondeterministic there's always a conceivable execution trace that matches these semantics. so it doesn't make sense to make equality stricter than that interpretation, which is consistent with lists, consistent with the existing builtins on attrsets, and optimal in terms of runtime performance of the comparison loop. thoughts, @piegames:flausch.social ? | 15:14:44 | |
| the other reasonable alternative is to make it equivalent to
both of them are entirely consistent with "angelic" choice of nondeterministic comparison orderings, but I don't think the interleaved variant has any merits | 15:21:32 | |
| other reasons comparing names separately makes more sense:
| 15:44:34 | |
| I'll put a summary of this up on the Nix PR in a few hours since this is getting verbose :) | 15:49:55 | |
but I firmly believe attrNames set1 == attrNames set2 && attrValues set1 == attrValues set2 is the right semantics on both practical and theoretical grounds (and we should fix anywhere Nixpkgs still relies on pointer equality dodging type errors/aborts/throws/infinite loops and then move towards not doing that by default) | 15:51:51 | |
| Okay | 16:23:57 | |
| 25 Feb 2026 | ||
| 16:55:51 | ||
| 21:51:40 | ||
| 26 Feb 2026 | ||
| 14:01:48 | ||
| 23:44:11 | ||
| 27 Feb 2026 | ||
| 20:14:32 | ||
| 20:36:06 | ||
| 1 Mar 2026 | ||
| 03:25:03 | ||
| 03:52:40 | ||
How is the lix command's -- supposed to function? Because when I do lix foo somearg -- otherarg, lix eats the -- and strips it from the args passed to lix-foo. It turns -vvvvv.. into -v -v ... too. | 11:43:02 | |
| I'd have expected it to not touch any args after the subcommand | 11:44:22 | |
| Yeah I think that's a bug | 11:47:12 | |
| that's because everything goes via the CLI parser | 11:48:21 | |
| but we don't know yet if you are calling a subcommand | 11:48:26 | |
| so you are receiving the CLI parser preprocessing which is discussable | 11:48:34 | |
| please open a bug indeed with the info and we can take care of it | 11:49:07 | |
| 14:36:23 | ||
| 14:36:23 | ||
| sky1e: What are your plans for the Value outParam CLs? Will you migrate everything given enough time? (Though not sure if migrating all the primops would be a good idea …) | 14:58:43 | |
In reply to @piegames:flausch.socialMy intent is to ultimately work towards https://git.lix.systems/lix-project/lix/issues/744, and a major step of fixing all existing deprecated declaration usage is to remove all default constructions of Value | 15:36:49 | |
| Out param functions can't be used without having an existing value to pass in, and usually that's default constructed | 15:40:27 | |
| So you're planning to also work on the OpenSSL deprecations etc. eventually? | 15:40:59 | |
| I don't know, I haven't gotten that far. I figured incremental progress towards it would be helpful and appreciated for however long as I managed to stay focused on this task. It also depends on how hard the OpenSSL deprecations would be to fix. I don't know anything about them | 15:44:33 | |