• 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: Opinion on managed memory and garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opinion on managed memory and garbage collection


  • Subject: Re: Opinion on managed memory and garbage collection
  • From: WT <email@hidden>
  • Date: Mon, 22 Jun 2009 17:14:12 +0200

On Jun 22, 2009, at 4:58 PM, Phil Hystad wrote:

Being relatively new to Cocoa and Objective-C, what is the consensus on using the new version 2.0 managed memory features (garbage collection).

If you were writing a new Cocoa application from scratch, would garbage collection be the preferred method over the reference counting (retain/release) method. Having spent years in Java I would prefer a GC'd approach but I have also seen the great improvement of GC in Java over the years. Therefore, I am also curious on how the new Objective-C design for GC compares.

The applications I have in mind are mostly graphic (Quartz 2D) oriented and likely also some OpenGL work.

Thanks for your opinions and comments.

phil

Hi Phil,

I've also lived in java-land for a long time, so I understand where you're coming from. I've since come to think that spending some time coding without gc has the great advantage that it forced me to be more attentive and careful in my coding practice. Ultimately, of course, it would be nice not to have to worry about memory management at such fine-grained level, but the lessons I learned by coding without the gc safety net will be with me when that day comes. Also, if you're programming for the iPhone OS, you have no choice at the time being because the iPhone OS does not support gc.

Wagner
_______________________________________________

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: Opinion on managed memory and garbage collection
      • From: Phil Hystad <email@hidden>
References: 
 >Opinion on managed memory and garbage collection (From: Phil Hystad <email@hidden>)

  • Prev by Date: Re: number box class from NSTextField
  • Next by Date: Re: Amount of Arguments per Method
  • Previous by thread: Opinion on managed memory and garbage collection
  • Next by thread: Re: Opinion on managed memory and garbage collection
  • Index(es):
    • Date
    • Thread