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/
pie_ has quit [Remote host closed the connection]
pie_ has joined #nix-lang
jtojnar has quit [Remote host closed the connection]
__monty__ has joined #nix-lang
pie_ has quit [Ping timeout: 258 seconds]
Synthetica has joined #nix-lang
pie_ has joined #nix-lang
pie___ has joined #nix-lang
pie_ has quit [Ping timeout: 244 seconds]
<infinisil> pie__: How could that not be ambiguous?
<pie___> infinisil, I haven't thought of anything.
<infinisil> Ah
<pie___> obviously you couldnt just do ghidra.extend (import /home/nixos/stuff/fiddb/nix/plugin.nix).withPlugins (p: with p; [ ghidra-scala-loader ])
<Taneb> forthnix
<pie___> i really should try forth, ENOTIME, not sure id like it though
<pie___> i probably do lik to have a bit of syntax
<pie___> its nice if data flows left to right sometimes yknow? :P
<Taneb> It's certainly something I want to mess around with
<pie___> Try All The Programming Paradigms
jtojnar has joined #nix-lang
<Taneb> Absolutely
<pie___> the reason i feel like this might make some sense is when youre basically transforming sets
<pie___> which doesnt sound unreasonable in nix
pie_ has joined #nix-lang
pie___ has quit [Ping timeout: 276 seconds]
<infinisil> I did once write a hacky compose function
<infinisil> > :v composeHack
<{^_^}> composeHack = a: if lib.isFunction a then b: if lib.isFunction b then composeHack (x: a (b x)) else a b else a
<infinisil> > composeHack (x: x + 1) (x: x * 2) 3
<{^_^}> 7
<infinisil> > composeHack (x: x + 1) (x: x * 2) (x: x + 10) (x: x * 3) 3
<{^_^}> 39
<infinisil> That seems relevant
<infinisil> Also you could use an even hackier construct
<infinisil> > (function 1 2 3 4).args
<{^_^}> [ 1 2 3 4 ]
<infinisil> > (function 1 2 3 4 6 7).args
<{^_^}> [ 1 2 3 4 6 7 ]
<infinisil> > :v function
<{^_^}> function = { __functor = self: arg: self // { args = self.args ++ [ arg ]; }; args = []; }
pie_ has quit [Remote host closed the connection]
pie___ has joined #nix-lang
pie___ has quit [Remote host closed the connection]
pie___ has joined #nix-lang
pie_ has joined #nix-lang
pie___ has quit [Ping timeout: 250 seconds]