Новое видео

cpp cppcon Message Handling with Boolean Algebra - Ben Deane - CppCon 2024 Slides: --- Message reception and dispatch is something common to many codebases. And deep down we know that Boolean algebra underlies everything we do. But we seldom give it a second thought or if we do we probably dismiss it as trivial something we learned in college and quickly outgrew. This talk shows the unreasonable effectiveness of going back to basics and really understanding and unlocking the power of Boolean algebra in the design of a message handling library for embedded systems. Well talk about separating message layout and semantics how to match against messages for dispatch and particularly how to compose and simplify constraints at compile time in order to do the least at runtime. Well also introduce Boolean implication and see a non-obvious application which is key to a generic approach. Finally well see how message matchers can be generically transformed using compile-time information allowing complete flexibility of expression and maximum runtime performance. --- Ben Deane Ben was in the game industry for 23 years at companies like EA and Blizzard. For the last couple of years hes been working in the finance industry at Quantlab. Hes always looking for useful new techniques in C and he geeks out on algorithms APIs types and functional programming. ,
Присоединяйтесь к обсуждению
Новое видео