Social media

Bastiaan Veelo Bastiaan at Veelo.net
Sat Jun 13 13:18:12 UTC 2020


On Saturday, 13 June 2020 at 10:43:41 UTC, IGotD- wrote:
> Does this have anything to do with that swapping out GC 
> algorithms in Nim is much more easy than in D?

Is that true, though?

> In D you can't really swap GC algorithms by just changing a 
> compiler option.

Better yet, it doesn’t even need a reconciliation: just add 
“--DRT-gcopt=gc:precise” on the command line and you have changed 
the scanning algorithm. There are many more options to configure 
the gc[1]. You can even write your own collector and switching to 
it is just as simple.

— Bastiaan.

[1] https://dlang.org/spec/garbage.html#gc_config


More information about the Digitalmars-d mailing list