Zero-Cost Abstractions in C++ - High Performance Message Dispatch - Luke Valenty - C++Now 2024

preview_player
Показать описание
---

A Case Study in Zero-Cost Abstractions in C++ - High Performance Message Dispatch - Luke Valenty - C++Now 2024
---

We often hear about zero-cost abstractions in modern C++. What does that even mean? Why should we want that? How is it possible?

This presentation aims to answer these questions and more through a case study of a message dispatch library. The library uses compile-time programming to create an optimized algorithm for decoding messages and sending them to the appropriate component's message callback.

This is done so we can decouple components and their cross-cutting concerns. Components can register predicated message callbacks without needing to care about other components and their callbacks. The library has all the information it needs at compile-time to implement an efficient dispatching strategy. It is additionally able to provide useful logging information about messages received and messages that don't match any callback.

If you have any interest in high speed message processing, boolean algebra, constant-time lookup algorithms, compile-time programming, or bare metal firmware, please join me on this enlightening case study.
---


---

Luke Valenty

Luke started his career at Intel in 2008 as a hardware validation engineer developing tools to validate chip designs in simulation. He is currently a Principal Engineer at Intel specializing in system-on-chip power management and modern C++ for bare-metal firmware.
---

C++Now 2025 - 28th April - 2nd May
C++Now is an annual onsite international C++ programming and coding conference held in Aspen, Colarado. For all C++ developers, C++ software engineers and those involved with the C++ language, CppNow provides an indepth and technical content provided by the best and brightest C++ experts of the C++ world.
Video Sponsors: millennium and think-cell
---

---

#boost #cpp #programming #cplusplus #cppprogramming
Рекомендации по теме
Комментарии
Автор

Awesome overview. And a great example how meta-programming/compile-time is super valuable for embedded stuff. And just for any programming in a strictly typed, compiled language.

xealit
Автор

Amazing talk, very informative and interesting :D

mrboblox
Автор

I am very grateful for the wisdom you share with us.👍

IndustrialRabbit
Автор

I think it's fascinating that I already knew about pext/magic multiplication hashing from looking at chess engines. Really cool to see it from a very different (and somehow not different at all) perspective. Magic bitboards amazed me until I understood them, really cool bit wizardry sometimes. Also curse Zen 2 for having impossibly slow pext lmao

typicalsamprice
Автор

I have no idea what I'm looking at, but it's not Luke's fault.

ciCCapROSTi
Автор

with concepts template programming become orbital canon

DeathSugar
Автор

Haha, Power efficient and Intel in the same sentence

thomash.
join shbcf.ru