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

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.


In 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 [edit: at 10:20]


Ah, that's awesome! Really cool to see a new language taking compile-time so seriously.


Fast compile time isn't actually that hard for a C-like language. Good code optimization and fast compile time is hard.


Fast 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.




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

Search: