!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

899 Members
For people hacking on the Nix package manager itself188 Servers

Load older messages


SenderMessageTime
8 Mar 2025
@raitobezarius:matrix.orgraitobezarius(I mean, saying this out loud makes me realize that well, making it cacheable trivial and hash consing all the exact same set of inputs used is a way to do it)18:05:21
@weethet:catgirl.cloudWeetHetYeah my system evaluation with flakes vs without has a sizable (a second or so) difference in evaluation times18:05:32
@weethet:catgirl.cloudWeetHet * 18:05:47
@emilazy:matrix.orgemilyare we just talking about installable eval caching?18:05:48
@emilazy:matrix.orgemily the thing where foo#bar gets an evaluation result cachd? 18:05:56
@raitobezarius:matrix.orgraitobezariusyeah, I'm mostly talking about this18:05:57
@emilazy:matrix.orgemily * the thing where foo#bar gets an evaluation result cached? 18:05:58
@emilazy:matrix.orgemily because if so, WeetHet, I'm not sure you're measuring something that worthwhile for system configs 18:06:13
@emilazy:matrix.orgemilya single byte change in the flake will throw away the entire eval cache18:06:22
@raitobezarius:matrix.orgraitobezariusI agree this is a cheat but this is user visible18:06:23
@emilazy:matrix.orgemily right. well it matters for nixpkgs# for sure 18:06:30
@emilazy:matrix.orgemilyfor system configs … meh18:06:37
@weethet:catgirl.cloudWeetHetI don't know why this happened, really. It's not even evaluation catching probably since --impure evaluation is still faster18:07:20
@weethet:catgirl.cloudWeetHet * 18:07:30
@weethet:catgirl.cloudWeetHet * 18:08:03
@weethet:catgirl.cloudWeetHetThere's also an issue of me having nixpkgs being pinned to a github rev in the flake registry which works fine with flakes but causes a noticeable delay with a message "fetching github<...>" when using nix-shell even if it's already fetched18:12:41
@weethet:catgirl.cloudWeetHetIt doesn't actually fetch it, but for some reason takes an unreasonable time checking for it ig18:13:09
@weethet:catgirl.cloudWeetHetOverall, all this just makes non-flake UX just miserable enough for me to use flakes even though I really don't want to18:14:13
@weethet:catgirl.cloudWeetHet I still sometimes catch myself running nix-shell -p npins --command "npins init" instead of nix flake init and have to remove npins directory 18:15:33
@weethet:catgirl.cloudWeetHet * 18:16:03
@emilazy:matrix.orgemily you could use nix(1) without flakes. dunno if that would solve the nix-shell thing. probably not. 18:17:01
@weethet:catgirl.cloudWeetHetnix-command is too tightly coupled with flakes for me, can you even use nix shell without them?18:18:03
@weethet:catgirl.cloudWeetHet Same for nix run 18:18:12
@weethet:catgirl.cloudWeetHet I sometimes feel like the best course of action for me would be to fork nix 2.3 and work on improving it instead 18:19:23
@emilazy:matrix.orgemily yes, they support -f 18:19:37
@weethet:catgirl.cloudWeetHet
In reply to @emilazy:matrix.org
yes, they support -f
It implies impure
18:19:49
@emilazy:matrix.orgemily --expr then. (btw, maybe we should move this out of #nix-dev:nixos.org) 18:20:14
@weethet:catgirl.cloudWeetHetWhere18:20:21
@emilazy:matrix.orgemily #users:nixos.org? 18:20:28
@emilazy:matrix.orgemilyfwiw Nix 2.3 is also buggy. it just has different bugs.18:20:32

Show newer messages


Back to Room ListRoom Version: 6