~/talk

Linear Matching of JavaScript Regular Expressions

Talkat PLDI 2024 · 2024-06-24..06-28· [javascript, security]
links:none on file
slides:none on file

Presents a proof that a much larger subset of JavaScript regexes admits linear-time matching, identifies semantic bugs and superlinear cases in V8’s linear engine, and delivers concrete fixes: a two-copy NFA construction to enforce JavaScript’s star semantics, a precomputed lookaround table plus single-replay reconstruction for capture groups, and a prototype engine called regel with several patches merged into V8. Implements and benchmarks the algorithms, showing linear scaling in regex and input size.

AI-written summary · about

  1. 0:00Regex matching complexity
  2. 1:29Linear regex engines rarity
  3. 3:14JavaScript regex semantics
  4. 4:40Priority rules in regex
  5. 6:23Star semantics and loops
  6. 8:55Fixing NFA simulation
  7. 10:21Lookarounds with capture groups
  8. 12:25Precomputing lookaround positions
  9. 13:50Capture reset and linear matching
  10. 15:17Experimental validation
  11. 15:58Lessons from JavaScript regex
  12. 17:06Question and answer session
~/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.