Mac Apps That Use Garbage Collection Must Move to ARC

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 25 21:01:52 PST 2015


On Thursday, 26 February 2015 at 04:11:42 UTC, Walter Bright 
wrote:
> On 2/25/2015 6:57 PM, deadalnix wrote:
>> You seems to avoid the important part of my message : write 
>> barrier tend to be
>> very cheap on immutable data. Because, as a matter of fact, 
>> you don't write
>> immutable data (in fact you do to some extent, but the amount 
>> of write is minimal.
>>
>> There is no reason not to leverage this for D, and java 
>> comparison are
>> irrelevant on the subject as java does not have the concept of 
>> immutability.
>>
>> The same way, we can use the fact that TL data are not 
>> supposed to refers to
>> each others.
>
> Of course, you don't pay a write barrier cost when you don't 
> write to data, whether it is immutable or not is irrelevant.

It DOES matter as user tends to write way more mutable data than 
immutable ones. Pretending otherwise is ridiculous.


More information about the Digitalmars-d mailing list