目次

jruby

Java VM 上に実装された ruby 処理系。

JRuby on Rails

JRuby を使って Rails 2.3.8 が Google App Engine で動くらしい http://blog.yuyat.jp/archives/411

Ubuntu で jruby を試す

Ubuntu 8.04 で試してみた。

$ sudo apt-get install jruby1.0
$ jruby1.0 -e '1.upto(10) { |i| puts "hello #{i}" }'
hello 1
hello 2
hello 3
hello 4
hello 5
hello 6
hello 7
hello 8
hello 9
hello 10

man jruby1.0 は表示される。

http://dist.codehaus.org/jruby/ から 1.3.1 を落とす。

$ java -jar jruby-complete-1.3.1.jar -e '1.upto(5) { |i| puts "hello #{i}" }'
hello 1
hello 2
hello 3
hello 4
hello 5