6/04/2007

JRuby ,Ruby 界的救世主?

今天早上看到 ericsk’s blog 的 JRuby 1.0 開始倒數,就回去看 Charles Nutter 的原文 JRuby 1.0.0RC3 Released - And This Is It!,我發現到 JRuby 很多東西真的很值得一提。


1. JRuby 1.0 這周上市

6/3 JRuby 1.0 RC3 發佈,1.0 Release 也將在這周發表,他將是 Ruby 1.8.5 compatible 的。
The only things that will change from now until a 1.0 final release later this week would be any showstopping bugs that are extremely low-impact to fix. In general, RC3 should be nearly identical to 1.0 final.
2. 效率不錯,並且會引進 JIT

JRuby 1.0 會有 JIT Compiler ,代表可以 compile ruby code,並且大多數的時候可以跑得比一般 Ruby 1.8 快。 Rails 用 JRuby 跑在 Java Application Server 上面的效果一般來說很不賴。但是因為 JRuby 1.0 之前主打的是跟 Java 的整合度,所以可以作的事情還有很多。

We've had anecdotal reports that JRuby on Rails in a Java application server performance extremely well, and other reports that general Ruby applications perform somewhat poorly. The general performance situation is not well-understood, but we all agree there's a lot more work to be done.

3. 跟 Java 整合不錯,但是可以再加強

大部份的時間 call lib 跟 繼承 class 都沒太多問題,不過有些 case 還是沒搞定。這個問題將會在 JRuby 1.1 的時候,以重新 Design Lib 的方式來解決。

基本上其他的東西就不提了,光是 JRuby 1.0 可以跑 Rails 跟可以 JIT Compile 就值得大書特書了。如果實做的沒有太大的問題的話,說不定是下一個 Ruby 跟 Rails 的高峰。

1 則留言:

匿名 提到...

如果從業界的使用來考量,JRuby真的非常關鍵,沒有它,Ruby真的只能在新成立或小公司存活,並不是說它不好(我應該也算是瘋狂支持者,別攻擊我XD),畢竟Java還是佔了大半邊天阿,關注JRuby能夠整合到什麼程度還蠻重要的.

所以,JRuby萬歲,瘋狂一下.