ruby

Hacking on Ruby Prism with Kevin Newton

Hacking on Ruby Prism with Kevin Newton

A live coding introduction to Ruby Prism

Hacking on Ruby Prism with Kevin Newton

Kevin Newton is a Ruby committer and a Staff Production Engineer at Shopify. He’s been working on Prism (previously known as YARP), which is a complete rewrite of the Ruby parser.

Kevin joined us on this Open Source Session to work on an open issue for parsing Integers in C.

Parsing Integer Nodes values on Ruby Prism

We’ve spent more than one hour working on this issue parsing Integers in C and dealing with overflows. How fun!

We didn’t finish it during the session and Kevin has shared a gist from the work in progress, with some tests in Ruby:

Gist - kddnewton/bignums.rb

At the end of the session, he showed us what Prism needs help with. Next year, he’s going to create lots of new issues that you can contribute to.

Check out the video for a sneak preview 👀

Resources

Here are some resources for you to learn more about parsers and Prism:

Enjoy!