Idea #1 on integrating RC with GC
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Feb 4 20:21:17 PST 2014
On 2/4/14, 5:06 PM, Adam Wilson wrote:
> Ok, disregard my previous post. I think I understand better what Andrei
> is driving at, but it's not obvious, better examples are needed. But
> more to the point this is going to make us all equally miserable. The
> ARC guys don't get the compiler support needed to make ARC fast.
Of course they could. Compiler can have internal support for RC slices.
Object will need some built-in support anyway.
> It
> completely ignores cyclic-refs inside the slice.
Wrong. It leaves cyclic references to the GC.
> It doesn't solve the
> primary ARC-camp complaint about the reliance on the GC.
Why not?
> The GC now guys
> have more hoops to jump-through when working with Phobos.
Why?
> And it
> increases complexity and cognitive load all around.
That comes with the territory. Have no illusion we can add RC support in
any way at no cost.
Andrei
More information about the Digitalmars-d
mailing list