2 ms·
Why is this getting downvoted? Have written code in all the languages mentioned and the performance characteristics of them are not seriously different enough
by gavinray 5y ago
Why is this getting downvoted?
Have written code in all the languages mentioned and the performance characteristics of them are not seriously different enough to warrant the decrease in productivity if this was the goal.
The clear usecase for Zig is in resource-constrained environments (it produces the smallest binaries I've ever seen) or when you want a very strict, Rust-esque type system.
I'm not saying you can't use it outside of that, or that it isn't a great language, but that as far as how many braincells and lines of code go in to solving a problem in Zig vs D vs Nim and very different for what is generally a small amount of performance.
(Also both of those languages have no-GC modes, just FWIW)