Polymorphism, Cohesion, and Coupling in C++
summary
Claims that a 1984 streams design can keep low coupling and high cohesion while avoiding runtime dispatch overhead by moving checks to compilation, implemented with modern C++17 template metaprogramming and simple zlib inflate. Demonstrates link-time polymorphism (replace syscalls with libraries), a working NASDAQ TotalView ITCH parser handling soupbin TCP, compressed soupbin TCP and mold UDP, and a compile-time matching framework that achieves compile-time dispatch and preserves throughput (historical example gained ~3x with multiqueue NICs).
AI-written summary · about
chapters (10)
- 0:00Polymorphism, cohesion, coupling
- 7:20Five streams and link-time polymorphism
- 16:57Distributed system implementation
- 27:56Design goals and performance
- 30:01Modern C++ compile-time polymorphism
- 37:45Initial library design challenges
- 42:48NASDAQ ITCH protocol parsing
- 55:36Design principles for composable systems
- 1:03:33Error handling and framework internals
- 1:09:16Mold UDP protocol parsing








