!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

847 Members
For people hacking on the Nix package manager itself183 Servers

Load older messages


SenderMessageTime
22 May 2025
@puck:puck.moepuck
In reply to @emilazy:matrix.org
(using scopedImport to catch readFile takes 1.5× longer to eval :( )
(scopedImport doesn't cache imports the way import does; this is maybe a pretty big reason for the slowdown?)
14:26:32
@emilazy:matrix.orgemilyhmm I'd somewhat hope Nixpkgs doesn't import the same files over and over but maybe that's optimistic14:27:11
@emilazy:matrix.orgemily indeed it is, sort -u goes from 6186 to 4003 14:28:18
@emilazy:matrix.orgemilywhich is precisely a ratio that explains the slowdown14:28:28
@emilazy:matrix.orgemilyI wonder if there's anything disgusting I can do to re-add the caching14:28:43
@emilazy:matrix.orgemily best idea I can immediately come up with is let imports = listToAttrs (map (filename: { name = filename; value = scopedImport env filename; }) enumerateEveryFileInNixpkgs); env = { import = filename: imports.${filename} or scopedImport env filename; …; }; or something 14:32:28
@emilazy:matrix.orgemilyand by best I mean horrible14:32:33
@emilazy:matrix.orgemilyconstant factors seem like they'd be brutal too14:32:43
@emilazy:matrix.orgemily the other thing is that I actually don't need to trace stuff in Nixpkgs… but I can't just avoid forwarding import = scopedImport env; to Nixpkgs, because Nixpkgs can import user code again (e.g. callPackage) 14:36:23
@emilazy:matrix.orgemily I guess I could override lib.callPackageWith and hope there's no other important cases :) 14:37:49
@sbc64:matrix.orgsbc64 joined the room.16:40:46
@philiptaron:matrix.orgPhilip Taron (UTC-8) Awesome news! Is there someone from the Nix core team on deck to make the nixpkgs PR, or would you like community support from (say) me there? 17:59:48
@philiptaron:matrix.orgPhilip Taron (UTC-8)I'm also interested in the future of the componetized build in Nixpkgs18:00:21
@Ericson2314:matrix.orgJohn Ericson hmm we are using boost regex without doing --with-regex in our boost 20:24:15
@Ericson2314:matrix.orgJohn Ericsonhow does that work?20:24:18
@Ericson2314:matrix.orgJohn Ericson(just saw it not work using the overlay, but it is working in CI)20:24:30
23 May 2025
@bombeuler:fedora.imBomb Euler joined the room.08:28:17
@treeways:matrix.orgTreeways joined the room.11:03:12
24 May 2025
@enzime:nixos.dev@enzime:nixos.dev joined the room.07:54:07
@enzime:nixos.dev@enzime:nixos.dev left the room.07:54:55
@sss:matrix.dark-alexandr.netsss joined the room.12:43:09
25 May 2025
@fzakaria:one.ems.hostfzakariais there an apetite in CppNix to "clean up includes" ?23:58:30
@fzakaria:one.ems.hostfzakariausing https://clangd.llvm.org/design/include-cleaner which follows "Include What You Use"23:58:51
26 May 2025
@awiteb:4rs.nlAwiteb joined the room.12:30:24
@awiteb:4rs.nlAwitebHi, I can't join #users:nixos.org. Is there a new group?12:41:32
@toonn:matrix.orgtoonn Awiteb: It's invite-only because of persisting spam. 15:10:14
@awiteb:4rs.nlAwiteb Thanks, someone sends me an invite 18:45:27
@awiteb:4rs.nlAwiteb
In reply to @toonn:matrix.org
Awiteb: It's invite-only because of persisting spam.
*
18:59:40
@toonn:matrix.orgtoonn My client doesn't support invites. Ask in the Matrix moderation room maybe. 19:33:58
27 May 2025
@irenes:matrix.orgIrenes left the room.08:58:12

Show newer messages


Back to Room ListRoom Version: 6