Hacker News new | ask | show | jobs
by 0cf8612b2e1e 1310 days ago
Are there any practical advantages to using Zig vs anything else? Presumably, the cross compilation means this should run everywhere for free, but would love to know if there was anything especially easy/hard with respect to the host language.
1 comments

It's really good for interfacing with C or writing C ffi's. If you're the sort of person who normally programs in a high-level language, then drops down to C for performance, zig is pretty good for that.

(If you want to compare zig and C, there are frankly a lot of reasons to prefer it, at least in the abstract).