!9IQChSjwSHXPPWTa:lix.systems

Lix

1121 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.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
@emilazy:matrix.orgemilywhich works right up until it really doesn't13:34:53
@emilazy:matrix.orgemily it would be fun to see the module system modelled in Haskell including the part where you have mutually recursive options and config where the former define the types for the latter. I suspect you can pull it off with enough {-# LANGUAGE #-} 13:37:04
@arianvp:matrix.orgArian https://cuelang.org/docs/concept/the-logic-of-cue/ 13:39:11
@arianvp:matrix.orgArianimo cue comes pretty darn close13:40:57
@emilazy:matrix.orgemilyisn't CUE explicitly dynamically-typed?13:48:20
@emilazy:matrix.orgemilyI suspect Nickel might be doing something closer13:48:59
@arianvp:matrix.orgArianDepends on what you mean with dynamically typed. It’s a lattice. So you can do static analysis by merging with an abstracter lattice13:51:34
@emilazy:matrix.orgemily(I know types-as-values/more general dependent typing can make this a fuzzy question already because you have type-checking recursing into evaluation, so for clarity I mean "you cannot type-check an expression with a free variable of known type but unknown value, right?" - but I could be wrong.)13:52:22
@arianvp:matrix.orgArianthe static-ness of a defintion is a nice partial order with types at the top and uninhabited values at the bottom. Slice the lattice was much as yo need13:52:23
@emilazy:matrix.orgemilyright... I guess you can try evaluating by just setting the variable to its type. hmm...13:52:46
@arianvp:matrix.orgArianyes… or to a static constraint13:53:03
@emilazy:matrix.orgemilyIIRC CUE has limited control flow, right? I am not sure if the properties would scale to making it a "real PL"13:53:45
@emilazy:matrix.orgemilye.g. I don't see how you could typeck a recursive branching function in this way13:54:15

Show newer messages


Back to Room ListRoom Version: 10