Artichoke is a Ruby implementation written in Rust and Ruby. Artichoke intends to be MRI-compatible and targets Ruby 2.6.3. Artichoke provides a Ruby runtime implemented in Rust and Ruby.
You can launch an interactive
irb-style shell locally. The following command launches the Artichoke
irb shell using
cargo is the Rust equivalent to Ruby
bundler that also manages building Rust code.
cargo run --bin airb
Design and Goals
Artichoke is designed to enable experimentation. The top goals of the project are:
- Support WebAssembly as a build target.
- Support embedding and executing Ruby in untrusted environments.
- Distribute Ruby applications as single-binary artifacts.
- Implement Ruby with state-of-the-art dependencies.
- Experiment with VMs to support dynamic codegen, ahead of time compilation, parallelism and eliminating the GIL, and novel memory management and garbage collection techniques.
Artichoke aspires to be a Ruby 2.6.3-compatible implementation of the Ruby programming language. There is lots to do.
If Artichoke does not run Ruby source code in the same way that MRI does, it is a bug and we would appreciate if you filed an issue so we can fix it.
If you would like to contribute code
If you'd like to engage in a discussion outside of GitHub, you can join Artichoke's public Discord server.
artichoke is licensed with the MIT License (c) Ryan Lopopolo.
Some portions of Artichoke are derived from third party sources. The READMEs in each crate discuss which third party licenses are applicable to the sources and derived works in Artichoke.