~/talk

Stately State Machines with Ragel

Talkat RubyConf 2015 · 2015-11-15..11-17· [ruby]
github:ijcd
slides:none on file

Claim: Ragel compiles readable state-machine DSL into highly optimized code and is already used for HTTP and protocol parsing (Mongrel, Puma, Whitequark). Tools shown: ragel-r to emit Ruby, graphviz output for visualizing states, a Volt playground that builds and inspects machines. Concrete results: composition operators (union/intersection/difference) and guarded concatenation produce nontrivial merged machines, embedded actions enable a scanner with longest-match, and recursive constructs use a host-language stack; demos show working parsers and fast generated code.

AI-written summary · about

  1. 0:00Start
  2. 4:35FINITE AUTOMATA
  3. 6:34THE CAT'S MEOW?
  4. 7:10START STATE
  5. 18:07ENTERING TRANSITION
  6. 18:20LEAVING TRANSITION
  7. 19:10AMBIGUITY PROBLEMS
  8. 20:50SCANNER EXAMPLE
  9. 25:35INSTALLATION
~/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.