3 ms·
I would like to read about Zig vs Nim.
by neolog 6y ago
I would like to read about Zig vs Nim.
- k__ 6y agoYes, the comptime stuff I read about Zug sounded like Nim to me.
- kettro 6y agoNim is garbage collected, Zig is manual
- k__ 6y agoAs far as I know Nim is both.
- ojnabieoot 6y agoGenerally Zig is a bit lower-level and simpler. One big difference is that Nim compiles to C whereas Zig compiles to LLVM IR. Zig is also heavily imperative / procedural, whereas Nim supports more object-programming paradigms, algebraic data types, more sophisticated exception handling, and so on. They are both low-level compared to Python but fill different niches.
- vanderZwan 6y agoIf anyone ever considers writing a Nim variant that compiles to Zig, I suggest that it be called "Zinnig". Aside from being punny it means sensible/rational in Dutch, which seems appropriate ;) [0] https://en.wiktionary.org/wiki/zinnig https://en.wiktionary.org/wiki/zinnig
- nimmer 6y ago> low-level compared to Python In what way? Nim gives full access to hardware, memory management & co, but the expressiveness is very similar to Python.