3 ms·
I love the garbage collector in Nim. Not only you can chose between different memory management strategies but you can tune the garbage collector to your liking
by DeathArrow 4y ago
I love the garbage collector in Nim. Not only you can chose between different memory management strategies but you can tune the garbage collector to your liking and it's pretty fast by default.
- winrid 4y agoYes, it's amazing. Now we just need a Clion plugin that uses nimsuggest so I can actually use an IDE... :)
- DeathArrow 4y agoUntil then there's Visual Studio Code.
- winrid 4y agoI'm good
- deleted 4y ago[deleted]
- Tozen 4y agoNot at all professing any love of Nim, but do think their concept of various options for memory management was a good one. Not all programmers have the same goals and problems. Part of the issue can be that languages that do not provide any options for memory management, can try to make it seem that GC is more of a liability than it is. In the case of Nim, D, and other langauges... They are giving options, versus none. The lack of convenient choices, might be the greater issue, versus stigmatizing GC.
- grumpyprole 4y ago> Not all programmers have the same goals and problems. That's why we have different programming languages. The danger of making a language a jack-of-all-trades is that it will be master of none. Restrictions are more often than not a good thing, they give the power to reason, for both humans and machines (giving, for example, memory safety).
- _0ffh 4y agoNot to speak of Nim's ORC, which is automatic memory management, but arguably not garbage collection. Instead it's, roughly, automatic reference counting with cycle detection. The stopping times are absolutely minuscule!