[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

A true Ruby compiler (for Linux

Phil Rhoades

12/5/2006 1:28:00 PM

People,

I have found RubyScript2Exe but that is not a real compiler. Ruby is
such an nice OO language to develop in - why isn't there a demand to
compile a finished script? - then you get the benefits of fast
development times as well as fast run times.

Thanks,

Phil.
--
Philip Rhoades

Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
Mobile: +61:(0)411-185-652
Fax: +61:(0)2-8221-9599
E-mail: phil@pricom.com.au



6 Answers

Devin Mullins

12/5/2006 1:40:00 PM

0

Philip Rhoades wrote:
> Ruby is
> such an nice OO language to develop in - why isn't there a demand to
> compile a finished script?
I think you're confusing demand and supply. :P

Devin

Jörg W Mittag

12/5/2006 5:25:00 PM

0

Philip Rhoades wrote:
> I have found RubyScript2Exe but that is not a real compiler. Ruby is
> such an nice OO language to develop in - why isn't there a demand to
> compile a finished script? - then you get the benefits of fast
> development times as well as fast run times.

XRuby is a Ruby compiler that compiles Ruby to Java Bytecode. You can
run Java Bytecode on Linux, so, technically speaking, XRuby is a Ruby
compiler for Linux. There are also various compilers out there that
compile Java Bytecode to native objectcode (e.g. GCJ), allowing you to
produce native objectode from Ruby sourcecode with an extra step.

Ruby.NET is a Ruby compiler that compiles Ruby to CIL Bytecode. You
can run CIL Bytecode on Linux, so, technically speaking, Ruby.NET is a
Ruby compiler for Linux. I think that there are also various
compilers out there that compile CIL Bytecode to native objectcode,
allowing you to produce native objectode from Ruby sourcecode with an
extra step.

jwm

Wilson Bilkovich

12/5/2006 5:54:00 PM

0

On 12/5/06, Jörg W Mittag <Joerg.Mittag@web.de> wrote:
> Philip Rhoades wrote:
> > I have found RubyScript2Exe but that is not a real compiler. Ruby is
> > such an nice OO language to develop in - why isn't there a demand to
> > compile a finished script? - then you get the benefits of fast
> > development times as well as fast run times.
>
> XRuby is a Ruby compiler that compiles Ruby to Java Bytecode. You can
> run Java Bytecode on Linux, so, technically speaking, XRuby is a Ruby
> compiler for Linux. There are also various compilers out there that
> compile Java Bytecode to native objectcode (e.g. GCJ), allowing you to
> produce native objectode from Ruby sourcecode with an extra step.
>
> Ruby.NET is a Ruby compiler that compiles Ruby to CIL Bytecode. You
> can run CIL Bytecode on Linux, so, technically speaking, Ruby.NET is a
> Ruby compiler for Linux. I think that there are also various
> compilers out there that compile CIL Bytecode to native objectcode,
> allowing you to produce native objectode from Ruby sourcecode with an
> extra step.
>

Rubinius also has this feature (saving portable, intermediate bytecode
for later execution). Not ready for production use yet, but it's
moving very quickly. Bignums, Regexp, and continuations went in this
week. Also, the development is validated with valgrind, which makes me
happy.

Jörg W Mittag

12/5/2006 8:44:00 PM

0

Wilson Bilkovich wrote:
> On 12/5/06, Jörg W Mittag <Joerg.Mittag@web.de> wrote:
>> Philip Rhoades wrote:
>>> I have found RubyScript2Exe but that is not a real compiler. Ruby is
>>> such an nice OO language to develop in - why isn't there a demand to
>>> compile a finished script? - then you get the benefits of fast
>>> development times as well as fast run times.
>> XRuby is a Ruby compiler that compiles Ruby to Java Bytecode. You can
>> run Java Bytecode on Linux, so, technically speaking, XRuby is a Ruby
>> compiler for Linux. There are also various compilers out there that
>> compile Java Bytecode to native objectcode (e.g. GCJ), allowing you to
>> produce native objectode from Ruby sourcecode with an extra step.
>>
>> Ruby.NET is a Ruby compiler that compiles Ruby to CIL Bytecode. You
>> can run CIL Bytecode on Linux, so, technically speaking, Ruby.NET is a
>> Ruby compiler for Linux. I think that there are also various
>> compilers out there that compile CIL Bytecode to native objectcode,
>> allowing you to produce native objectode from Ruby sourcecode with an
>> extra step.
> Rubinius also has this feature (saving portable, intermediate bytecode
> for later execution). Not ready for production use yet, but it's
> moving very quickly. Bignums, Regexp, and continuations went in this
> week. Also, the development is validated with valgrind, which makes me
> happy.

Great! I didn't know that.

IIRC, IronRuby, JRuby and YARV will eventually grow a compiler, too.

jwm

pat eyler

12/5/2006 9:01:00 PM

0

On 12/5/06, Jason Roelofs <jameskilton@gmail.com> wrote:
> I wonder how much traction XRuby will ever be able to get now that JRuby is
> a Sun sponsored project. Maybe the XRuby guy should touch base with the
> JRuby team about combining the two in some way or another.

The groups are talking about things, as are many of the other active ruby
implementation projects.

>
> Though given the name XRuby, maybe the guy's overall goal is to build a
> compiler that can compile Ruby into any number of bytecodes.
>
> Either way, I like seeing this work. It means that we'll eventually be able
> to shut up those 'Ruby is too slow' naysayers.
>
> Jason
>
> On 12/5/06, Jörg W Mittag <Joerg.Mittag@web.de> wrote:
> >
> > Wilson Bilkovich wrote:
> > > On 12/5/06, Jörg W Mittag <Joerg.Mittag@web.de> wrote:
> > >> Philip Rhoades wrote:
> > >>> I have found RubyScript2Exe but that is not a real compiler. Ruby is
> > >>> such an nice OO language to develop in - why isn't there a demand to
> > >>> compile a finished script? - then you get the benefits of fast
> > >>> development times as well as fast run times.
> > >> XRuby is a Ruby compiler that compiles Ruby to Java Bytecode. You can
> > >> run Java Bytecode on Linux, so, technically speaking, XRuby is a Ruby
> > >> compiler for Linux. There are also various compilers out there that
> > >> compile Java Bytecode to native objectcode (e.g. GCJ), allowing you to
> > >> produce native objectode from Ruby sourcecode with an extra step.
> > >>
> > >> Ruby.NET is a Ruby compiler that compiles Ruby to CIL Bytecode. You
> > >> can run CIL Bytecode on Linux, so, technically speaking, Ruby.NET is a
> > >> Ruby compiler for Linux. I think that there are also various
> > >> compilers out there that compile CIL Bytecode to native objectcode,
> > >> allowing you to produce native objectode from Ruby sourcecode with an
> > >> extra step.
> > > Rubinius also has this feature (saving portable, intermediate bytecode
> > > for later execution). Not ready for production use yet, but it's
> > > moving very quickly. Bignums, Regexp, and continuations went in this
> > > week. Also, the development is validated with valgrind, which makes me
> > > happy.
> >
> > Great! I didn't know that.
> >
> > IIRC, IronRuby, JRuby and YARV will eventually grow a compiler, too.
> >
> > jwm
> >
> >
>
>


--
thanks,
-pate
-------------------------
http://on-ruby.bl...

David Vallner

12/5/2006 9:07:00 PM

0

Jason Roelofs wrote:
> Either way, I like seeing this work. It means that we'll eventually be able
> to shut up those 'Ruby is too slow' naysayers.
>

A significant part of the slowness comes from the computation model. So,
no, it probably won't, even the resulting bytecodes will have to go
through significant epicycles to preserve the runtime dynamism. It will
help, but won't bring it on par to a language with a more strict
computational model, at least not at first. (There's apparently some
deep voodoo implemented in some of the academic Smalltalk VMs and other
exploratory programming language runtimes that can be applied to narrow
the gap even more.)

David Vallner