Forum: Ruby Compiling Ruby Scripts (Ruby 1.9.x)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A2784809909ef88591afd19126c83993?d=identicon&s=25 Sparky Mat (sparkymat)
on 2008-11-20 07:58
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?
Ede2aa10c6462f1d825143879be59e38?d=identicon&s=25 Charles Oliver Nutter (Guest)
on 2008-11-20 08:11
(Received via mailing list)
Sparky Mat wrote:
> 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
E8a419959139f3f505b49bb95f7e7afe?d=identicon&s=25 Joshua Ballanco (jballanc)
on 2008-11-20 12:46
(Received via mailing list)
On Nov 20, 2008, at 1:55 AM, Sparky Mat wrote:

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

- Josh
63b8056f715d4bc8c1415c97613360f4?d=identicon&s=25 Paul Fraser (Guest)
on 2008-11-21 01:17
(Received via mailing list)
Charles Oliver Nutter wrote:
> - Charlie
>
Hi Charlie,

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

Regards
Paul Fraser
Ede2aa10c6462f1d825143879be59e38?d=identicon&s=25 Charles Oliver Nutter (Guest)
on 2008-11-21 02:16
(Received via mailing list)
Paul Fraser wrote:
>>
>> - Charlie
>>
> 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
A2784809909ef88591afd19126c83993?d=identicon&s=25 Sparky Mat (sparkymat)
on 2009-02-26 07:55
> 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?
This topic is locked and can not be replied to.