Skip to content

TruffleRuby - GraalVM Community Edition 1.0 RC3

Pre-release
Pre-release
Compare
Choose a tag to compare
@eregon eregon released this 02 Jul 13:24
· 18451 commits to master since this release

TruffleRuby is high performance implementation of the Ruby programming language, compatible with MRI 2.4.4.

TruffleRuby is progressing fast but is currently probably not ready for you to try running your full Ruby application on. However it is ready for experimentation and curious end-users to try on their gems and smaller applications.

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.

The Ruby language components can be installed in GraalVM using the gu utility.

Release Notes

  • is_a? can be called on foreign objects.
  • Qnil/Qtrue/Qfalse/Qundef can now be used as initial value for global variables in C extensions.
  • SIGPIPE is correctly caught on SubstrateVM, and the corresponding write() raises Errno::EPIPE when the read end of a pipe or socket is closed (#1375).
  • Use the magic encoding comment for determining the source encoding when using eval() (#1376).
  • Faster stat()-related calls, by returning the relevant field directly and avoiding extra allocations.
  • rb_str_new()/rb_str_new_cstr() are much faster by avoiding extra copying and allocations.
  • String#{sub,sub!} are faster in the common case of an empty replacement string.
  • Improved reading from IO with a delimiter (e.g., IO#each), improves e.g. iterating through lines in a File.
  • Use the byte[] of the given Ruby String when calling eval() directly for parsing.
  • More details in https://github.com/oracle/truffleruby/blob/master/CHANGELOG.md