Ruby Next: make old Ruby quack like a new one
summary
Claim: Ruby Next backports Ruby 2.6/2.7 features so older Rubies behave like newer ones by combining refinements for APIs and a transpiler for syntax. It uses Parser and Unparser, hijacks require at runtime or transpiles at build for gems, and ships transpiled files plus a small runtime shim. Tests come from Ruby Spec and Ruby's own tests. Pattern matching transpiles to if/else and can be as fast or faster; startless ranges and one-line pattern matching remain unsupported.
AI-written summary · about
chapters (8)
- 0:00The challenges of Ruby
- 3:08Understanding refinements
- 8:06Introduction to Ruby next
- 14:24Source code transpilation
- 20:11Transpiler design and logic
- 25:07Runtime and build strategies
- 31:00Testing and future outlook
- 34:30The case for experimentation








