LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

Araq via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 16 11:11:54 PDT 2014


On Wednesday, 16 July 2014 at 16:57:18 UTC, Kagamin wrote:
> On Tuesday, 15 July 2014 at 20:44:35 UTC, H. S. Teoh via 
> Digitalmars-d wrote:
>> Not to mention, when you need to deallocate a large complex
>> data structure, *somebody* has to do the work -- either you do 
>> it
>> yourself, or the reference counting implementation, or the GC.
>
> The first and the last options are still prominent.

A copying GC copies the live data, deallocation of a large 
complex data structure is free in this scenario. Same if you use 
a manually managed memory region for the data structure and then 
deallocate the region via some batch operation. But hey, this 
simple fact must be wrong because some guy read a single paper 
about GCs that doesn't even cover this point.


More information about the Digitalmars-d mailing list