Inline RBS comments for seamless type checking with Sorbet
summary
Announces a working pipeline that lets Sorbet typecheck Ruby files with RBS comments instead of sig calls, translating comments into injected sig AST nodes before desugaring so the rest of Sorbet is unchanged. Shopify scales it across a 75,000 file monolith, 1.5 million methods, and reports near parity with existing coverage and only a small perf overhead now being optimized. Provides an automated migrator via spoom srb_translate and LSP support for highlighting, plus a dev‑only runtime reinjection option.
AI-written summary · about
chapters (6)
- 0:00Motivation and context
- 2:32Sorbet and syntax challenges
- 7:02Design of RBS comments
- 12:41Implementation details
- 17:43Advanced features and usage
- 23:50Migration, tools, and drawbacks
related talks
22mStatic typing with RBS in Ruby
30mIntroducing Sorbet into your Ruby codebase
31mStatic Type Checking in Rails with Sorbet
48mGradual typing for Ruby at Scale with Sorbet
33mAdopting Sorbet at Scale
41mSorbet: A type checker for Ruby 3 you can use today!
30mSorbet at Grailed: Typing a Large Rails Codebase to Ship with...
30mCompiling Ruby to Native Code with Sorbet & LLVM
