Ruby GraalVM 1.0.0-rc1 released!

nouse · April 18, 2018 · Last by lilijreey replied at October 17, 2018 · 2718 hits

传说中最快的 Truffle Ruby 的底层 VM,GraalVM 终于进入了 1.0 的第一个 RC 版本,可以开始玩 Truffle Ruby 了。 链接:https://www.graalvm.org/

试用了一下,C extension 还是有些问题,比如 pg。

TruffleRuby runs Rails, and passes the majority of the Rails test suite. But it is missing support for Nokogiri and ActiveRecord database drivers which makes it not practical to run real Rails applications at the moment.

估计还要等等

比 JRuby 好在哪?

Reply to numbcoder

可以编译成 static binary

@numbcoder 比 JRuby 9000 快很多啊

As one can see, truffleruby is leading the pack by quite a margin, followed by JRuby (but still over 2 times faster than it). Truffleruby is also an impressive 7 times faster than CRuby 2.4.0.

https://pragtob.wordpress.com/2017/01/24/benchmarking-a-go-ai-in-ruby-cruby-vs-rubinius-vs-jruby-vs-truffle-a-year-later/

而且计划支持 C 扩展

Oracle 😏

很期待这个啊,这是啥原理有没有大神分析一下?

7 Floor has deleted

今天看了一下午这个东西了,挺吸引人的

Reply to ksec

https://github.com/oracle/truffleruby#current-status 官方的 README 啊

最新的 PR comment 也有提到过,https://github.com/oracle/truffleruby/pull/1269/files

I think Nokogiri is not fully integrated yet, and database drivers is work-in-progress, so I would keep it and just drop the OpenSSL part.

我测的性能比 RMI2.4 慢很多

You need to Sign in before reply, if you don't have an account, please Sign up first.