On Oct 25, 2009, at 5:05 AM, Robert Klemme wrote:

> On 10/24/2009 07:46 PM, Alexander Cohen wrote:
>> Can anyone out there point me to some tutorial or examples on how  
>> to  use the Ruby VM? Most specifically, how to separate the VM  
>> into  multiple contexts with their own set of global objects and  
>> maybe how  to use the stack functions.
>
> I don't think there is an easy way to sandbox multiple contexts and  
> still use global variables etc.  You would at least have to hack the  
> interpreter, I guess.  What are you trying to accomplish?

I am adding ruby to be used as a scripting language in WebKit/WebCore.  
It's really working great but it's not feasable for anything else than  
playing around if i can't sandbox multiple contexts. I could build the  
ruby VM directly into the core and hack it for multiple contexts but i  
was hoping i would not need to do that. Are there any other options  
out there?

AC