Re: Opinion on managed memory and garbage collection

2009-06-23 Thread Rob Keniger
On 24/06/2009, at 7:39 AM, Sean McBride wrote: If you were writing a new Cocoa application from scratch, would garbage collection be the preferred method over the reference counting (retain/release) method. I switched to GC-only during the 10.5 betas, and my answer is: Yes. Same here, a

Re: Opinion on managed memory and garbage collection

2009-06-23 Thread Sean McBride
On 6/22/09 7:58 AM, Phil Hystad said: >If you were writing a new Cocoa application from scratch, would >garbage collection be the preferred method over the reference counting >(retain/release) method. I switched to GC-only during the 10.5 betas, and my answer is: Yes. Others have made good comme

Re: Realtime, GC and ObjC (Was Re: Opinion on managed memory and garbage collection)

2009-06-23 Thread Andy Lee
On Tuesday, June 23, 2009, at 12:29PM, "Andrea Gozzi" wrote: >> On Jun 23, 2009, at 1:39 AM, Chris Idou wrote: [...] >> One of the concerns I see with GC is "I can't use it because my app >> is realtime or near-realtime". In this case, GC or not is moot and >> the real issue is that you can'

Re: Realtime, GC and ObjC (Was Re: Opinion on managed memory and garbage collection)

2009-06-23 Thread Andrea Gozzi
On Jun 23, 2009, at 4:53 PM, Bill Bumgarner wrote: On Jun 23, 2009, at 1:39 AM, Chris Idou wrote: I haven't noticed GC pauses. It seems to me that the GC collects memory extremely quickly, relative to when it becomes unreachable. Given that it apparently does a lot of work in another thread,

Realtime, GC and ObjC (Was Re: Opinion on managed memory and garbage collection)

2009-06-23 Thread Bill Bumgarner
On Jun 23, 2009, at 1:39 AM, Chris Idou wrote: I haven't noticed GC pauses. It seems to me that the GC collects memory extremely quickly, relative to when it becomes unreachable. Given that it apparently does a lot of work in another thread, I wouldn't expect there to be much pausing in "nor

Re: Opinion on managed memory and garbage collection

2009-06-23 Thread Michael Ash
On Tue, Jun 23, 2009 at 2:09 AM, Quincey Morris wrote: > On Jun 22, 2009, at 21:21, Michael Ash wrote: > >> IMO there are three major reasons to avoid GC at this point: > > Your reasons are clearly stated, rational, compelling ... and almost > *entirely* anecdotal. That means what you say is a pers

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Chris Idou
re to be much pausing in "normal" applications. From: Michael Ash To: cocoa-dev Sent: Tuesday, 23 June, 2009 2:21:48 PM Subject: Re: Opinion on managed memory and garbage collection On Mon, Jun 22, 2009 at 10:58 AM, Phil Hystad wrote: > Being r

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Graham Cox
On 23/06/2009, at 2:21 PM, Michael Ash wrote: Retain/release has a long history, is very well understood, and doesn't really require much mental (or typing) overhead once you know it. With GC you're much more like a test pilot at this stage in the game, especially since there are a lot of frame

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Quincey Morris
On Jun 22, 2009, at 21:21, Michael Ash wrote: IMO there are three major reasons to avoid GC at this point: Your reasons are clearly stated, rational, compelling ... and almost *entirely* anecdotal. That means what you say is a personal perspective -- and I'm pretty sure that you know that.

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread WT
On Jun 23, 2009, at 6:21 AM, Michael Ash wrote: Retain/release has a long history, is very well understood, and doesn't really require much mental (or typing) overhead once you know it. Even less of a mental/typing overhead if you make use of properties. Wagner ___

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Michael Ash
On Mon, Jun 22, 2009 at 10:58 AM, 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 pr

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Peter N Lewis
On 22/06/2009, at 22:58 , Phil Hystad wrote: 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 gre

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Phil Hystad
Wagnar, Thanks for the comments. I agree that experience in using retain/ release is good to have, especially with iPhone. Although I have no plans for an iPhone app right now, I certainly would not rule it out. I did do a kind of hello world using the iPhone simulator though -- maybe I

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread WT
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 preferr

Opinion on managed memory and garbage collection

2009-06-22 Thread Phil Hystad
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/re