Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-18 Thread Charles Oliver Nutter
On Fri, Feb 11, 2011 at 4:08 PM, Rich Morin wrote: > At 6:09 PM -0200 2/11/11, Caio Chassot wrote: >> On 2011-02-11, at 15:25 , Matt Aimonetti wrote: >>> >>> Magically converting a snake_case method call to a >>> CamelCase method dispatch is bad for peformance >>> and documentation. > > It's not c

Re: [MacRuby-devel] WeakRef advice

2011-02-18 Thread Charles Oliver Nutter
Another important use of weakrefs came to mind: avoiding finalization. In general, finalizers are a bad idea. They often block GC, or at least block each other. They add overhead to GC cycles, since either finalizers must be run or objects must be enqueued for another thread to run their finalizer

Re: [MacRuby-devel] WeakRef advice

2011-02-18 Thread Charles Oliver Nutter
On Tue, Feb 15, 2011 at 5:28 PM, Laurent Sansonetti wrote: > Hi Alan, > Do you control the data structure that holds a reference to 'B'? If yes, you > may want to use NSHashTable which supports weak references. > To me, this sounds like a design problem. Maybe your project can be > re-architecture