~/talk

Crash course in transpiling Ruby

slides:none on file

A practical walkthrough of a working transpiler called ruby-next that parses Ruby with parser/unparser, applies per-feature AST rewriters (pattern-matching rewriter is ~1000-line rewriter), and emits compatible Ruby or rewrites source in-place to preserve line mappings. Runtime use patches require to transpile on load, and real-world transpiled pattern-matching code can be roughly 1.5× faster than the original; gems can ship pre-transpiled code and apps can transpile at boot.

AI-written summary · about

  1. 0:00Introduction to transpiling Ruby
  2. 3:35What is a transpiler
  3. 8:07Transpiling pipeline explained
  4. 14:57Preserving source code layout
  5. 17:25Performance of transpiled code
  6. 20:19Runtime transpiling with Ruby Next
  7. 24:14Conclusion and Q&A
~/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.