SmartRef: The Smart Pointer In D

nbro via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Jan 14 03:52:34 PST 2017


On Saturday, 14 January 2017 at 04:14:11 UTC, Chris Wright wrote:
>
> It's reference counting.
>
> Reference counting is like garbage collection, but deamortized. 
> This is better for real-time applications. However, it adds 
> overhead on every assignment and every variable going out of 
> scope.
>
> In D, garbage collection is more expensive than it is in other 
> languages, so the tradeoff is more attractive than it would be 
> in other languages.

Garbage collection in D is more expensive just because of the 
poor implementation, from what I've heard. If that's the case, 
people who work on it should be able to improve it over time.



More information about the Digitalmars-d-announce mailing list