Ruby Programming with Type Checking
summary
Steep is a gradual Ruby type checker (released 0.2.0 then 0.3.0) that enforces structural subtyping between object types with local type inference for locals and uses separate signature files for APIs. Implementation in Ruby makes it slow but usable; nine months of work adds a scaffold to generate signatures and a Rails-check flow that found many gaps (about 40% of required library types missing) and required only seven dynamic annotations to type a real app’s user model. Testing on a small Rails app surfaces metaprogramming limits and practical workarounds.
AI-written summary · about
chapters (8)
- 0:00Introduction to Steep
- 2:13Steep vs Sorbet
- 5:07Basic type checking demo
- 19:04Type checking steps
- 20:07Type checking Rails app
- 33:51Challenges with Rails
- 37:32Future of Steep
- 38:18Q&A
related talks
39mType Checking Ruby Programs with Annotations
53mAn introduction to typed Ruby programming
37mChecking Your Types: An Overview of Ruby's Type System
36mAn introduction to typed Ruby programming
37mTypes and Ruby Programming Language
39mGradual typing of Ruby at Scale
32mThe State of Ruby 3 Typing
43mType Checking Ruby
