~/talk

Hijacking Ruby Syntax in Ruby

Talkat RubyConf 2018 · 2018-11-28..11-30· [ruby]

Demos show concrete hacks: using Binding to read and set local variables at runtime, using TracePoint to rewrite return values and detect class-definition end, and using Refinements to add top‑level helpers safely. Implementations include gems that enforce Java‑like modifiers (final, override, abstract), a table‑style testing DSL, a with/deferral API that mimics Go’s defer, and Ripper+TracePoint to map tokens to semantic context. Warning: TracePoint can break or persist and makes debugging painful.

AI-written summary · about

  1. 0:00Introduction and context
  2. 3:33Working with bindings
  3. 6:49Mastering TracePoint
  4. 10:15Method hooks and modifiers
  5. 14:25Advanced code analysis
  6. 19:05Metaprogramming techniques
  7. 24:41Resource management gems
  8. 29:38Conclusion and reflections
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.