[#35027] [Ruby 1.9-Bug#4352][Open] [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s) — "James M. Lawrence" <redmine@...>

Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)

16 messages 2011/02/01

[#35114] [Ruby 1.9-Bug#4373][Open] http.rb:677: [BUG] Segmentation fault — Christian Fazzini <redmine@...>

Bug #4373: http.rb:677: [BUG] Segmentation fault

59 messages 2011/02/06

[#35171] [Ruby 1.9-Bug#4386][Open] encoding: directive does not affect regex expressions — mathew murphy <redmine@...>

Bug #4386: encoding: directive does not affect regex expressions

9 messages 2011/02/09

[#35237] [Ruby 1.9-Bug#4400][Open] nested at_exit hooks run in strange order — Suraj Kurapati <redmine@...>

Bug #4400: nested at_exit hooks run in strange order

12 messages 2011/02/15

[ruby-core:35288] Re: [Ruby 1.9-Feature#4265][Open] Provide a core method Kernel#ruby for invoking a new Ruby instance

From: Charles Oliver Nutter <headius@...>
Date: 2011-02-17 15:50:15 UTC
List: ruby-core #35288
On Wed, Feb 16, 2011 at 5:40 PM, Roger Pack <rogerdpack2@gmail.com> wrote:
>> As Hongli pointed out, and as Gem.ruby shows, it's easy enough to
>> stitch together the right bits to re-launch the current Ruby. It's not
>> so easy to hide the fact that you're physically launching a new
>> process...
>
> Most people expect to be launching new processes from system...so if I
> understand you correctly, this would be a shortcut for "don't launch a
> new process if you don't have to" then, hence it being better to be a
> whole new method (IO.ruby_system perhaps ?) ?

Yeah, I agree with that. It could almost be IO.mvm_ruby where what you
get back is not a PID but an object suitable for messaging with and
controlling the child Ruby. Whether it runs in a separate process or
not is an implementation detail that the API might hide or expose
through an option. But basically, it would be a way to say "I just
want to run this Ruby code in a clean environment...do that however
you will".

- Charlie

In This Thread

Prev Next