A practical type system for Ruby at Stripe.
summary
Stripe ships Sorbet, a gradual Ruby type system you can try at sorbet.run, written in C++ with a ported Whitequark parser and a reflection tool that generates declarations. It supports generics, And/Or types, three strictness levels and runtime checks, and already yields concrete results: about 3,000 signatures authored by engineers plus ~240k inferred signatures, and performance around 100k lines/sec per core. It finds real bugs (nil checks, misspelled constants, scope errors) and runs across the mono-repo.
AI-written summary · about
chapters (6)
- 0:00Introduction and team
- 6:51Demo of type checker
- 8:37Design principles of type system
- 19:54Deployment experience and feedback
- 31:57Conclusion and next steps
- 35:27Q&A session
related talks
41mSorbet: A type checker for Ruby 3 you can use today!
48mGradual typing for Ruby at Scale with Sorbet
39mGradual typing of Ruby at Scale
24mType Checking with Sorbet
30mCompiling Ruby to Native Code with Sorbet & LLVM
30mIntroducing Sorbet into your Ruby codebase
31mStatic Type Checking in Rails with Sorbet
33mAdopting Sorbet at Scale
