Hacker News new | ask | show | jobs
by mamcx 524 days ago
I think Rust is the best option for the `Need to make a project` kind of work.

It is overall better, IMHO, and the ecosystem and safety pay dividends.

But Zig has several nice things (I don't use it directly but appreciate them, and is my way to cross-compile to musl):

* Is truly faster to compile

* Is far better to cross-compile

* Is far smaller

* comptime is a much better `macro` language. I don't like the ergonomics of the split on Rust between the 2 styles of macros, where proc-macros is a cliff of complications

I think Zig fits the bill for `C is a compiler target`. Whatever I need to integrate with C or generate C I think it is now better to target Zig.

1 comments

I kind of agree but my main language is actually C++ (I know, don't hate me) and, wherever C is a target I just use C++ :)
My motto since 1993, if the choice is limited between C and C++, the latter is always the answer unless the call isn't on me.
Sounds like 32 years of hell :'(