Compiling Ruby Scripts (Ruby 1.9.x)

S

Sparky Mat

I was wondering if it is possible to compile Ruby code for Ruby 1.9.x .
I understand that by compile, it just packages the interpreter/VM and
all included libraries, into one huge executable. Does RubyScript2Exe
support Ruby 1.9.x? If not, are there any alternatives that do?
 
C

Charles Oliver Nutter

Sparky said:
I was wondering if it is possible to compile Ruby code for Ruby 1.9.x .
I understand that by compile, it just packages the interpreter/VM and
all included libraries, into one huge executable. Does RubyScript2Exe
support Ruby 1.9.x? If not, are there any alternatives that do?

JRuby will have 1.9 support soon, and supports precompilation and
packaging/bundling the code in a single jar file. Is that what you're
looking for?

- Charlie
 
J

Joshua Ballanco

I was wondering if it is possible to compile Ruby code for Ruby
1.9.x .
I understand that by compile, it just packages the interpreter/VM and
all included libraries, into one huge executable. Does RubyScript2Exe
support Ruby 1.9.x? If not, are there any alternatives that do?

If you are deploying to OS X, MacRuby's HotCocoa library has a built-
in rake task that handles the packaging for you. See: http://lists.macosforge.org/pipermail/macruby-devel/2008-November/000745.html

- Josh
 
P

Paul Fraser

Charles said:
JRuby will have 1.9 support soon, and supports precompilation and
packaging/bundling the code in a single jar file. Is that what you're
looking for?

- Charlie
Hi Charlie,

Can you guess (estimate) as to "how soon" for packaging as a single jar?

Regards
Paul Fraser
 
C

Charles Oliver Nutter

Paul said:
Hi Charlie,

Can you guess (estimate) as to "how soon" for packaging as a single jar?

Rawr basically does this already:

http://rawr.rubyforge.org/

We hope to have 1.9 support all finished by Christmas time or so.
Parser/interpreter work is in progress, M17N is well under way, and I'll
do the compiler after the parser's done.

- Charlie
 
S

Sparky Mat

We hope to have 1.9 support all finished by Christmas time or so.
Parser/interpreter work is in progress, M17N is well under way, and I'll
do the compiler after the parser's done.

- Charlie

So the compiled package (rwar file) runs on JRuby?

And, are there any solutions for the official Ruby 1.9 stream?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top