Idea #1 on integrating RC with GC
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Feb 5 14:18:33 PST 2014
On 2/5/14, 12:20 PM, "Ola Fosheim Grøstad"
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Wednesday, 5 February 2014 at 20:04:31 UTC, Andrei Alexandrescu wrote:
>> I said it a couple of times, and it seems it bears repeating: the
>> charter of this is solely to create a slice type that takes care of
>> itself. What this is not is a general solution for managing internal
>> pointers or pointers to arbitrary objects.
>
> Then I think this is starting in the wrong end of the problem space.
> Slices are tiny dots in this picture.
I'm confused. Slices are the bulkiest allocation there is: chunks of
contiguous data.
> It would be better to have a RC compiler switch and version{} statements
> in the libraries rather than having extensive special casing of RC/GC
> vs pure GC types in user code.
I don't see where the extensive casing comes from. User code decides
which way they want and they go for it. Simple aliases make certain
decisions swappable.
Andrei
More information about the Digitalmars-d
mailing list