yarv-dev-en:138
From: "Stephan Wehner" <stephanwehner gmail.com>
Date: Wed, 12 Jul 2006 10:03:22 -0700
Subject: [yarv-dev-en:138] Re: ruby-yarv usage
Thanks for your reply!
For ruby rb/compile.rb /tmp/add.rb
I get the error
rb/compile.rb:17:in `compile_to_rb': uninitialized constant YARVCore (NameError)
from rb/compile.rb:60
from rb/compile.rb:57
I don't know whether I should track that down.
If I run ruby-yarv /tmp/add.rb is that the proper invocation? Or is
there a way to get better (faster) results with yarv?
Stephan
On 7/12/06, SASADA Koichi <ko1 atdot.net> wrote:
> Hi,
>
> Stephan Wehner wrote:
> > I just wanted to make sure I'm using ruby-yarv correctly.
> > I have a ruby script called add.rb
> > I call ruby-yarv add.rb
> >
> > Is that how to run a script in "compiled" form? It is not mentioned
> > anywhere as far as I can see. Also, I thought I saw somewhere options
> > mentioned
> > which seemed to indicate different optimization levels. I can't find
> > it anymore. Do they exist?
>
> YARV 0.4.1 includes script "rb/compile.rb".
>
> ruby rb/compile.rb [-o output script name] [script]
>
> If you eliminate output script name, "a.rb" file will be created. And
> rb/compile.rb is only experimental version.
>
> This compilation purpose is "obfuscation", not for performance.
>
>
> > At any rate, the new 0.4.1 version is twice as fast as the 0.4.0
> > version for my simple script, if I'm using it correctly. That sounds
> > good.
>
> On 0.4.1, some optimize options are enabled by default, especially
> "specialized instruction".
>
>
> > PS It seems I'm subscribed to this list, but I didn't get a confirmation
> > email.
>
> On this ML system, no confirmation will be sent.
>
>
> Regards,
> --
> // SASADA Koichi at atdot dot net
>
>
> --
> ML: yarv-dev-en quickml.atdot.net
> Info: http://www.atdot.net/~ko1/quickml
>
--
ML: yarv-dev-en quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml
136 2006-07-13 01:32 [stephanwehner gmail.] ruby-yarv usage 137 2006-07-13 01:41 ┗[ko1 atdot.net ] -> 138 2006-07-13 02:03 ┗[stephanwehner gmail.] 139 2006-07-13 02:10 ┗[ko1 atdot.net ] 141 2006-07-13 03:24 ┗[stephanwehner gmail.]