~/talk

IRB Reboot: Modernize Implementation and Features

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [ruby, developer-experience]
slides:none on file

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

  1. 0:00Introduction and speaker intro
  2. 3:38IRB history and past work
  3. 5:52Complexity of IRB's lexer
  4. 8:51Modernizing IRB with Ripper
  5. 10:41Prompt features in IRB
  6. 15:16Simplifying IRB codebase
  7. 16:23Documentation improvements
  8. 23:47Ruby documentation design
  9. 26:30Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.