3 ms·
What's the status of Nim's garbage collector? https://nim-lang.org/docs/gc.html https://nim-lang.org/docs/gc.html Last time Nim came up on HN someone said they
by bjourne 8y ago
What's the status of Nim's garbage collector? https://nim-lang.org/docs/gc.html https://nim-lang.org/docs/gc.html Last time Nim came up on HN someone said they were changing from reference counting to tracing. Also seems like the Nim developers are reluctant to make a choice here? GC is a show-stopper for some developers but an absolute necessity for others.
- yellowapple 8y agoMy impression from the article and docs is that Nim offers multiple choices specifically because garbage collection ain't one-size-fits-all.
- lylecubed 8y agoNim has multiple garbage collectors you can change at compile time. Here's the --gc option from the documentation. --gc:refc|v2|markAndSweep|boehm|go|none|regions I don't know if this is up to date or not. There's an open issue on github to improve the documentation on the garbage collector. https://github.com/nim-lang/Nim/issues/8802 https://github.com/nim-lang/Nim/issues/8802