• 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: GC pros and cons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC pros and cons


  • Subject: Re: GC pros and cons
  • From: WT <email@hidden>
  • Date: Sat, 27 Jun 2009 03:20:58 +0200

Forgive me for the intrusion, for

a) I am not what one would consider an experienced Cocoa developer,
b) I have not used GC in Cocoa projects yet,
c) my experience with GCs is limited to Java, and
d) I have read most, but not all, the posts in this thread.

Having disclaimed myself, this is what I would like to contribute to this thread.

Presumably, the advantages and disadvantages of GC and retain/release are only really significant and worth-considering in large and/or complex projects. Assuming that to be the case, then what would a developer prefer?

1) Yield some control to the GC subsystem and gain on maintainability, or

2) Stick to retain/release and have to maintain a potentially extremely complicated object graph, with potentially large and interlocking retain cycles?

I don't know about other developers, but I'd rather choose 1. It seems to me that micro-managing memory can get out-of-hand rather easily on large projects. By adopting a GC approach, I'd be relinquishing some control, yes, but I'd be gaining the peace of mind of not having to debug a potential monster.

And the above doesn't even consider the fact, pointed out by others already, that retain/release doesn't guarantee that objects will be released when you think they are going to.

On Jun 27, 2009, at 2:49 AM, James Gregurich wrote:

you do whatever floats your boat. I'll do what floats mine.

I think my boat sunk, 'cause I was using integers rather than floats.

(Sorry... I just thought the thread could use a bit of levity just now)

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: GC pros and cons
      • From: Graham Cox <email@hidden>
References: 
 >Re: GC pros and cons (From: James Gregurich <email@hidden>)

  • Prev by Date: Re: Design for custom tableviewcell button action
  • Next by Date: Re: GC pros and cons
  • Previous by thread: Re: GC pros and cons
  • Next by thread: Re: GC pros and cons
  • Index(es):
    • Date
    • Thread