~/talk

Template Meta-State Machines, Madness and Shannon

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [c-and-cpp]

A C++ library implements an extreme template meta-state machine using computed goto, an unordered_tuple of transition wrappers and a generated perfect hash generator; it translates FIX to a binary exchange format in a simulator, parallel-brute forces xor-modulo hash seeds, and compares against an if-else chain on Ryzen 9 3900. The claim is a measurable latency win in some cases (targeting under about 20 clock cycles for mispredicted branches) over millions of samples (~10 million orders) but at huge compile-time, complexity and occasional hash-generation failures due to limited entropy.

AI-written summary · about

  1. 0:00Template meta-programming madness
  2. 1:11Computed goto state machines
  3. 5:26Branch prediction limits
  4. 9:03Premature optimization
  5. 12:54State transition table design
  6. 20:34Type safety vs virtual functions
  7. 27:41Optimizing computed goto
  8. 33:28Hashing requirements
  9. 37:19XOR modulo hash
  10. 41:56MIT bit translator fix
  11. 46:15Test setup
  12. 50:12Results analysis
  13. 53:46GCC vs Clang performance
  14. 1:03:05Micro optimizations
~/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.