• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ARC Retain Cycles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ARC Retain Cycles
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: ARC Retain Cycles (From: Jim McGowan <email@hidden>)
 >Re: ARC Retain Cycles (From: Dave <email@hidden>)
 >Re: ARC Retain Cycles (From: Dave <email@hidden>)

  • Prev by Date: Re: ARC Retain Cycles
  • Next by Date: Re: ARC Retain Cycles
  • Previous by thread: Re: ARC Retain Cycles
  • Next by thread: Re: ARC Retain Cycles
  • Index(es):
    • Date
    • Thread