How does Ruby VM works?

I want to read about RVM, how does ruby handle threads, the interface
with the OS, and some other stuff, any low level book/paper
recommended?

Thanks

On Wednesday 11 April 2007 13:42, Emilio T. wrote:

I want to read about RVM, how does ruby handle threads, the interface
with the OS, and some other stuff, any low level book/paper
recommended?

Thanks

First of all there’s few Ruby VM’s google for YARV and rubinius
ruby threads are “green” and are handled simmilar to java threads.

there’s no low level book, read ruby-devel mailing list :slight_smile:

Emilio T. wrote:

I want to read about RVM, how does ruby handle threads, the interface
with the OS, and some other stuff, any low level book/paper
recommended?

That’ll be tough :wink:

Ruby is interpreted on run-time, not compiled like Java or Python can
be.

There are Ruby VMs in development, IIRC, but I don’t know the names off
the top of my head.


Phillip “CynicalRyan” Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #37:

Duplicate effort is inevitable. Live with it.

On Apr 11, 6:42 am, “Emilio T.” [email protected] wrote:

I want to read about RVM, how does ruby handle threads, the interface
with the OS, and some other stuff, any low level book/paper
recommended?

Thanks

You could search for the hacking guide, there is an english
translation in the works.

Do you have any specific questions? I can probably answer them for ya.

  • Evan

Marcin R. wrote:

ruby threads are “green” and are handled simmilar to java threads.

there’s no low level book, read ruby-devel mailing list :slight_smile:

Actually, there are starting to be bits and pieces of low-level Ruby
internals docs showing up on the web. Google for “Ruby Hacking Guide”
(Japanese with partial English translations) and “Ruby Internals
Guide”.


M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.net/

If God had meant for carrots to be eaten cooked, He would have given
rabbits fire.

On 4/11/07, [email protected] [email protected] wrote:

Do you have any specific questions? I can probably answer them for ya.
Thanks you!
I don’t have a very specific question i want to get involved in how
ruby works deep inside.

I started programming RoR apps but now im getting to pure Ruby
apps/script/daemons. Atm i’m coding a multithread daemon that use
log/process info/syscal/open-uri/etc…

And i’m very interesting about hacking Ruby

Thanks all for your reply

use the source, emilio.

eigenclass.org has a good ‘self-study’ guide:

http://eigenclass.org/hiki/ruby+internals+guide

have fun

edward

On Wed, 11 Apr 2007 23:25:12 +0900
[email protected][email protected] wrote:

On Apr 11, 6:42 am, “Emilio T.” [email protected] wrote:

I want to read about RVM, how does ruby handle threads, the interface
with the OS, and some other stuff, any low level book/paper
recommended?

Thanks

You could search for the hacking guide, there is an english
translation in the works.

Is this project still alive?
The last update was dated on 2006-04-05,
and I cannot access the subverion repository as an anonymous user.

Aki,

Phillip G. wrote:

Emilio T. wrote:

I want to read about RVM, how does ruby handle threads, the interface
with the OS, and some other stuff, any low level book/paper
recommended?
There are Ruby VMs in development, IIRC, but I don’t know the names off
the top of my head.

Production-ready and in active development:

Matz’ Ruby Interpreter (MRI) / CRuby: http://Ruby-Lang.Org/
JRuby: http://JRuby.Org/
Ruby.NET: http://WWW.PLAS.FIT.QUT.Edu.Au/rubynet/

In active development, but not necessarily production-ready:

Yet Another Ruby VM (YARV): http://WWW.AtDot.Net/yarv/
XRuby: http://XRuby.Com/default.aspx
Cardinal: http://Cardinal2.RubyForge.Org/
Rubinius: http://Rubini.us/

Status unknown:

IronRuby: http://WWW.WilcoB.Com/Wilco/IronRuby.aspx
Smalltalk.rb: http://Groups.Google.De/group/smalltalk-ruby
MetaRuby: http://ZenSpider.Com/Languages/Ruby/MetaRuby.html,
http://RubyForge.Org/projects/metaruby/

Apparently dead:

Alumina http://RubyForge.Org/projects/alumina/
Carbone http://WWW.NonGNU.Org/carbone/
IoRuby / YARI: http://Google.Com/search?q=IoRuby
RubyVM https://SourceForge.Net/projects/rubyvm
RubySharp http://WWW.XHovemont.Be/archive/2005/11/07/1064.aspx
Rubydium http://Web.Mac.Com/lypanov/iWeb/Web/Rubydium.html,
http://RubyForge.Org/projects/rubydium/
.NETRuby
http://WWW.GeoCities.Co.Jp/SiliconValley-PaloAlto/9251/ruby/nrb.html

Vaporware:

Rite: http://RubyGarden.Org/ruby?Rite

Did I forget one?

jwm

On 4/15/07, Charles Oliver N. [email protected] wrote:

Far be it for me to disagree, but I have a few differing opinions…

Yet Another Ruby VM (YARV): http://WWW.AtDot.Net/yarv/

YARV is probably more production ready than anything but MRI (and maybe
JRuby), but there’s of course a lot more work planned before official
release as Ruby 1.9.1 and 2.0

And YARV has been part of the official 1.9 branch of ruby for some
months now.


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

Far be it for me to disagree, but I have a few differing opinions…

Production-ready and in active development:

Matz’ Ruby Interpreter (MRI) / CRuby: http://Ruby-Lang.Org/

I personally wouldn’t consider MRI (i.e. 1.8 series) as being under
“active development”. It’s basically feature-frozen (for some definition
of “feature freeze” and development efforts are focusing almost
exclusively on the 1.9/2.0 line.

JRuby: http://JRuby.Org/

Production ready for some things, at least :slight_smile:

Ruby.NET: http://WWW.PLAS.FIT.QUT.Edu.Au/rubynet/

I think even the Ruby.NET guys would say it’s a bit of a stretch to call
it production-ready.

In active development, but not necessarily production-ready:

Yet Another Ruby VM (YARV): http://WWW.AtDot.Net/yarv/

YARV is probably more production ready than anything but MRI (and maybe
JRuby), but there’s of course a lot more work planned before official
release as Ruby 1.9.1 and 2.0

XRuby: http://XRuby.Com/default.aspx

No disagreement. Somewhat less “active” than JRuby, Ruby.NET, or
Rubinius, but making excellent progress all the same.

Cardinal: http://Cardinal2.RubyForge.Org/

As far as I know Cardinal is not under active development right now.
Maybe when Kevin T. finishes up the Parrot dev tasks he’s working on
now?

Rubinius: http://Rubini.us/

Other than JRuby, there’s probably more folks actively working on or
contributing to Rubinius than any other impl on this list. “Very” active
development?

Status unknown:

IronRuby: http://WWW.WilcoB.Com/Wilco/IronRuby.aspx

Dead, as far as I’ve heard. Wilco doesn’t have time to work on it
anymore.

Smalltalk.rb: http://Groups.Google.De/group/smalltalk-ruby

Died in the crib…I’m not sure any work was ever really done.

MetaRuby: http://ZenSpider.Com/Languages/Ruby/MetaRuby.html,
http://RubyForge.Org/projects/metaruby/

Could see new life through Rubinius and JRuby reusing what’s been done,
but I don’t think there’s been any progress in a looong time. I’m
seriously looking at using some of MetaRuby in JRuby very soon though.

There’s also a potential implementation coming directly out of
Microsoft, though we won’t know for sure until they make an announcement
of some kind.

  • Charlie