~/talk

Magical journey through regex engine internals

Talkat Open Conf 2025 · 2025-11-21..11-22· [compilers-and-language-design]
links:none on file
slides:none on file

Explains how regex engines differ: Thompson NFA (linear, used by Go/RE2) versus backtracking/Perl-style engines that allow more features but can run exponential, shown by a demo that hits >100k steps and freezes a browser for nearly a minute. Cites real incidents: Cloudflare outage (~2019, ~30 minutes) and Stack Overflow quadratic failure from an answer with ~20,000 trailing spaces. Recommends avoiding greedy .* and nested quantifiers, using atomic/possessive constructs, or switching to RE2/timeouts.

AI-written summary · about

  1. 0:00Introduction to regex magic
  2. 3:37Regex as a programming language
  3. 7:15Regular languages and automata
  4. 10:27Regex engine families
  5. 12:35Performance analysis basics
  6. 16:10Regex performance pitfalls
  7. 19:46Real-world regex disasters
  8. 24:01Solutions and safer regex
  9. 27:14Why understanding regex matters
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.