From: Ken Bloom Date: 2008-12-08T04:02:03+09:00 Subject: [ruby-core:20410] Re: Behavior: autoload calls rb_require() directly On Sat, 06 Dec 2008 05:18:40 +0900, Charles Oliver Nutter wrote: > Tomas Matousek wrote: >> But this only means we are missing a sandbox feature. If there was a >> simple way how to create a new sandboxed environment and execute a Ruby >> script within it and then remotely inspect the results then irb could >> use that. >> >> BTW: You can do it in IronRuby: :) > > JRuby as well, either by instantiating a new JRuby instance directly or > by using Evan Phoenix's MVM API (which does the same thing under the > covers. > > There is also work going on to add MVM support to 1.9. Check out the > branch, I believe it's functional already (or very close). Talk to ko1 > or nobu if you have more questions about that implementation. We will > match Ruby-level APIs as they evolve. > > - Charlie Could a sandbox feature like these (or why's) be used to protect the core? --Ken -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/