HackerTubewatch
Surprise me
Frame from CppCon 2018: Hana Dusíková “Compile Time Regular Expressions” Plays via YouTube's privacy-enhanced embed

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

48 videos recommended on HN
YouTube
1 HN user recommended this talk1 month2020–2025 score 1
Years with an HN recommendation, 2007–2026

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

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.

“A 54:47 presentation at CppCon 2018 is worth more than a thousand words” (HN, 2025)

1 recommendations · 2 citations · Talks · advanced

3 Hacker News comments

From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.

@canucker2016 Nov 2025 Recommends
on HN thread The Impossible Optimization, and the Metaprogramming to Achieve It
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]
Presentation on compile-time regex class in C++ templates

Citations, criticism and jokes

@nikki93 Sep 2020 Cites it
on HN thread C++20 has been approved
> 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]
Example of parsing regular expressions at compile time in C++
@lcvw Sep 2023 Cites it
on HN thread Compile time regular expression in C++
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]
Contains benchmarks of the compile-time regex library

Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.

Keyboard shortcuts

/
Search
j k
Next / previous video
r
Surprise me
l
Like (video page)
w
Watch later (video page)
?
This help
Esc
Close