• 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: Memory Management Mismanaged
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Management Mismanaged


  • Subject: Re: Memory Management Mismanaged
  • From: Simon Stapleton <email@hidden>
  • Date: Thu, 8 May 2003 20:30:55 +0200

Dustin Voss <email@hidden> wrote:

On Wednesday, May 7, 2003, at 04:46 AM, lbland wrote:

On Wednesday, May 7, 2003, at 06:59 AM, Pete Yandell wrote:

Seriously though, grafting full garbage collection onto objective-C
would clearly be pretty close to impossible

just for fun...

http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Garbage-
Collection.html#Garbage Collection

So, wait, this works? Then why the heck are we all using
retain/release?!

<irony>
Gosh, isn't garbage collection great? And doesn't retain/release suck?
</irony>

If you've ever tried using GC in a distributed environment, or in any application where continuous responsiveness is necessary, or where you can't have an enormous memory footprint, or where you just want to write the code and have it work rather than having to tune the garbage collector, you'll understand.

That's not to say that GC isn't a good thing in certain environments, but retain/release works equally as well there too.

Even if Apple ever managed to get GC working for Cocoa (unlikely with the way that Carbon and Cocoa interact), I suspect that most people would be sticking with retain/release most of the time. I know I would.

Simon

--
PGP Key Id : 0x50D0698D
_______________________________________________
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.

  • Prev by Date: NSTextView update notification
  • Next by Date: Re: Memory Management Mismanaged
  • Previous by thread: Re: Memory Management Mismanaged
  • Next by thread: No user's process
  • Index(es):
    • Date
    • Thread