!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-rooms295 Servers

Load older messages


SenderMessageTime
1 Dec 2025
@niko:nrab.lolniko ⚡️ At least I’d personally expect all functions to be auto-called, or none 09:55:17
@piegames:flausch.socialpiegames
In reply to @niko:nrab.lol
At least I’d personally expect all functions to be auto-called, or none
Well that's already not the case unfortunately https://git.lix.systems/lix-project/lix/src/branch/main/lix/libexpr/eval.cc#L1831
10:05:20
@niko:nrab.lolniko ⚡️
In reply to @piegames:flausch.social
Well that's already not the case unfortunately https://git.lix.systems/lix-project/lix/src/branch/main/lix/libexpr/eval.cc#L1831
Oh I know, I’m very much not a fan of auto-calling in the first place, but even my bias aside it has a bunch of sharp edges besides e.g. the blatant bug with functors
10:08:17
@piegames:flausch.socialpiegamesHonestly auto-calling should be ripped out and replaced with some dedicated parametrized top-level entry point mechanism10:19:33
@piegames:flausch.socialpiegames And functors, sigh 10:19:48
@helle:tacobelllabs.nethelle (just a stray cat girl)auto-calling is scary stuff imo10:28:24
@piegames:flausch.socialpiegamesUnfortunately I'm a pretty big user of it :D11:09:11
@piegames:flausch.socialpiegamesIt's great when you're using Nix as a data pipeline scripting language11:09:30
@raitobezarius:matrix.orgraitobezariusnixpkgs and normal package uses a lot of autocalls as well11:32:14
@raitobezarius:matrix.orgraitobezariusbut simple shallow autocalls usually11:32:22
@raitobezarius:matrix.orgraitobezariusit would make sense for flaker maybe to support measuring the depthness of the autocalls11:32:30
@raitobezarius:matrix.orgraitobezariusfor non-flakes entrypoints i suppose11:32:35
@piegames:flausch.socialpiegamesCan this be done with static analysis?11:33:36
@raitobezarius:matrix.orgraitobezariusi don't believe so11:33:44
@piegames:flausch.socialpiegamesCan you give some examples?11:33:58
@raitobezarius:matrix.orgraitobezariuswe must hook some reporting facility in lix that you can exploit11:33:53
@raitobezarius:matrix.orgraitobezariusold-style tests entrypoints11:34:08
@raitobezarius:matrix.orgraitobezariusin nixpkgs11:34:13
@piegames:flausch.socialpiegamesBecause without a standardized way to enumerate all entry points, finding usage through Flaker will be tricky11:34:26
@raitobezarius:matrix.orgraitobezarius nixos/tests/zfs.nix 11:34:28
@raitobezarius:matrix.orgraitobezariusa ultra common pattern is11:34:32
@raitobezarius:matrix.orgraitobezarius { x ? a, y ? b, c ? d }: ... 11:34:41
@raitobezarius:matrix.orgraitobezariusthis gets autocalled all the time11:34:45
@raitobezarius:matrix.orgraitobezarius many default.nix starts with { pkgs ? import <nixpkgs> { } }: ... 11:34:54
@piegames:flausch.socialpiegamesI know that pattern, but where does that get autocalled?11:36:44
@piegames:flausch.socialpiegamesI've seen it manually called at times and that's it11:36:54
@piegames:flausch.socialpiegamesI haven't seen much autocalling entry points in the wild11:37:09
@raitobezarius:matrix.orgraitobezariuswell11:44:43
@raitobezarius:matrix.orgraitobezariusif you do11:44:44
@raitobezarius:matrix.orgraitobezariusnix-build -A xyz11:44:46

Show newer messages


Back to Room ListRoom Version: 10