[Ruby on Rails (RoR)] Use rvm install truffleruby of GraalVM high-performance Ruby implementation
TruffleRuby
TruffleRuby is the GraalVM high-performance implementation of the Ruby programming language.
GraalVM is a high-performance multilingual runtime. It is designed to accelerate the execution of applications written in Java and other JVM languages while also providing runtimes for JavaScript, Ruby, Python, and a number of other popular languages. GraalVM’s polyglot capabilities make it possible to mix multiple programming languages in a single application while eliminating any foreign language call costs.
Prerequisites
-
RVM: Ruby Version Manager - RVM Ruby Version Manager - Documentation - https://rvm.io/
RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
Installaction
Upgrade rvm
to the latest version.
1 | rvm get head |
Install truffleruby
.
1 | rvm install truffleruby |
Check truffleruby
version.
1 | ruby -v |
References
[1] Ruby Reference - https://www.graalvm.org/reference-manual/ruby/
[2] Using Ruby with GraalVM - https://www.graalvm.org/reference-manual/ruby/InstallingGraalVM/