~/talk

Hijacking Ruby Syntax in Ruby

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

Shows concrete hacks that add syntax like method modifiers and resource blocks by combining Binding, TracePoint, Refinements and Ripper to capture and replay local context. Implements final/abstract/override checks, a table style test DSL, a with block for multi resource allocation and a defer stack; gems (binding_ninja style, with, defer) run in development and can be disabled in production but are fragile. Demonstrates how TracePoint plus source mapping locates s expressions and that these techniques work but complicate debugging.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:37Ruby bindings and local variables
  3. 4:54TracePoint for code execution hooks
  4. 7:00Finalizer and method override prevention
  5. 13:26Advanced TracePoint usage
  6. 17:10Combining Ripper and TracePoint
  7. 19:04Binding Ninja for implicit context
  8. 23:09Ruby quiz on method removal
  9. 24:33Resource management with with
  10. 30:33Deferred execution with TracePoint
  11. 34:13Summary and warnings
~/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.