!9IQChSjwSHXPPWTa:lix.systems

Lix

1085 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-rooms296 Servers

Load older messages


SenderMessageTime
24 Oct 2025
@lillecarl:matrix.orglillecarl 522 it/its ⛯ΘΔ: But also: Even the default GC is a bit eager at removing things as it is right now. It'll happily remove anything you don't have in gcroots even if you fetched it five minutes ago, the likelyhood that you're going to use something you fetched 5 minutes ago is pretty high... 😄 23:33:26
@522_:catgirl.cloud522 it/its ⛯ΘΔ i mean i do personally think time shouldn't really be a factor in gc, since that's kinda fragile 23:35:55
@522_:catgirl.cloud522 it/its ⛯ΘΔthe correct way to do this imoimo is to add stuff to gcroots23:36:46
@lillecarl:matrix.orglillecarl🤷 There's a reason why nixbuild, attic and cachix do something similar but ofc it's a perfectly valid opinion to leave QOL features to external tools23:40:05
@522_:catgirl.cloud522 it/its ⛯ΘΔlike, once you have "nix run makes a gcroot in a specified directory" then you can do your own gc management on that yourself without involving nix code23:40:53
@lillecarl:matrix.orglillecarlYeah except it's entirely unreasonable to install and maintain gcroots on a binary cache, which is what I'm proposing this feature for, this doesn't matter much for your nixos configuration23:42:00
25 Oct 2025
@rainbowcat:xmr.seRcat 🏳️‍🌈🏳️‍⚧️ changed their profile picture.06:14:46
@raitobezarius:matrix.orgraitobezarius lillecarl: I think that the Lix project is not enthusiast into extending the SQLite database, we are more interested into deleting it atm; we would rather recommend to build a "lastRequired" information out of band and use GC roots to enforce it using the Lix's GC code 09:45:22
@kfears:matrix.orgKFears (burnt out)
In reply to @piegames:flausch.social
Yes
Would it make sense to stabilize forward pipe?
11:05:51
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)Is there a way to get rid of this without well,,, patching Nixpkgs11:41:44
@saiko:knifepoint.netKatalin 🔪
In reply to @piegames:flausch.social
We currently have a backpipe operator, but it is not guaranteed to stay
that’s disappointing to hear, I use it much more often than the forward pipe (currently 36 times vs 4 times in my main repo) and it would suck to lose it without a replacement. It’s very useful in removing levels of nested parentheses
12:55:58
@piegames:flausch.socialpiegamesdo you have some usage snippets for me to look at?12:56:32
@saiko:knifepoint.netKatalin 🔪sure, hold on12:57:39
@saiko:knifepoint.netKatalin 🔪https://git.dblsaiko.net/systems/tree/nixos/modules/sys2x/ssl.nix#n51 https://git.dblsaiko.net/systems/tree/configurations/whiprock/xmpp.nix#n1513:07:18
@kfears:matrix.orgKFears (burnt out)I've seen you use backpipes, but I can't parse how it works at all13:38:50
@cyborus:cartoon-aa.xyzCyborusNot to be confused with bagpipes13:40:09
@saiko:knifepoint.netKatalin 🔪
In reply to @kfears:matrix.org
I've seen you use backpipes, but I can't parse how it works at all
essentially, they are equivalent to putting everything after them in parentheses, I think exactly like the haskell $ operator
13:42:40
@saiko:knifepoint.netKatalin 🔪or, if not exactly, it’s close enough at a glance. I don’t write haskell lol13:43:22
@saiko:knifepoint.netKatalin 🔪yeah: https://wiki.haskell.org/$13:44:36
@kfears:matrix.orgKFears (burnt out) So like foo bar (baz queux) is foo bar |> baz queux? 13:45:11
@kfears:matrix.orgKFears (burnt out)But it only works with the last argument, because otherwise you still have to parenthesise?13:45:46
@saiko:knifepoint.netKatalin 🔪<|, but yeah13:46:18
@saiko:knifepoint.netKatalin 🔪

adapting the example from the haskell wiki:

f <| g <| h x == f (g (h x))
f g h x == ((f g) h) x
13:47:57
@emilazy:matrix.orgemily <| is also more "order-of-eval-correct" 13:48:41
@emilazy:matrix.orgemily (though (&) as flip ($) is also popular in Haskell – or was, back in my day…) 13:48:52
@emilazy:matrix.orgemily (I personally avoided using $ in Haskell for various reasons so I have little opinion on any of this other than to say what I'd really like in Nix is function composition operators) 13:49:29
@kfears:matrix.orgKFears (burnt out)Interesting. Is it weird that I prefer parens?13:50:19
@k900:0upti.meK900 ~~lib.pipe~~ 13:50:28
@emilazy:matrix.orgemily parens can be ugly if you want something (x: …) (vs. something <| x: …) 13:50:42
@saiko:knifepoint.netKatalin 🔪
In reply to @emilazy:matrix.org
parens can be ugly if you want something (x: …) (vs. something <| x: …)
unfortunately the latter doesn’t actually parse right now :(
13:51:05

Show newer messages


Back to Room ListRoom Version: 10