2 ms·
Nim offers a choice of several GCs: https://nim-lang.org/1.6.0/gc.html https://nim-lang.org/1.6.0/gc.html for upcoming v2: https://nim-lang.org/docs/mm.html h
by michaelsbradley 4y ago
Nim offers a choice of several GCs:
https://nim-lang.org/1.6.0/gc.html https://nim-lang.org/1.6.0/gc.html
for upcoming v2: https://nim-lang.org/docs/mm.html https://nim-lang.org/docs/mm.html
Note that beginning with v1.6.2 it's specified with `--mm:[choice]` instead of `--gc:[choice]`, though the latter still works.
And beginning with v2, the default GC will be orc, while to date it's refc. That's an important change and has involved a lot of hard work by maintainers and contributors leading up to the release of v2.0.0.
See also the user guide for Nim's compiler:
https://nim-lang.org/docs/nimc.html https://nim-lang.org/docs/nimc.html