4 ms·
I read this in http://www.infognition.com/blog/2014/the_real_problem_with_gc_in_d.html http://www.infognition.com/blog/2014/the_real_problem_with_g... better as
by p0nce 10y ago
I read this in http://www.infognition.com/blog/2014/the_real_problem_with_gc_in_d.html http://www.infognition.com/blog/2014/the_real_problem_with_g... better ask the author of the article if you have a way for a better D GC.
> To make fast GC it needs to be generational, but generational GC means write barriers: you can't just freely mutate memory, every pointer mutation must be accompanied by additional bookkeeping.
I guess that in the context of D generations are not possible or practical. If you have any idea why it should be possible, you may write a DIP.
- WalterBright 10y agoIt's possible to do generational collection in D. I've written one before and was careful to design the semantics of D to allow for it. It just needs someone to spend the time to implement it (the core language doesn't need to change). I'm skeptical, however, if it will offer a real improvement.