~/talk

Verbatim++: Verified, Optimized, and Semantically Rich Lexing with Derivatives

Talkat CPP 2022 · 2022-01-17..01-18· [security, compilers-and-language-design]
links:none on file
links:none on file
links:none on file
slides:none on file

Lexer based on Brzozowski derivatives moves from quadratic worst case to effectively linear time on a JSON benchmark by three verified refinements: precomputing a derivative-based transition table, memoizing maximal-prefix calls (eliminating repeated recursion), and encoding suffix keys by length in binary tries to avoid linear key reads. Implementation preserves the original correctness proofs and is verified in Coq. Benchmarks report up to a 20× speedup. Lexical rules accept user-supplied semantic actions that map labels to types and convert strings, returning None for ill-formed cases.

AI-written summary · about

  1. 0:00Start
  2. 1:11Overview
  3. 1:27Notation - Regular Expressions
  4. 3:37Shortcoming #1
  5. 4:58Challenge - Termination
  6. 7:04Shortcoming #2
  7. 12:06Performance
  8. 12:46Motivating example
~/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.