!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

879 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.185 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
21 Jul 2025
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)If you’re going to NixCamp or NixCon this year, I’d love to find out more about your thoughts on how that could be implemented!02:34:48
@roberthensing:matrix.orgRobert Hensing (roberth)I'll be at NixCon. Basic idea is: refactor evaluation so that it's an interaction between these three actors and "communication links": CLI - Evaluator - OS, and nothing else. Then MITM the Evaluator on both sides by recording the interactions of previous calls to the evaluator, and replaying them if possible.09:05:43
@roberthensing:matrix.orgRobert Hensing (roberth)It's somewhat of a research project; nothing is guaranteed09:07:02
@magic_rb:matrix.redalder.orgmagic_rbThats kinda what i was proposing https://matrix.to/#/!VRULIdgoKmKPzJZzjj:nixos.org/$FvXA39aRGz0iER7ZM-bRtUkJCuorYa0Ecy_YupgUPC8?via=nixos.org&via=matrix.org&via=nixos.dev ill be at nixcon too. Definitely will be around for this09:08:24
@andiandi:tchncs.deandiandi 🐈 changed their display name from andiandi@hadr25 🏰🏞️ to andiandi 🐈.11:04:23
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) I’d love to talk more about this with you all!
Any chance C++ has something akin to Haskell’s STM?
14:11:52
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) tomberek you might be interested in this — I know I talked with you about having an import cache which stores the processed AST instead of the file itself. (One idea I had was to key on the hash of the AST so formatting wouldn’t cause cache misses.) 14:44:35
@toonn:matrix.orgtoonn .oO(Unison...) 14:45:29
@emilazy:matrix.orgemilysee https://matrix.to/#/!VRULIdgoKmKPzJZzjj:nixos.org/$ynuYm1cT2gUMemb4CiyueY7KlkO0yqppb8i9xb6ENJ8?via=nixos.org&via=matrix.org&via=nixos.dev for my attempts14:48:07
@emilazy:matrix.orgemily unfortunately to trace builtins.readFile you need scopedImport which slows things down a bunch 14:48:23
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @emilazy:matrix.org
unfortunately to trace builtins.readFile you need scopedImport which slows things down a bunch
Well, it would have to be done at the c++ level and the evaluator would have to become serializable for my idea to work
14:54:00
@emilazy:matrix.orgemilyyes, that would be better14:54:20
@emilazy:matrix.orgemilyserializing eval state will be really hard and complicated. I'd recommend focusing on just smarter cache keys14:54:42
@emilazy:matrix.orgemilyroberth14:54:53
@emilazy:matrix.orgemilyoops14:54:56
@emilazy:matrix.orgemilyroberth's proposal is basically what strace/preload/FUSE/etc. build systems do14:55:09
@emilazy:matrix.orgemilystoring a log of "syscalls" and using that to cache builds14:55:33

Show newer messages


Back to Room ListRoom Version: 6