Good videos, with context.
CppCon 2018: Hana Dusíková “Compile Time Regular Expressions”

CppCon 2018: Hana Dusíková “Compile Time Regular Expressions”

CppCon
1 HN recommenders · discussed 2020–2025
Open YouTube ↗

About this video

Hana Dusikova's CppCon 2018 talk presenting a C++ library that builds regular expressions from compile-time strings, using a C++20 feature. It avoids runtime parsing cost and covers implementation details, problems she hit, and benchmarks.

Why it appears in the archive

Pointed to as the canonical presentation of compile-time regex in C++ and its template metaprogramming, including benchmark results.

AI-generated summary and labels from the source dataset; verify important details against the video. Source & credits.

From the Hacker News discussion

canucker2016 · 2025-11 · rec

FYI: This is a C++ template version of compile time regex class. A 54:47 presentation at CppCon 2018 is worth more than a thousand words... see [VIDEO] followup CppCon 2019 video at [LINK] As the above github repo mentions, more info at [LINK]

Read original comment ↗
nikki93 · 2020-09 · reference

> Passing strings into a templates ... wouldn't work in C++ ... [VIDEO] Here's an example of parsing regular expressions in C++ at compile time. Code here: [LINK]

Read original comment ↗
lcvw · 2023-09 · reference

One of the stated benefits is that the compiler optimizer can optimize the regex state machine that gets created, resulting in significantly faster match times at runtime. There are some benchmarks if you look up her cppcon talk about the library iirc. Edit: here is her talk, at 39 minutes she shares the benchmarks. [VIDEO]

Read original comment ↗