~/talk

RNode with code positions

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [compilers-and-language-design, ruby]
links:none on file
slides:none on file

Ruby 2.5 adds precise position data so AST nodes record start/end column as well as line numbers enabling exact branch coverage, finer warnings and better Proc#source_location. Implementation touches lexer (yy_lex) to capture byte offsets, parser to thread locations into nodes, a new nd_loc field on NODE and node ids propagated into iseq so exceptions can be mapped back by reparsing. Lexer uses zero based columns and tests live in ext and xfail style test harnesses. The change lands and works in preview releases.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10RNode and code positions overview
  3. 5:57Need for code positions
  4. 8:11Ruby interpreter structure
  5. 13:25AST data structure
  6. 16:55Implementing code positions
  7. 21:53Using position data
  8. 25:09Commits and contributors
  9. 26:54Test system and rules
  10. 29:28Code position applications
  11. 33:49Ruby 2.6 extensions
  12. 34:32Debugging support features
  13. 37:13Summary and acknowledgments
~/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.