Why many programmers don't like GC?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Jan 13 20:46:15 UTC 2021


On Wednesday, 13 January 2021 at 18:58:56 UTC, Marcone wrote:
> I've always heard programmers complain about Garbage Collector 
> GC. But I never understood why they complain. What's bad about 
> GC?

tsbockman gave a good answer.

In short:

- You need to design the language for GC for it to be a 
satisfying solution for interactive applications. For D and C++ 
it is bolted on... which is not great.

- You will use roughly twice as much memory with GC (you get more 
garbage).

- You will get more uneven performance with GC (humans are 
smarter).



More information about the Digitalmars-d-learn mailing list