6 ms·
Because a "better C" is long overdue. (And no, Rust is not it. It's a great language, but its design philosophy is very different.) Ironically, today, Zig is
by int_19h 5y ago
Because a "better C" is long overdue.
(And no, Rust is not it. It's a great language, but its design philosophy is very different.)
Ironically, today, Zig is also one of the best C/C++ compilers around, chiefly because it "just works", even for advanced scenarios such as cross-compilers:
https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html https://andrewkelley.me/post/zig-cc-powerful-drop-in-replace...
(Yes, of course, the actual compiler is Clang. But Zig wraps it in a way that makes it so much easier to install and use, especially on Windows.)
- 0des 5y ago> Because a "better C" is long overdue. I owe you 1 beer, this is so true. If I can just get something that treats a string politely I'll be over the moon. If that's Zig, it has earned my contribution, simple as that.
- rStar 5y agorust is it. the sooner everyone figures that out, the better.
- int_19h 5y agoWe can argue over whether Rust is a better low-level systems programming language than Zig; but that's not what I meant. C didn't shove you into a straightjacket, and neither does Zig - that's why the latter can meaningfully claim to be the true spiritual successor of the former. Rust is something else entirely (again, whether that "something else" is preferable is a different argument!).
- rStar 5y agodude, people are dumb and code has to work. we even would like it to scale per core. rust is it. this zig seems a personal project not the c replacement for the next 50 years.