!9IQChSjwSHXPPWTa:lix.systems

Lix

738 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-rooms224 Servers

Load older messages


SenderMessageTime
11 Dec 2024
@kfears:matrix.orgKFears (annoying) So like, to be clear, the reasons I've listed are not speculation, they are known reasons. The speculation reasons I won't delve into 07:31:03
@uep:matrix.orguep

agreed on the whole; some counterpoints that are not disagreements per se:

  1. git is a reasonable distribution format when you want to download incremental updates; it's debatable whether that's 'a vcs feature' or not; if it is it's really the most basic one.
  2. code downloads re-fetch a lot of unchanged data, and so are not really 'easier on the wire' in aggregate
  3. sometimes you recompress for disk writes to a compressing filesystem (e.g. zfs)

zip doesn't address point 2 either, fwiw

07:39:07
@k900:0upti.meK900FWIW Cargo also bought into the whole "git is good for incremental updates" thing 07:39:54
@uep:matrix.orguepyeah, didn't go well in the long run07:40:12
@k900:0upti.meK900And then had to rework everything because the first checkout time became so bad07:40:14
@kfears:matrix.orgKFears (annoying)Yeah...07:40:24
@k900:0upti.meK900Though I'm still kind of disappointed they went the API route and not a prebaked index with deltas route 07:40:51
@uep:matrix.orguepthey did something like that for a while07:41:15
@benjamin:computer.surgeryoliviathe crates.io index is at least very unusual compared to the kinds of things people are normally downloading from github for nix purposes07:42:02
@k900:0upti.meK900They just did git and force pushed it a bunch 07:42:12
@uep:matrix.orguepevery so often the 'publication' git repo would get rewritten somehow but eventually that didn't scale well either07:42:18
@k900:0upti.meK900Which still had all the git issues 07:42:19
@kfears:matrix.orgKFears (annoying)So to really address your counterpoints, we need like benchmarks and data because yeah, git deltas aren't necessarily better than re-downloading a complete zip archive07:42:51
@emma:rory.gayEmma [it/its]Cant you incrementally pull with a depth=1 git clone?07:43:04
@kfears:matrix.orgKFears (annoying)And I don't think there are any industry-standard diff formats other than git07:43:09
@uep:matrix.orguepi didn't say it was good, just that it was reasonable... and the main issue is point207:43:29
@uep:matrix.orguep * i didn't say it was good, just that it was reasonable... and my main issue is point207:43:37
@k900:0upti.meK900
In reply to @emma:rory.gay
Cant you incrementally pull with a depth=1 git clone?
Not well
07:43:38
@grimmauld:grimmauld.deGrimmauldHey, quick question! How (if at all) does tail recursion optimisation work in lix? It seems folds are well-optonized for example (I can sum a list of it's going from 0 to multiple billions basically instantly), but implementing tail recursion just in nix (without relying on some fold builtin quickly hits recursion limits.07:43:41
@k900:0upti.meK900It still requires fetching pretty much all the object metadata07:43:52
@k900:0upti.meK900
In reply to @grimmauld:grimmauld.de
Hey, quick question! How (if at all) does tail recursion optimisation work in lix? It seems folds are well-optonized for example (I can sum a list of it's going from 0 to multiple billions basically instantly), but implementing tail recursion just in nix (without relying on some fold builtin quickly hits recursion limits.
It isn't
07:44:07
@emma:rory.gayEmma [it/its]Git doesnt use its own diff format though, it just pushes the new version of files07:44:28
@grimmauld:grimmauld.deGrimmauld:/07:44:23
@emma:rory.gayEmma [it/its]Unless youre talking about the packed format07:44:32
@k900:0upti.meK900 builtins stuff is native code so it's special 07:44:40
@grimmauld:grimmauld.deGrimmauldAny plans to ever do tail recursion optimisation?07:44:50
@k900:0upti.meK900I don't think anyone has anything concrete 07:45:28
@k900:0upti.meK900And I also don't think TCO is going to be the bottleneck for, uh, just about anything sane 07:45:44
@grimmauld:grimmauld.deGrimmauldWould be kinda dumb if nix were the literal only functional lang without it XD07:45:52
@piegames:flausch.socialpiegamesIt almost guaranteed is not, and, so what?07:46:37

Show newer messages


Back to Room ListRoom Version: 10