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 的高峰。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值