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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?