4 ms·
Not agreeing or disagreeing with either of you just wanted to add some details to the garbage collector thing. Nims GC is able to either be controlled in terms
by PMunch 7y ago
Not agreeing or disagreeing with either of you just wanted to add some details to the garbage collector thing.
Nims GC is able to either be controlled in terms of when and how long it runs, and it can be completely disabled in favour of manual memory management. In fact people have gotten it to run on really low-powered microcontrollers like the Attiny85, as well of course as various Arduino boards. The benefit of Nim in these systems is that since it compiles and has such a rich macro system your are able to write abstractions that the compiler will turn into highly efficient code. So you can still write business logic level readable and maintainable code, while the compiler spits out super-optimised versions. This of course requires you to first write these macros, but often times a little goes a long way.