Hacker News new | ask | show | jobs
by squeek502 469 days ago
My understanding is that Zig's incremental compilation will work on a much more granular level (i.e. functions, etc), so, for example, change one function and only that function (and its dependencies) will get recompiled/relinked (there's some linker trickery involved to avoid needing to relink everything IIUC).

More details here: https://ziggit.dev/t/how-zig-incremental-compilation-is-impl...

2 comments

Why would the function's dependencies need recompilation? I guess the dependees may require it, if they inlined it, or if the signature changed.
I'm probably not describing it fully accurately. See the link for the proper explanation.
Thanks for sharing !