Ruby YJIT Ported to Rust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ruby

    The Ruby Programming Language

  • Opal

    Ruby ♥︎ JavaScript

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • ruby

    The Ruby Programming Language [mirror] (by Shopify)

  • The Cargo.toml file gives the answer: https://github.com/Shopify/ruby/blob/rust-yjit-upstreaming/y...

    There is only a single, optional dependency which is apparently only used for testing.

  • truffleruby

    A high performance implementation of the Ruby programming language, built on GraalVM.

  • Here's a benchmark [1] done in Jan'22 against many ruby implementations, truffleRuby [2] seems to be way ahead in most, and at least ahead in all. Why truffleRuby isn't talk about much here?

    [1] https://eregon.me/blog/2022/01/06/benchmarking-cruby-mjit-yj...

    [2] https://github.com/oracle/truffleruby

  • yjit-metrics

    "Tasks for benchmarking, building and collecting stats for YJIT"

  • I didn't know this was public, sweet! Nice that the tooling that generates this report is also published: https://github.com/Shopify/yjit-metrics

  • artichoke

    💎 Artichoke is a Ruby made with Rust

  • Unfortunately:

    > To be clear, it's OK to use Rust to implement YJIT (and other optional features in the future), but mainline CRuby will not be implemented in Rust.

    - Matz, https://bugs.ruby-lang.org/issues/18481#note-14

    On the other hand, there is Artichoke Ruby: https://github.com/artichoke/artichoke

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts