Skip to content
Optimizing Ruby JIT Compilers with Takashi Kokubun episode artwork

EPISODE · Apr 14, 2023 · 47 MIN

Optimizing Ruby JIT Compilers with Takashi Kokubun

from Remote Ruby · host Jason Charnes, Andrew Mason

On this episode of Remote Ruby, Jason and Andrew are here, and they are thrilled to have with them, Takashi Kokubun, a Staff Developer at Shopify. He’s here to talk about JIT (just-in-time) compilers in Ruby and why we would want to use one in Ruby. We’ll hear about his work on YJIT and RJIT, the differences between YJIT and MJIT, and how the primary focus is to make YJIT the best JIT compiler for real-world Ruby apps. There’s a conversation about the use of Rust in JIT compiler development for Ruby, and Takashi shares some benefits to using Rust, as well some challenges. Also, there’s some exciting upcoming improvements in YJIT, we find out why HAML is Takashi’s preferred template language, and he tells us about Hamlit, the template engine he authored and maintains. Hit download to hear much more! [00:01:54] Since Takashi worked on the original MJIT, he tells us what a JIT compiler is and why we would want to use one in Ruby. [00:06:41] Takashi talks about working on the original MJIT (Ruby 2.6). [00:11:15] Jason wonders what kind of performance gains Takashi saw on average in Ruby 2.6 using MJIT in production. He explains that it was designed to optimize specific benchmarks such as Optcarrot but was not efficient for general purpose applications like Rails. [00:12:49] We find out why MJIT was slower on Rails which has to do with it using a sync compiler. [00:14:41] What kind of improvements were there in running Optcarrot with MJIT? [00:16:41] Takashi shares why he joined in Shopify and what he did with YJIT. [00:20:34] We hear some differences that YJIT has taken from MJIT. For example, YJIT is a JIT compiler that generates machine code directly, making it more efficient and faster than MJIT, which uses a C compiler. Also, he explains the architecture being very different between MJIT and YJIT. [00:24:52] We learn some performance benefits using YJIT. [00:26:19] Let’s listen to Takashi talk about his work on RJIT, and he touches on John Hawthorn and Aaron Patterson’s compilers, hawthjit and TenderJit. [00:31:23] Takashi talks about the primary focus to make YJIT the best JIT compiler for real world Ruby apps. [00:34:20] Takashi shares his mixed feelings with Rust, as well as the challenges. [00:39:29] There’s some exciting improvements coming up in the JIT world! [00:42:33] Andrew wonders if ERB gets any benefit to the stuff happening in YJIT. [00:43:14] HAML is Takashi’s preferred template language, and he tells us about a HAML package he authored and maintains called, Hamlit. [00:44:42] Takashi maintains many libraries, he works on YJIT at Shopify, and writes assembly code. How does he have time for all this? [00:45:46] Find out where you can follow Takashi online. Panelists: Jason Charnes Andrew Mason Guest: Takashi Kokubun Sponsor: Honeybadger Links: Jason Charnes Twitter Chris Oliver Twitter Andrew Mason Twitter Takashi Kokubun Twitter Takashi Kokubun GitHub Optcarrot yjit-bench TenderJIT hawthjit Chris Oliver X/Twitter Andrew Mason X/Twitter Jason Charnes X/Twitter

Episode metadata supplied by the publisher feed · Published Apr 14, 2023

Embed this episode

On this episode of Remote Ruby, Jason and Andrew are here, and they are thrilled to have with them, Takashi Kokubun, a Staff Developer at Shopify. He’s here to talk about JIT (just-in-time) compilers in Ruby and why we would want to use one in Ruby. We’ll hear about his work on YJIT and RJIT, the differences between YJIT and MJIT, and how the primary focus is to make YJIT the best JIT compiler for real-world Ruby apps. There’s a conversation about the use of Rust in JIT compiler...

Distinct summary based on available episode metadata or transcript content.

Ready to play

Optimizing Ruby JIT Compilers with Takashi Kokubun

0:00 47:08

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

RUBY'S ROUNDTABLE Ruby Durham AS RUBY SHARES HER RISING ENTREPRENEUR JOURNEY WITHIN MUSIC, FASHION DESIGN AND PRODUCTIONS SHE ALSO SITS AT THE TABLE WITH A DIVERSE SET OF GUESTS WHO ARE ALSO BUILDING BRANDS WITH WHAT THEY HAVE.THROUGHOUT THE CONVERSATIONS NOT ONLY WILL YOU HAVE RESOURCES AND TAKEAWAYS TO APPLY TO YOUR OWN JOURNEY, BUT A FEARLESS AURA THAT WILL FUEL THE NEXT BET YOU'RE SET TO MAKE ON YOURSELF. #ifnotyouwho #ifnotnowwhen The Ruby Furst Show Ruby Furst My name is Ruby, Certified Nutrition Specialist (CNS), Certified Somatic Practitioner and Holistic Health Coach.The Ruby Furst Show takes an empowering holistic medicine approach to discuss topics of mind, body health and overall wellness. This podcast offers you a space to reflect, grow and learn about how to create authentic sustainable change in your life.Here, I will be sharing the key nuggets of knowledge & insight I have gained along my personal and professional journey.If you are enjoying the show, please subscribe, rate and review on your experiences! The Mobile Workforce Podcast By FOUNDATION Software The Mobile Workforce Podcast is centered around conversations with experts who have been where you are and have made it to the other side. Each week, our trailblazing guests share their experiences to inspire change, challenge the status quo and share what it takes to travel the road to profitability while managing a remote workforce. If you are looking to improve your operational efficiency and champion processes that maximize profit, these conversations will lead you and your team to the cutting edge. Brought to you by Foundation Software The Wandering Worker Podcast Matt Lloyd This podcast is about businesses who have fully embraced the notion of the Remote Work Lifestyle. As the next generation is getting into the workforce, the ability to work from anywhere is a growing hot button! We interview business owners and professionals from Middle Tennessee and beyond about their experiences and even hesitations about The Remote Working Lifestyle. If you have any questions or topics to be discussed, hit us up at TheWanderingWorkerPodcast.com This show is powered by Magic Apple Technology, where we have been saving good businesses from bad phone systems since 2008 and have been enabling businesses to go remote with the utmost expertise and ease! <span style="color: rgb(34, 34, 3

Frequently Asked Questions

How long is this episode of Remote Ruby?

This episode is 47 minutes long.

When was this Remote Ruby episode published?

This episode was published on April 14, 2023.

Can I download this Remote Ruby episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!