D is crap

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 9 19:08:36 PDT 2016


On Saturday, 9 July 2016 at 11:10:22 UTC, bachmeier wrote:
> On Saturday, 9 July 2016 at 08:06:54 UTC, ketmar wrote:
>> On Saturday, 9 July 2016 at 07:52:57 UTC, Ola Fosheim Grøstad 
>> wrote:
>>> removed the GC
>> ...
>>> replaced it with automatic reference counting.
>>
>> you *do* know that refcounting *is* GC, do you? ;-)
>
> And that's a very important point, because the choice of RC vs 
> other types of GC ignores the fact that they're both GC, and 
> old school programmers didn't want anything to do with a 
> "feature" that would slow down their code. RC would have been 
> an even worse choice when D started because it is [claimed to 
> be] slower than other types of GC.

No, manual reference counting is not particularly slow. Automatic 
reference counting is also not considered to be slower than GC.

Reference counting is not capable of catching cyclic reference, 
which is why garbage collection is considered to be a more 
general solution to the problem.

This is pretty much 101 memory management.



More information about the Digitalmars-d mailing list