3 ms·
Nim is garbage collected, thus is a higher level language but doesn't fit the high performance low overhead of "systems programming" requirement. While Zig is
by habibur 5y ago
Nim is garbage collected, thus is a higher level language but doesn't fit the high performance low overhead of "systems programming" requirement.
While Zig is manual memory managed like C and nearer to the core, but harder to program.
- sa1 5y agoWith ARC, Nim's memory management would be closer to Rust than to Go.
- michaelsbradley 5y agoI think the maintainers of Nim would disagree with your assessment given that the first sentence on the front page of Nim's official website is: "Nim is a statically typed compiled systems programming language." As someone else pointed out, when using Nim with its ARC/ORC and move semantics (which will eventually be the default), it's closer to Rust than to Go. That being said, Nim's current default GC does well for many kinds of workloads. If it's really causing a performance problem, it's possible to disable it and manage memory manually (or use a different language for the task at hand, of course).
- goodpoint 5y agoNot at all: Nim always targeted system programming. Even before the new ARC/ORC, the GC was optional and done independently in each thread.
- pjmlp 5y agohttps://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Kernel.Mod.txt https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Kerne... https://tinygo.org/ https://tinygo.org/ https://www.ptc.com/en/products/developer-tools/perc https://www.ptc.com/en/products/developer-tools/perc