~/talk

Functional Programming in C++ (Run time vs Compile time types)

Talkat LambdaConf 2025 · 2025-05-12..05-13· [rust]
slides:none on file

Claims that C++14 can move protocol shape into the compiler by using value‑templated enums and constexpr functions to produce compile‑time byte arrays and static_asserts so headers and payload sizes are embedded with no runtime branching; it serializes types into arrays that appear directly in assembly, shows runtime parsing via parser combinators over std::span and std::optional/monostate, boxes results into std::variant for runtime dispatch, cites a 33 vs 259 lines of assembly comparison and demonstrates working, compiling code.

AI-written summary · about

  1. 0:00Functional programming in C++
  2. 4:28Enums and limitations
  3. 8:28Compile-time polymorphism
  4. 14:12Runtime parsing with variants
  5. 20:14Performance comparison
  6. 21:42Compile vs runtime trade-offs
  7. 22:05Summary & Q&A
~/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.