!9IQChSjwSHXPPWTa:lix.systems

Lix

1120 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-rooms302 Servers

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


SenderMessageTime
12 Dec 2025
@emilazy:matrix.orgemily(I agree that raw identifier reference syntax is preferable to banning raw identifier binding)11:28:25
@helle:tacobelllabs.nethelle (just a stray cat girl)It will be interesting to do any nixlang2 work in such a way that in addition to writing the spec, we at the same time write the tutorial for people who have never touched nix (and aren't functional language or compiler nerds, etc), because this would show things that are hard to explain to beginners11:35:03
@helle:tacobelllabs.nethelle (just a stray cat girl)and note, if you can write something differently to what you tell beginners, they still need to be able to understand what is written11:35:24
@emilazy:matrix.orgemilylazy evaluation is going to be a tough one no matter what (and intimately tied to the nested fixed point structures the package set and module system builds up). in some ways easier to explain to someone without an (imperative) programming background than with12:56:15
@emilazy:matrix.orgemilythe combination with dynamic typing has the fun side effect of burying errors as deep/late as possible and also making it much harder to trace the causes of them, which is just an awful property for learners12:58:24
@teoc:matrix.orgteo (they/he)fwiw some of the spooky fixed point stuff can be explained to people in terms of inheritance which is a bit more familiar sometimes13:11:11
@teoc:matrix.orgteo (they/he)* fwiw some of the spooky fixed point stuff can be explained to people in terms of inheritance which is a bit more familiar sometimes. although that assumes people actually understand that :)13:11:49
@emilazy:matrix.orgemily

I think you can get some way with that for the way the package set is built up from overlays, but it's a bit weird since you're talking about using the already-esoteric mixins to form an inheritance chain and even that fails to capture why attrsets being strict in their keys causes tons of infrec unless you're careful

(admittedly one can ignore much of this for most use, but same applies to the vast majority of the Nix language)

13:28:56
@emilazy:matrix.orgemilyfor the module system... I think the analogy is hard to stretch13:29:13
@emilazy:matrix.orgemilyit is very much taking fixed points of a Weird Monoid13:29:44
@emilazy:matrix.orgemilywith in fact multiple layers of monoidal structure (merging of module definitioms, overrides, and the individual option types and their merge operations) and where the definitions for some of the monoids involved are themselves part of the values the monoidal structure applies to and also these pervasively recurse into each other 🤪13:32:58
@emilazy:matrix.orgemilyI suspect the median NixOS user models each definition in their configuration modules as essentially imperative mutation of global state13:34:36
@teoc:matrix.orgteo (they/he)the module system is a monster! but it is very convenient13:34:38

Show newer messages


Back to Room ListRoom Version: 10