Pairin' with Aaron: Hacking on the Prism Compiler

Опубликовано: 30 Июль 2026
на канале: Tenderlove's Cool Stuff
932
like

I'm going to have a guest on: Jemma Issroff! We're going to hack in the Prism compiler. I've spent lots of time on this stream going from Ruby VM bytecode to machine code, and in this stream I'd like to spend some time talking about how text is converted to bytecode. We're going to explore this by looking at (and hacking on ) the Prism compiler.

Prism is a new parser for Ruby code that will ship along with Ruby 3.3, and there has been work on a compiler that will convert Ruby code in to byte code. Let's hack on it!

The Prism parser project is here:

https://github.com/ruby/prism

The Prism compiler can be found here:

https://github.com/ruby/ruby/blob/mas...

Also if you'd like more intro to Prism, I highly recommend checking out the Hex Devs live stream on the same day!

https://www.hexdevs.com/events/live-h...

Here's a PR for the code Jemma and I worked on today: https://github.com/ruby/ruby/pull/9261