YJIT: Building a New JIT Compiler for CRuby - Shopify
Oct 14, 2021

Summary
This post details the development and merging of YJIT, a new JIT compiler for CRuby, with a focus on improving performance for web and Rails workloads. It explains the project's motivation, the YJIT architecture based on Basic Block Versioning (BBV), current benchmark results showing significant speedups, and the challenges and advantages of building YJIT within CRuby. It also outlines next steps, including potential improvements to CRuby's object model, type tagging, constant caching, calling conventions, and runtime methods.