!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 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
@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
@raitobezarius:matrix.orgraitobezariusyou are doing autocalling?11:44:49
@raitobezarius:matrix.orgraitobezarius if you do nix-build nixos/tests/zfs.nix 11:45:01
@raitobezarius:matrix.orgraitobezariusyou are doing autocalling as well?11:45:05
@qyriad:katesiria.orgQyriad nix-build, nix-shell, nix develop, and nix build all do autocall, among certainly many others 11:46:37
@qyriad:katesiria.orgQyriad nix-build '<nixpkgs>' -A hello autocalls <nixpkgs/default.nix> { } 11:47:01
@niko:nrab.lolniko ⚡️Honestly though how many users are there of deep auto-calls and auto-calling functors11:49:19
@niko:nrab.lolniko ⚡️I can't imagine there being that many11:49:31
@raitobezarius:matrix.orgraitobezariusyeah, i expect this to be ≤1011:49:34
@raitobezarius:matrix.orgraitobezariusbut we should prove it via large scale evaluations11:49:41
@niko:nrab.lolniko ⚡️And if someone is auto-calling a functor, they're probably doing it on accident11:49:49
@raitobezarius:matrix.orgraitobezariusno one has been accidentally comparing attrsets with functions at all11:50:28
* @niko:nrab.lolniko ⚡️ clueless11:50:48
@raitobezarius:matrix.orgraitobezariusfunction pointer equality11:54:50
@qyriad:katesiria.orgQyriad Autocall does nest but in practice it almost certainly only happens at toplevel or maybe one level deep 90% of the timebu 11:56:10
@k900:0upti.meK900Not function pointer11:56:20
@k900:0upti.meK900Attrset pointer11:56:23
@k900:0upti.meK900
nix-repl> (x: x) == (x: x)
false

nix-repl> { f = x: x; } == { f = x: x; }
false

nix-repl> let f = x: x; in { f = f; } == { f = f; }
true
11:57:16
@qyriad:katesiria.orgQyriad * Autocall does nest but in practice it almost certainly only happens at toplevel or maybe one level deep 90% of the time 11:58:15

Show newer messages


Back to Room ListRoom Version: 10