TruffleRuby is the GraalVM high-performance implementation of the Ruby programming language.
Getting Started
TruffleRuby comes in two distributions:
- Native Standalone: This only contains TruffleRuby in the Native configuration.
- JVM Standalone: This only contains TruffleRuby in the JVM configuration This includes support for other languages such as Java, JavaScript, Python and WebAssembly.
You can install either of those:
- Via your Ruby manager/installer (RVM, rbenv, chruby, asdf, ruby-build, ruby-install).
We recommend trying TruffleRuby dev builds which contain the latest fixes and improvements (replace
VERSION
bydev
).
Native Standalone:
RVM: $ rvm install truffleruby # or truffleruby-head
rbenv: $ rbenv install truffleruby-VERSION
asdf: $ asdf install ruby truffleruby-VERSION
chruby: $ ruby-install truffleruby
$ ruby-build truffleruby-VERSION ~/.rubies/truffleruby-VERSION
JVM Standalone:
rbenv: $ rbenv install truffleruby+graalvm-VERSION
asdf: $ asdf install ruby truffleruby+graalvm-VERSION
chruby: $ ruby-install truffleruby-graalvm
$ ruby-build truffleruby+graalvm-VERSION ~/.rubies/truffleruby+graalvm-VERSION
- In CI with GitHub Actions, see Testing TruffleRuby in CI…