!9IQChSjwSHXPPWTa:lix.systems

Lix

740 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-rooms226 Servers

Load older messages


SenderMessageTime
11 Dec 2024
@grimmauld:grimmauld.deGrimmauld
In reply to @k900:0upti.me
And I also don't think TCO is going to be the bottleneck for, uh, just about anything sane
You see I do advent of code in nix, hitting rec limit is not rare. Would have loved to be saved by some good evaluator, but I suppose I just need more ram and better code XD
07:46:45
@k900:0upti.meK900I mean 07:47:31
@emma:rory.gayEmma [it/its]
In reply to @emma:rory.gay
Git doesnt use its own diff format though, it just pushes the new version of files
Im saying this with my "i wrote my own git implementation based on the binary files & docs" hat on, fwiw
07:47:34
@benjamin:computer.surgeryoliviadunno if aoc in nix counts as "anything sane" lol07:47:34
@k900:0upti.meK900That does not count as sane 07:47:36
@piegames:flausch.socialpiegamesTCO is useful when writing heavy data manipulation witg recursion, like in Haskell. Nix barely even has pattern matching …07:47:38
@piegames:flausch.socialpiegamesWhen doing performance optimization, one usually starts with a benchmark of common usage patterns, and "evaluating a NixOS conf" is a common usage pattern while "Advent of Code" isn't07:48:55
@grimmauld:grimmauld.deGrimmauld
In reply to @k900:0upti.me
That does not count as sane
Infinisil did it four years ago, so you are saying they aren't sane either... But fair point!
07:48:50
@k900:0upti.meK900 I'm not saying you're not sane 07:49:21
@k900:0upti.meK900 I'm saying what you're doing isn't 07:49:28
@benjamin:computer.surgeryolivia(doing not-sane things can be fun)07:49:59
@benjamin:computer.surgeryolivia(but like, optimizing the language implementation for it is probably a bad idea)07:50:15
@piegames:flausch.socialpiegames(And good for overall sanity)07:50:20
@grimmauld:grimmauld.deGrimmauldDay 9 ate 13Gb of ram to store stack frames, scraped by at 23k recursion depth, and took multiple hours of fighting the evaluator to fit within the limitations XD07:50:23
@piegames:flausch.socialpiegamesI mean, if anybody implemented that in the evaluator and it wouldn't negatively affect any common usage scenarios, I wouldn't block it07:51:00
@piegames:flausch.socialpiegamesIt's just, of the long list of optimizations to make, when sorting that list by reasonable priority, TCO is probably in the third or last quartile07:51:32
@grimmauld:grimmauld.deGrimmauld
In reply to @piegames:flausch.social
I mean, if anybody implemented that in the evaluator and it wouldn't negatively affect any common usage scenarios, I wouldn't block it
Bet! After apparmor and bachelor's thesis, I will do it. I time for AOC next year.
07:51:40
@grimmauld:grimmauld.deGrimmauld*in time07:51:52
@kfears:matrix.orgKFears (annoying)
In reply to @emma:rory.gay
Git doesnt use its own diff format though, it just pushes the new version of files
Yes; I'm just saying that people occasionally use Git as a generic "diff format". I think that it's the problem we are discussing, actually: because we don't have some generic "diff format" that Github understands that allow us to express "I have these files, give me the delta to the latest commit", we discuss using Git to do that vs re-downloading the zip archive, and using Git will also pull in a bunch of Git metadata and packed objects
07:52:32
@piegames:flausch.socialpiegames(Disclaimer: I have had zero looks at feasability within the current Nix evaluator so far. No guarantee for success)07:52:42
@emma:rory.gayEmma [it/its]
In reply to @kfears:matrix.org
Yes; I'm just saying that people occasionally use Git as a generic "diff format". I think that it's the problem we are discussing, actually: because we don't have some generic "diff format" that Github understands that allow us to express "I have these files, give me the delta to the latest commit", we discuss using Git to do that vs re-downloading the zip archive, and using Git will also pull in a bunch of Git metadata and packed objects
yeahhh no, the diff part is solely a frontend thing, also git's diff format inside of object packs is dense
07:54:58
@kfears:matrix.orgKFears (annoying)Sorry, I think you lost me there for a sec :/07:55:40
@emma:rory.gayEmma [it/its] tl;dr git does not diff, especially when doing a pull/fetch 08:06:21
@kfears:matrix.orgKFears (annoying)Ah, yeah, that's something I wanted to say and failed to do08:07:29
@emma:rory.gayEmma [it/its]we dont talk about it's bespoke internal diff format when handling pack files08:07:45
@kfears:matrix.orgKFears (annoying)At least it has the API that says "diff" on it; we don't have anything other that at least has that, on Github at least D:08:08:06
@emma:rory.gayEmma [it/its] git diff just uses a local diff util :) 08:08:36
@uep:matrix.orguep it does not. i got through to, oh, roughly this point when i tried it, i think year before last 08:10:49
@emma:rory.gayEmma [it/its]
In reply to @kfears:matrix.org
At least it has the API that says "diff" on it; we don't have anything other that at least has that, on Github at least D:
wait, wdym by this?
08:12:48
@kfears:matrix.orgKFears (annoying)
In reply to @emma:rory.gay
wait, wdym by this?
Actually, it just occured to me that I'm a little stupid
08:27:09

Show newer messages


Back to Room ListRoom Version: 10