Hacker News new | ask | show | jobs
by LexiMax 1055 days ago
I've done green-field work with both Nim and Zig.

There were loads of specific differences, but if I could characterize both languages in a simple way:

- Nim seems to emphasize being a swiss army knife in the way that Python is, except as a compiled language.

- Zig is a much more focused language that tries to hit a certain specific niche - being a successor and replacement for C - and hits that mark spectacularly.

I think language preference comes down to what your personal needs and wants out of a new language that isn't being served by whatever you're using currently. I personally landed in the "Zig" camp because the way it approaches its ambition of being a C successor is intriguing, but I could see why other people might land on Nim.