Mac Apps That Use Garbage Collection Must Move to ARC

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 21 23:47:31 PST 2015


On Sunday, 22 February 2015 at 06:07:02 UTC, weaselcat wrote:
> On Sunday, 22 February 2015 at 02:14:04 UTC, Walter Bright 
> wrote:
>> On 2/21/2015 4:43 PM, Manu via Digitalmars-d wrote:
>>> D's GC is terrible, and after 6 years hanging out in this 
>>> place, I
>>> have seen precisely zero development on the GC front. Nobody 
>>> can even
>>> imagine, let alone successfully implement a GC that covers 
>>> realtime
>>> use requirements.
>>
>> Nobody thinks GC is suitable for hard realtime.
>>
>>
>>> On the other hand, if 'scope' is implemented well, D may have 
>>> some of
>>> the best tools in town for quality ARC implementation. There 
>>> is a
>>> visible way forward for quality RC in D, and I think we could 
>>> do
>>> better than Apple.
>>
>> With 'return ref', which is now implemented, you can create a 
>> memory safe RefCounted type. However, nobody has bothered. Are 
>> you up for it? :-)
>
> Excuse my ignorance,(I read the DIP btw)
> How does 'return ref' address issues like
> http://forum.dlang.org/thread/pagpusgpyhlhoipldofs@forum.dlang.org#post-ewuwphzmubtmykfsywuw:40forum.dlang.org
> ?

Responding to myself, I don't think this actually touches on the 
issue deadalnix wanted at all.

So I think the
>> With 'return ref', which is now implemented, you can create a 
>> memory safe RefCounted type.
is not quite correct... in his usage, anyways. I think this would 
require DIP69, no?


More information about the Digitalmars-d mailing list