Things that keep D from evolving?
Ola Fosheim Grøstad via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Feb 6 03:47:02 PST 2016
On Saturday, 6 February 2016 at 11:33:05 UTC, rsw0x wrote:
> On Saturday, 6 February 2016 at 11:15:06 UTC, Ola Fosheim
> Grøstad wrote:
> reference counting is incredibly slow, DIP74 attempts to
> partially amend that in D as it can't be done any other way
> besides compiler help.
> IIRC, it essentially just allows RC inc/dec to be elided where
> possible
_Automatic_ reference counting can be slow. Manual reference
counting can be very efficient (but takes programmer skill).
The better solution is to adopt borrow-semantics and only use
reference counting for ownership. Just like you ought to use
unique_ptr and shared_ptr in C++.
Of course, Swift does not aim for very high performance, but for
convenient application/gui development. And frankly JavaScript is
fast enough for that kind of programming.
More information about the Digitalmars-d-learn
mailing list