Ruby GraalVM 1.0.0-rc1 released!

nouse · 2018年04月18日 · 最后由 lilijreey 回复于 2018年10月17日 · 2719 次阅读

传说中最快的 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 好在哪?

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 扩展

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

7 楼 已删除

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

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 慢很多

需要 登录 后方可回复, 如果你还没有账号请 注册新账号