Re: Garbage Collection for Cocoa?
Re: Garbage Collection for Cocoa?
- Subject: Re: Garbage Collection for Cocoa?
- From: Vincent Coetzee <email@hidden>
- Date: Sun, 2 Nov 2003 15:53:07 +0200
This is a very interesting proposition and I wonder why Apple has not
done it ? I am an old Smalltalker who has been forced to move to Java
as a result of the demise of commercial Smalltalks, I enjoy Objective C
a lot due to it's similarity to Smalltalk, the only thing that bugs me
about it is it's positively cretaceous approach to memory management,
my days of finding memory leaks are long gone. I would be very keen to
learn of your results.
Vincent
On Nov 03, 2003, at 01:42, Keith Bauer wrote:
I've been idly wondering whether it would be possible to get garbage
collection in Objective C.
The Boehm-Demers-Weiser collector (used by GCJ, d2c, &c) seems quite
stable on Mac OS X these days, so hopefully it would just be a matter
of slotting GC_malloc into appropriate places in the ObjC runtime...
Does anyone know where I should start? Override +alloc for NSObject
maybe? Or even lower -- somehow replace NSAllocateObject? Or lower
still -- actually replace the system malloc?
Are there any obvious pitfalls awaiting me here?
Thanks for any help/advice/pearls of wisdom,
Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.