Skip to content
HHackerTube.videoSurprise me

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

CppCon 2018: Hana Dusíková “Compile Time Regular Expressions” on HackerTube: recommended by 1 Hacker News commenter across 1 month, 2020–2025.

CppCon

talk · advanced · evergreen

Open on YouTube

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 Hacker News recommends it

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

people recommended it
1
separate months
1
strong recommendations
0
discussed on HN
2020–2025
“A 54:47 presentation at CppCon 2018 is worth more than a thousand words”
— canucker2016, Nov 2025, in “The Impossible Optimization, and the Metaprogramming to Achieve It”

What HN commenters said

3 Hacker News comments link this video. Each one links back to its thread.

canucker2016Nov 2025Recommends

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 ▶ this video followup CppCon 2019 video at [link] As the above github repo mentions, more info at [link]

in “The Impossible Optimization, and the Metaprogramming to Achieve It” · View on HN

lcvwSep 2023Cites it

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. ▶ this video

in “Compile time regular expression in C++” · View on HN

nikki93Sep 2020Cites it

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

in “C++20 has been approved” · View on HN

Topics & tags