Parsing with Prism in Sorbet
Emily Samp • online • Talk

Date: October 29, 2024
Published: December 12, 2024
Announced: unknown

Sorbet is a gradual type checker for Ruby, and like many Ruby developer tools, it has its own parser. This means that every time a change is made to the Ruby language, teams at Stripe and Shopify need to implement those changes in Sorbet’s parser. This process is labor-intensive, slow, and prone to errors. There must be a better way!

Enter, Prism. Prism is a new Ruby parser developed by Shopify. It is written in C and designed to be embedded in other Ruby tooling. In this talk, I’ll describe how I replaced the existing Sorbet parser with Prism, eliminating the toil of maintaining the Sorbet parser and taking one step toward uniting Ruby’s parsing ecosystem.

https://www.wnb-rb.dev/meetups/2024/10/29

WNB.rb Meetup October 2024

Explore all talks recorded at WNB.rb Meetup
+23