From: Alexey Verkhovsky Date: 2004-07-18T00:20:44+09:00 Subject: Re: scripting language (fwd) On Sat, 2004-07-17 at 16:57, gabriele renzi wrote: > il Sat, 17 Jul 2004 22:17:29 +0900, Alexey Verkhovsky > ha scritto:: > > > > >Jruby looked better, but lagged two versions behind the parent language, > >and therefore could not run many Ruby apps. E.g., try to build rake with > >it. > > what do you mean by 'lagged two versions' ? > The latest versione should be nearly 1.8 compliant, IIRC OK, what about below shell session (I use CVS HEAD Ruby at home, but iirc it was same with 1.8.1)? [alex@dhcp-89-2 rake]$ alias jruby alias jruby='$HOME/RUBY/jruby/bin/jruby.sh -I/usr/local/lib/ruby/site_ruby/1.9' [alex@dhcp-89-2 rake]$ jruby /usr/local/bin/rake /usr/local/bin/rake:3:in 'require': Undefined local variable or method 'clean' for main:Object (NoMethodError) from /usr/local/bin/rake:3:in 'require' from /usr/local/bin/rake:3 from :0 [alex@dhcp-89-2 rake]$ ruby /usr/local/bin/rake (in /home/alex/RUBY/eclipse/workspace/rake) mkdir -p testdata ruby -Ilib -e0 \ -rtest/testclean \ -rtest/testfilelist \ -rtest/testfileutils \ -rtest/testftp \ -rtest/testpackagetask \ -rtest/testtasks Loaded suite -e Started ................................................................... Finished in 4.012639 seconds. 67 tests, 179 assertions, 0 failures, 0 errors One other thing that I didn't like about Jruby 0.7 was startup time: [alex@dhcp-89-2 rake]$ time ruby -e 'puts "worked"' worked real 0m0.107s user 0m0.000s sys 0m0.010s [alex@dhcp-89-2 rake]$ time jruby -e 'puts "worked"' worked real 0m3.692s user 0m2.310s sys 0m0.130s Before you blame it on JVM: [alex@dhcp-89-2 java-wrapper]$ time java -cp . ArgsRepeater "worked" worked real 0m0.980s user 0m0.430s sys 0m0.020s This is on P-III 700 Mhz. Jython, if I remember correctly, was 1.4 sec or something like that. Groovy was over 6 seconds. For unit tests anything bigger than 2 sec feels awkward. Best regards, Alex