!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

651 Members
Meta discussions related to https://nix-community.org. (For project specific discussions use github issues or projects own matrix channel). Need help from an admin? Open an issue on https://github.com/nix-community/infra/issues164 Servers

Load older messages


SenderMessageTime
26 Oct 2023
@axel:krab.chataxel 🦀 Hey @pwychowaniec, would it be alright if I dmed you? 03:16:37
@pwychowaniec:matrix.orgpwychowaniecsure, sure! 05:02:12
@adis:blad.isadisbladis
In reply to @joerg:thalheim.io
adisbladis: if you had to implement incremental go builds with nix (or just having the dependencies pre-compiled), how would approach the problem?
I looked into that a while back and my conclusion is that it's not really feasible. But I hope I'm wrong.
06:38:11
@lotte:chir.rs@lotte:chir.rs changed their profile picture.06:46:50
@joerg:thalheim.ioMic92
In reply to @adis:blad.is
I looked into that a while back and my conclusion is that it's not really feasible. But I hope I'm wrong.
Shouldn't building a cache like this work?
$ export GOCACHE=$out
$ xargs < packages-to-build go install
06:56:33
@joerg:thalheim.ioMic92and than feed this GOCACHE into the final build again.06:57:00
27 Oct 2023
@adis:blad.isadisbladis Mic92: I experimented with doing that in various configurations but it didn't actually end up faster. I can't remember what the issue(s) were. 00:49:50
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.01:24:19
@pwychowaniec:matrix.orgpwychowaniec Jonas Chevalier: axel 🦀 has volunteered for maintaining Naersk - do you know what are the next steps here to implement this? 😄 05:41:15
@joerg:thalheim.ioMic92 adisbladis: https://github.com/numtide/build-go-cache 06:34:56
@adis:blad.isadisbladis
In reply to @joerg:thalheim.io
adisbladis: https://github.com/numtide/build-go-cache
Right, so you get one massive cache for the whole project, not any incrementality?
06:36:06
@joerg:thalheim.ioMic92Just for dependencies and not the source of the project.06:36:53
@joerg:thalheim.ioMic92One could potentially split this up, but I am not seeing the benefit vs. complexity in this.06:37:23
@adis:blad.isadisbladisI always tried to get a recursive thing going as my motivation was to maximise reuse06:37:53
@joerg:thalheim.ioMic92I have the feeling that the eval time of this would be higher than the speed of the go compiler. 06:38:30
@adis:blad.isadisbladisBut when I did that all compiler savings were dwarfed by copying files around06:38:38
@joerg:thalheim.ioMic92the cache also speeds up proxyVendor = true;06:39:26
@joerg:thalheim.ioMic92Because we are using GOMODCACHE06:39:37
@adis:blad.isadisbladis(I was using gomod2nix)06:39:44
@joerg:thalheim.ioMic92Can cache entries not be symlinked into one tree from single dependencies?06:40:37
@adis:blad.isadisbladisI don't think so06:41:02
@adis:blad.isadisbladisMy memory is extremely fuzzy about this06:41:27
@adis:blad.isadisbladisBut as far as I remember it it's just a pile of files that the compiler mutates06:41:50
@joerg:thalheim.ioMic92The go cache works a bit like nix.06:42:00
@adis:blad.isadisbladisSo merging behaviour is hard06:42:01
@joerg:thalheim.ioMic92It computes a cache key over the inputs.06:42:12
@joerg:thalheim.ioMic92Afterwards cache entries shouldn't be mutated06:42:21
@joerg:thalheim.ioMic92 you can do GODEBUG=gocachehash=1 go build net to see how the hash is computed. 06:43:11
@zimbatm:numtide.comJonas Chevalier
In reply to @pwychowaniec:matrix.org
Jonas Chevalier: axel 🦀 has volunteered for maintaining Naersk - do you know what are the next steps here to implement this? 😄
great! ping me his github handle and I will take care of the rest
09:19:10
@pwychowaniec:matrix.orgpwychowaniechttps://github.com/AxelSilverdew :-) 09:19:56

Show newer messages


Back to Room ListRoom Version: 6