IRB Reboot: Modernize Implementation and Features
summary
Replaces IRB’s slow pure-Ruby parser with Ripper + RubyVM::InstructionSequence.compile to get token-level “continued code” and syntax-check info, implements prompt logic from tokens so nesting and literal states work reliably, and adds RDoc-backed autocomplete that shows docs on exact-tab and supports meta-programmed namespaces. Two patches (14683, 14787) land these changes, IRB codebase shrunk from ~1,732 to 287 lines, and the new implementation runs and fixes many parsing/maintenance issues though a few Ruby 2.6 edge cases remain.
AI-written summary · about
chapters (9)
- 0:00Introduction and speaker intro
- 3:38IRB history and past work
- 5:52Complexity of IRB's lexer
- 8:51Modernizing IRB with Ripper
- 10:41Prompt features in IRB
- 15:16Simplifying IRB codebase
- 16:23Documentation improvements
- 23:47Ruby documentation design
- 26:30Q&A session








