[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26297] Re: VM help

From: Alexander Cohen <naftaly@...>
Date: 2009-10-25 18:23:12 UTC
List: ruby-core #26297
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

In This Thread

Prev Next