!PbcQeaWcgMyjVfeGQN:nixos.org

Nix Mozilla 🦊🐦🐒

178 Members
A room about a number of weird animals (also known as Mozilla products): Firefox, Thunderbird, Spidermonkey, NSS, cacert. Also a little bit of fun times, small amounts of extreme, when building weird animals. But for bugs please file GitHub issues. | Release Schedule: https://whattrainisitnow.com | Crash-Stats: https://crash-stats.mozilla.org/search/?distribution_id=%3Dnixos&product=Firefox&product=Thunderbird51 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
16 Jan 2024
@colemickens:matrix.orgcolemickensMaybe it does and it's just not really able to, but it sure feels like it should have a shot at spamming some useful message to stderr20:13:15
@k900:0upti.meK900 ⚡️It does20:17:16
@k900:0upti.meK900 ⚡️It's just that in the case of firefox it's the stderr of some helper proces20:17:30
@k900:0upti.meK900 ⚡️* It's just that in the case of firefox it's the stderr of some helper process20:17:31
@k900:0upti.meK900 ⚡️That you never see20:17:34
19 Jan 2024
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (meticulous montesquieu) to hopland (manners or stfu).05:11:59
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (manners or stfu) to hopland.05:14:37
21 Jan 2024
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/269817/files19:07:54
@hexa:lossy.networkhexawhy is a let required here?19:08:16
@k900:0upti.meK900 ⚡️ I think it's because ? can use other argument values 19:13:36
@k900:0upti.meK900 ⚡️ So a ? a is just instant infrec 19:13:58
@hexa:lossy.networkhexawhy can't they access the variables from the outer function scope?19:14:49
@hexa:lossy.networkhexa * why can't they access the variables from the outer function arguments?19:14:55
@k900:0upti.meK900 ⚡️They can, but the other arguments in the pattern are bound closer 19:15:15
@k900:0upti.meK900 ⚡️Because Nix is stupid 19:15:19
@k900:0upti.meK900 ⚡️
nix-repl> fn = let a = 1; in { a ? a }: a

nix-repl> fn {}
error:
       … from call site

         at «string»:1:1:

            1| fn {}
             | ^

       … while calling anonymous lambda

         at «string»:1:16:

            1|  let a = 1; in { a ? a }: a
             |                ^

       error: infinite recursion encountered

       at «string»:1:22:

            1|  let a = 1; in { a ? a }: a
             |
19:16:47
@k900:0upti.meK900 ⚡️ `
nix-repl> fn = let a = 1; b = 1; in { a, b ? a }: b

nix-repl> fn { a = 5; }
5
` is the more normal use case of this
19:17:44
@k900:0upti.meK900 ⚡️
nix-repl> fn = let a = 1; b = 1; in { a, b ? a }: b

nix-repl> fn { a = 5; }
5

is the more normal use case of this
19:17:48
@autiboy:matrix.org@autiboy:matrix.org left the room.23:09:18
22 Jan 2024
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland to IdeallyYes.15:05:58

Show newer messages


Back to Room ListRoom Version: 9