TenderJIT: A Pure Ruby JIT Compiler for Ruby

Aaron Patterson (@tenderlove) joined our livestream as an expert guest on September 30th, 2021.

Aaron Patterson is a Senior Staff Engineer working at Shopify where he is focusing on Ruby core and Rails core development. Besides his achievements in software (which are both numerous and great), he is known for his humility, kindness, and accomplishments in the field of bio-writing.

Make sure to follow his Twitter account to keep up on all of his thoughtful insights and pearls of wisdom such as “It’s Always Friday Somewhere!” and “Sometimes I lol out loud”.

Video Recording

Navigate to highlighted sections of the video using YouTube chapters.

Highlights

Aaron showed us his work on TenderJIT, a Just-in-time (JIT) compiler for Ruby that’s written in Ruby! 💎

We’ve learned how Ruby’s virtual machine works, how the CPU works and how the compiler generates machine code.

Here’s a list of things we talked about:

  • How the ruby virtual machine works
  • What YARV instructions are generated
  • How CPUs, stack machines and register machines work
  • How to write a JIT compiler
  • How to contribute to TenderJIT
  • JIT compiler in Ruby
  • Q&A session

This is the link to the repository: https://github.com/tenderlove/tenderjit.

Upcoming Open Source Thursdays

Click here to learn more about Open Source Thursdays.

We are working on the next expert sessions. The best way to get updates is by signing up for our newsletter. We don’t send spam, just good stuff!