~/talk

Parsing Text with a Virtual Machine

slides:none on file

Library compiles PEG grammars to a custom bytecode and runs them on a tiny VM (Java implementation) so parsing becomes a compiler pipeline rather than regex glue. It implements captures, macro-like grammar abstraction, and emits flat integer bytecode; a 99-line Clojure JSON grammar parses within about five times the speed of Jackson. Inspired by LPeg, it uses choice/commit backtracking markers and compiles PEGs to custom bytecode, with more optimizations (tail calls, head-fail, delayed captures) planned.

AI-written summary · about

  1. 0:00Start
  2. 7:06parsing with combinators
  3. 7:55terminology
  4. 8:43Parsing Expression Grammar
  5. 11:38PEG primitives & semantics
  6. 13:21repetition
  7. 14:31searching for a pattern
  8. 14:59and/not "predicates"
  9. 15:57Implementation
  10. 17:18machine state
  11. 18:08instruction types
  12. 19:54human compiler
  13. 26:28bytecode optimizations
  14. 32:43architecture
  15. 37:17public interface CharMatcher
  16. 40:11pex rule macros
  17. 41:15pex future
  18. 42:58recap
~/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.