Victor Ng's Radio Weblog : armed with cocoa, an ibook and too much spare time
Updated: 4/4/03; 12:20:21 AM.

 

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


dotMac


Categories

Cocoa


Friends


Site Meter
 
 

Tuesday, November 5, 2002

One thing I miss while learning Objective-C and Cocoa is Java's garbage collector.

There's some interesting stuff on GC on the CocoaDev site here. A cool little tidbit that I didn't know about Java's GC is that it actually moves objects around while doing a GC sweep.

Large objects get tossed around into a block of memory so that you get less fragementation. Nice.

Kind of interesting to see that C# takes it one step further and you practically get 2 heaps - a large object heap so that you don't have to even pay the cost of moving objects (and all the associated pointers) around. Neat.

Although a little dated, you can find Java 1.3.1 GC notes here.

There's some weird babbling going on in the Apple Cocoa-dev mailing list about adding GC to Objective-C. I can't see how you'd do that considering you have access to all the pointers that are available to be munged. Mind you GNUStep seemed to have something that worked.

So hey - what do I know?
4:55:36 PM    


© Copyright 2003 Victor Ng.



Click here to visit the Radio UserLand website.

 


November 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Oct   Dec


AIM: vng1@mac.com
MSN: v2ng@hotmail.com
ICQ: 30390174

NetNewsWire: More news, less junk. Faster