infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
ris has quit [Ping timeout: 264 seconds]
andi- has quit [Ping timeout: 272 seconds]
andi- has joined #nix-lang
ddellacosta has quit [Ping timeout: 272 seconds]
kalbasit has quit [Ping timeout: 256 seconds]
__monty__ has joined #nix-lang
kalbasit has joined #nix-lang
kalbasit_ has joined #nix-lang
kalbasit has quit [Ping timeout: 256 seconds]
ris has joined #nix-lang
tilpner has quit [Remote host closed the connection]
tilpner has joined #nix-lang
<infinisil> What if
<infinisil> > [ 1 2 3 ].0
<{^_^}> attempt to call something which is not a function but a list, at (string):440:1
<infinisil> worked
<infinisil> I don't think that conflicts with anything
<infinisil> And it's so much more convenient than
<infinisil> > builtins.elemAt [ 1 2 3 ] 0
<{^_^}> 1
<infinisil> It also unifies nicely with nix-instantiate, because that currently supports `-A 0` to select the 0th list entry
lukegb has quit [Quit: ~~lukegb out~~]
lukegb has joined #nix-lang
<nf> yes. YES!
ddellacosta has joined #nix-lang
Dotz0cat has quit [Ping timeout: 272 seconds]
nf has quit [Quit: Fairfarren.]
nf has joined #nix-lang
nf has quit [Quit: Fairfarren.]
nf has joined #nix-lang
tilpner_ has joined #nix-lang
tilpner has quit [Ping timeout: 260 seconds]
tilpner_ is now known as tilpner
MichaelRaskin has joined #nix-lang
<infinisil> Phew, nix#4154 is looking pretty nice now, I feel like I'm very close to finishing that
<{^_^}> https://github.com/NixOS/nix/pull/4154 (by Infinisil, 7 weeks ago, open): [WIP] Lazy attribute names
<infinisil> Although it will have to be opt-in with something like builtins.lazyAttrsUpdate
Dotz0cat has joined #nix-lang
Dotz0cat has quit [Max SendQ exceeded]
kalbasit_ has quit [Ping timeout: 240 seconds]
Dotz0cat has joined #nix-lang
<qyliss> I wonder if you could trade the 5% eval time decrease for an equivalent optimisation elsewhere
<qyliss> my impression if nix eval is that it's not particularly optimised, although you'll be the expert
<infinisil> qyliss: Tbh I haven't seen much optimization potential
<infinisil> But I think it's better for this feature to be opt-in anyways