Hacker News new | past | comments | ask | show | jobs | submit login

Why Zig is better than some other programming language?



It easily cross-compiles to any target it supports, and natively handles C and C++ dependencies. Much of the complexity of supporting builds in other languages comes from the inclusion of object code in C or C++, so using Zig gives a leg up with that. It also handles caching quite cleanly.

I don't think it's an obvious choice for literally everything, at least not yet. But I'd suggest strongly considering it as a build tool for object-code-heavy applications, even if they don't use the Zig language itself.


People use it as better c compiler and build system without using zig per se.




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

Search: