[MacRuby-devel] Embedding MacRuby

Benjamin Stiglitz ben at tanjero.com
Tue Aug 19 12:55:06 PDT 2008


>> - Need to be able to clean up (full reset) of the MacRuby VM -  
>> release
>> all defined objects, undefine classes.
>> Is this even possible? How costly would it be, time-wise?
>
> I don't think this is possible, right now. But we can work on this.

Tearing down the old classes would be really difficult, since they  
might be referenced by objects that have been passed to the Obj-C  
side. I suppose if you used unique Objective-C class names and just  
cleared the Ruby->ObjC map, it wouldn’t be as bad, but then you need  
extra shenanigans to use Ruby classes from Objective-C.

> At a glance, the only problematic thing would be to remove C
> extensions that were loaded.

dyld can do this in Leopard. Hooray.

-Ben


More information about the MacRuby-devel mailing list