[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How does Ruby VM works?

Emilio Tagua

4/11/2007 1:42:00 PM

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

10 Answers

Marcin Raczkowski

4/11/2007 1:57:00 PM

0

On Wednesday 11 April 2007 13:42, Emilio Tagua 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 :)

--
Marcin Raczkowski
---
Friends teach what you should know
Enemies Teach what you have to know

Phillip Gawlowski

4/11/2007 1:57:00 PM

0

Emilio Tagua 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 ;)

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....

Rule of Open-Source Programming #37:

Duplicate effort is inevitable. Live with it.

Evan Webb

4/11/2007 2:25:00 PM

0

On Apr 11, 6:42 am, "Emilio Tagua" <milo...@gmail.com> 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

M. Edward (Ed) Borasky

4/11/2007 2:27:00 PM

0

Marcin Raczkowski wrote:
> On Wednesday 11 April 2007 13:42, Emilio Tagua 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 :)
>
>
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-res...

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


Akimichi Tatsukawa

4/11/2007 3:40:00 PM

0

On Wed, 11 Apr 2007 23:25:12 +0900
"evanwebb@gmail.com" <evanwebb@gmail.com> wrote:

> On Apr 11, 6:42 am, "Emilio Tagua" <milo...@gmail.com> 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,
--------------------------------------------------------
Name: ???? Akimichi Tatsukawa
Web: http://akimichi.homeunix.n...

Emilio Tagua

4/11/2007 3:43:00 PM

0

On 4/11/07, evanwebb@gmail.com <evanwebb@gmail.com> wrote:
> On Apr 11, 6:42 am, "Emilio Tagua" <milo...@gmail.com> 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.

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

Edward Garson

4/13/2007 8:00:00 AM

0

use the source, emilio.

eigenclass.org has a good 'self-study' guide:

http://eigenclass.org/hiki/ruby+inter...

have fun

edward

On Apr 11, 4:42 pm, "Emilio Tagua" <milo...@gmail.com> wrote:
> On 4/11/07, evanw...@gmail.com <evanw...@gmail.com> wrote:
>
> > On Apr 11, 6:42 am, "Emilio Tagua" <milo...@gmail.com> 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.
>
> 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


Jörg W Mittag

4/14/2007 8:03:00 PM

0

Phillip Gawlowski wrote:
> Emilio Tagua 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-Lan...
JRuby: <http://JRub...
Ruby.NET: <http://WWW.PLAS.FIT.QUT.Edu.Au/ru...

In active development, but not necessarily production-ready:

Yet Another Ruby VM (YARV): <http://WWW.AtDot.Net...
XRuby: <http://XRuby.Com/defaul...
Cardinal: <http://Cardinal2.RubyForg...
Rubinius: <http://Rubi...

Status unknown:

IronRuby: <http://WWW.WilcoB.Com/Wilco/IronRub...
Smalltalk.rb: <http://Groups.Google.De/group/smalltal...
MetaRuby: <http://ZenSpider.Com/Languages/Ruby/MetaRub...,
<http://RubyForge.Org/projects/met...

Apparently dead:

Alumina <http://RubyForge.Org/projects/al...
Carbone <http://WWW.NonGNU.Org/ca...
IoRuby / YARI: <http://Google.Com/search?q=...
RubyVM <https://SourceForge.Net/projects/...
RubySharp <http://WWW.XHovemont.Be/archive/2005/11/07/106...
Rubydium <http://Web.Mac.Com/lypanov/iWeb/Web/Rubydiu...,
<http://RubyForge.Org/projects/rub...
..NETRuby
<http://WWW.GeoCities.Co.Jp/SiliconValley-PaloAlto/9251/ruby/nr...

Vaporware:

Rite: <http://RubyGarden.Org/rub...

Did I forget one?

jwm

Charles Oliver Nutter

4/15/2007 7:23:00 AM

0

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-Lan...

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://JRub...

Production ready for some things, at least :)

> Ruby.NET: <http://WWW.PLAS.FIT.QUT.Edu.Au/ru...

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 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/defaul...

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

> Cardinal: <http://Cardinal2.RubyForg...

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

> Rubinius: <http://Rubi...

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/IronRub...

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

> Smalltalk.rb: <http://Groups.Google.De/group/smalltal...

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

> MetaRuby: <http://ZenSpider.Com/Languages/Ruby/MetaRub...,
> <http://RubyForge.Org/projects/met...

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

Rick DeNatale

4/16/2007 5:40:00 PM

0

On 4/15/07, Charles Oliver Nutter <charles.nutter@sun.com> 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 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.denh...