DIP60: @nogc attribute

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 22 06:11:55 PDT 2014


On Mon, 21 Apr 2014 17:52:30 -0400, Ola Fosheim Grøstad  
<ola.fosheim.grostad+dlang at gmail.com> wrote:

> Here are two very good reasons to avoid extensive ref-counting:
>
> 1. transactional memory ( you don't want a lock on two reads )
>
> 2. cache coherency ( you don't want barriers everywhere )
>
> Betting everything on ref counting is the same as saying no to upcoming  
> CPUs.
>
> IMO that means ARC is DOA. It might be useful for some high level  
> objects… but I don't understand why one would think that it is a good  
> low level solution. It is a single-threaded solution.

Single threaded ARC can go a long way in D. We statically know whether  
data is shared or not.

-Steve


More information about the Digitalmars-d mailing list