begin  quoting David M. Cook as of Sun, Nov 25, 2007 at 12:00:50AM -0800:
> On Sat, Nov 24, 2007 at 10:38:16PM -0800, Stewart Stremler wrote:
> 
> > Java. 
> > Maybe Smalltalk.  
> > Possibly Objective-C.
> 
> Memory management in Obj-C is less straightforward than the other two,

Yup.

>                                                                        and
> I'm curious how you would plan to handle it.  Use auto-release pools?  The
> Boehm GC?  Apple's new garbage collector?

Dunno. That's why it's #3 in the list. :)

Seriously, I'd probably forgo the Apple GC until that got folded back
into GCC, so the same code could compile and run on OS X, Linux, and
Solaris.

I've never played with the Boehm GC, so I'd probably pick an initial
module or two and try writing it both ways, and then looking at the
resulting code.  The least ugly / least painful code would be my
preference.

This presumes that the Boehm GC has been ported to my target platforms -- I
haven't touched anything in ObjC land in a long time -- and trouble here
would result in immediate abandoning of that route.  Debugging the compiler
is more work than such a project needs.

-- 
My Object-C-fu is weak!
Stewart Stremler

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to