3 ms·
Are you aware of anyone with large projects in Zig? I'm curious how fast it compiles, given in my view faster compilation is one of the biggest advantages of D
by logicchains 7y ago
Are you aware of anyone with large projects in Zig? I'm curious how fast it compiles, given in my view faster compilation is one of the biggest advantages of D over C++ and Rust, due to it having a lightweight compiler, DMD. Zig seems to still use LLVM, like Rust, which is relatively slow.
- drfuchs 7y agoIn his live-stream three days ago, Andrew Kelley showed the beginnings of Zig directly generating debug-mode executables, very quickly. And that’s before incremental compilation and linking. This guy is amazing. https://www.twitch.tv/videos/602715503 https://www.twitch.tv/videos/602715503 [edit: at 10:20]
- logicchains 7y agoAh, that's awesome! Really cool to see a new language taking compile-time so seriously.
- setpatchaddress 7y agoFast compile time isn't actually that hard for a C-like language. Good code optimization and fast compile time is hard.
- alexhutcheson 7y agoFast compile time on large projects is really hard for C and C-compatible languages due to the preprocessor and #include. Not an issue if you're comparing compilation for a single file, but it turns into a substantial fraction if your compile time when that file transitively #includes 10s or 100s of headers.