# Our Experience Porting the YJIT Ruby Compiler to Rust

DevFeed: [Our Experience Porting the YJIT Ruby Compiler to Rust](<https://devfeed.tech/articles/our-experience-porting-the-yjit-ruby-compiler-to-rust-1519.md>)

Original publisher: [Read original article](<https://shopify.engineering/porting-yjit-ruby-compiler-to-rust>)

Author: Maxime Chevalier-Boisvert

Published: 2022-05-11T14:00:01Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Code generation](<https://devfeed.tech/topics/code-generation.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [jit](<https://devfeed.tech/tags/jit.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [rust](<https://devfeed.tech/tags/rust.md>), [safety](<https://devfeed.tech/tags/safety.md>)

## AI overview

Shopify's YJIT team describes why it ported the CRuby JIT compiler from C to Rust, focusing on C's complexity-management limitations and Rust's type-safety benefits.

## Source excerpt

In this post, I want to give a nuanced perspective on our experience porting YJIT from C to Rust. I'll talk about the positives, but also discuss the things that we found challenging or suboptimal in our experience.