~/talk

Pre-evaluation in Ruby

Talkat RailsConf 2019 · 2019-05-01..05-03· [ruby]
github:kddeisz
slides:none on file

Describes a gem called Preval that parses source with Ripper AST transforms, visits and rewrites nodes (constant-folding, integer arithmetic, attr_reader/attr_writer expansion, loop simplifications), and writes the rewritten code back into Ruby via a Bootsnap compile-time hook. Changes are opt-in per visitor, happen at compile/startup so there is zero runtime overhead, and a production trial briefly deploys it (no measurable perf win there) but the tool works as a style and compile-time optimizer.

AI-written summary · about

  1. 0:00Start
  2. 0:56Warning
  3. 1:33Compilers
  4. 2:10Lexical Analysis
  5. 3:21Semantic Analysis
  6. 6:09Instruction Generation
  7. 8:37Optimization
  8. 16:38Demo
  9. 28:20Test code
~/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.