Safe reference counting cannot be implemented as a library

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 1 14:04:49 PST 2015


On Sunday, 1 November 2015 at 20:55:00 UTC, Martin Nowak wrote:
> On 11/01/2015 09:51 PM, Martin Nowak wrote:
>> Any hint/numbers showing that this is actually useful?
>
> Also doesn't a good backend optimizer already fuse writes?

Yes but you have this myth flying around that it is necessary for 
good RC, because language like C++ do implicit sharing, so RC 
must be done atomically, so the optimizer can't optimize.



More information about the Digitalmars-d mailing list