TruffleRuby

Ruby编程语言的高性能实现。基于Oracle实验室的GraalVM构建。「A high performance implementation of the Ruby programming language. Built on the GraalVM by Oracle Labs.」

Github星跟踪图

TruffleRuby logo

TruffleRuby is the GraalVM high-performance implementation
of the Ruby programming language built by
Oracle Labs.

Getting started

There are three ways to install TruffleRuby releases and nightly builds:

  • Via GraalVM, which includes support for
    other languages such as JavaScript, R and Python and supports both the
    native and JVM configurations.
    Inside GraalVM will then be a bin/ruby command that runs TruffleRuby.
    We recommend that you use a Ruby manager
    to use TruffleRuby inside GraalVM.

  • Via your Ruby manager/installer (RVM, rbenv,
    chruby, ruby-build, ruby-install). This contains only TruffleRuby, in the
    native configuration, making it a smaller
    download. It is meant for users just wanting a Ruby implementation and already
    using a Ruby manager.

  • Using the standalone distribution
    as a simple binary tarball. This distribution is also useful for
    testing TruffleRuby in CI.
    On TravisCI, you can simply use:

    language: ruby
    rvm:
      - truffleruby
    

    And on GitHub Actions:

    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: truffleruby
    

You can use gem and bundle to install Gems as normal.

Please report any issue you might find on GitHub.

Aim

TruffleRuby aims to:

  • Run idiomatic Ruby code faster
  • Run Ruby code in parallel
  • Boot Ruby applications in less time
  • Execute C extensions in a managed environment
  • Add fast and low-overhead interoperability with languages like Java, JavaScript, Python and R
  • Provide new tooling such as debuggers and monitoring that work across languages
  • All while maintaining very high compatibility with the standard implementation of Ruby

TruffleRuby Configurations

There are two main configurations of TruffleRuby: Native and JVM which make different trade-offs.

主要指标

概览
名称与所有者oracle/truffleruby
主编程语言Ruby
编程语言Ruby (语言数: 14)
平台Linux, Mac
许可证Other
所有者活动
创建于2016-02-05 18:03:11
推送于2025-04-21 12:02:17
最后一次提交2025-04-21 10:32:50
发布数207
最新版本名称vm-ee-24.2.1 (发布于 )
第一版名称hudson-whatever (发布于 )
用户参与
星数3.1k
关注者数75
派生数191
提交数68.3k
已启用问题?
问题数1315
打开的问题数169
拉请求数2143
打开的拉请求数10
关闭的拉请求数290
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?