Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Now you change a single function. Classic linking would require the whole linking process and the write of 150 MB of code. Zig will only compile and patch a single function (when lucky: less than 1kB) and emit this.

I see, thanks. I think I was misled by the article's "the final executable depends on everything else and so any meaningful change to the code will invalidate it". My understanding now is that, since the Zig compiler knows exactly what has changed, unlike a traditional linker it will not invalidate the parts that haven't changed. Is that correct?



> the final executable depends on everything else and so any meaningful change to the code will invalidate it

If I'm not mistaken that refers to in traditional compiled languages.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: