Smart pointers instead of GC?
Adam Wilson
flyboynw at gmail.com
Mon Feb 3 19:03:11 PST 2014
On Mon, 03 Feb 2014 19:00:30 -0800, Adam Wilson <flyboynw at gmail.com> wrote:
> On Mon, 03 Feb 2014 18:53:39 -0800, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> On 2/3/14, 4:49 PM, Adam Wilson wrote:
>>> That may be the case, but StackOverflow shows that ARC hasn't been
>>> panacea in Apple land either. Way to many people don't understand ARC
>>> and how to use it, and subsequently beg for help understanding
>>> heisenleaks and weak references. ARC places a higher cognitive load on
>>> the programmer than a GC does. And Android runs just fine with GC'ed
>>> apps, but ARC guys don't want to talk about Google's successes there.
>>
>> Links please.
>>
>> Andrei
>
> Easier to link a couple of Google searches:
> https://www.google.com/search?q=ios+stack+overflow+cyclic+reference&oq=stack+overflow+ios+cyclic+reference
>
> Note that some of those are related to circular imports as well. But the
> problems definitely show up in that list.
>
Note that ObjC has special syntax to handle weak pointers. It's not well
understood by many. And for D it would create an explosion of leaks in
existing code when there previously were none, due to the need to mark all
weak-refs explicitly.
--
Adam Wilson
GitHub/IRC: LightBender
Aurora Project Coordinator
More information about the Digitalmars-d
mailing list