yarv-dev-en:136
From: "Stephan Wehner" <stephanwehner gmail.com>
Date: Wed, 12 Jul 2006 09:32:07 -0700
Subject: [yarv-dev-en:136] ruby-yarv usage
Hi there, 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? 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. Stephan PS It seems I'm subscribed to this list, but I didn't get a confirmation email. PPS This is the script; just adding and subtracting and modulo. max = 5000 z = 0 1.upto(max) do |x| 1.upto(max) do |y| z = (x+y-z) % 32000 end end puts 'Got z = ' + z.to_s -- 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.]