Optimizing JIT compiler built inside CRuby
We allocate our own chunk of executable memory and append/rewrite the end of it as we compile new blocks. We have our own in-memory assembler that's implemented here. It's x86 only right now, totally not portable, but over the course of the summer we're going to work on a backend that can open up the possibility of ARM64 support and some lower-level optimizations.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Install Ruby 3.2.0 with YJIT
1 project | dev.to | 9 Jan 2023
YJIT: Building a New JIT Compiler for CRuby
3 projects | /r/ruby | 15 Oct 2021
Ruby and Rails never had anything like Shopify
1 project | /r/ruby | 19 Jun 2021
YJIT: Building a New JIT Compiler Inside CRuby
1 project | news.ycombinator.com | 2 Jun 2021
Ruby 3.3.0-preview1 Released
2 projects | /r/ruby | 12 May 2023