by sevensor · 1y ago · 0 comments
This really makes me question the accuracy of the rest of the article.
I'm really struggling to come up with a compiler that is faster than Zig.
Go, maybe? That's ... about the end of my shortlist.
Zig builds C faster than most C compilers. You're going to have to do better than just mention it.
However, if those are the only things that are even possibly faster than Zig, then the Zig compiler qualifies as fast, not slow--which was my original point.
The fact is simply that despite Zig uses LLVM as a backend in the same way Odin and C3 does, it compiles much slower. Exactly why that is, is something I can only guess at, but the fact is that Zig cached is still much slower to compile than Odin or C3.
(There are a few possible candidates as to why this is so that I identified and can share if it is interesting)
In any case, Zig is only ”fast to compile” if you compare to the triad of infamously slow languages: Swift, C++ and Rust.
Anything else is just hype.
Worse, there's not even a compiler available. I don't even think there's even a spec.