Re: ARC Retain Cycles
Re: ARC Retain Cycles
- Subject: Re: ARC Retain Cycles
- From: Jens Alfke <email@hidden>
- Date: Sat, 26 Apr 2014 10:57:17 -0700
On Apr 26, 2014, at 10:32 AM, Dave <email@hidden> wrote:
> Really, what OS other, makes you clean up after it?
Um.
You were making a joke, right? Or do you honestly think that Win32 or GTK or POSIX or whatever don't require some attention to memory management?
Have you ever heard of malloc() and free()? AddRef() and Release()? g_object_ref() and g_object_unref()?
Yes, there are mainstream garbage-collected platforms now like Android and .NET. Guess what, in those you also have to spend time baby-sitting memory management, when you diagnose why your app’s heap size explodes during some operation or other. Then you get to fool around with weak-references or object caches or other hacks to try to avoid allocating objects faster than the GC can clean them up. (I have seen people on mailing lists complain that they want to be able to manually release/deref/free objects instead of having the GC babysit them. Sigh.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden