Reflection Is Good for C++ Code Health - Saksham Sharma - C++Now 2024 @CppNow
Reflection Is Good for C++ Code Health - Saksham Sharma - C++Now 2024  @CppNow
Uploaded July 2024 | Updated December 2026, 3 hours ago
cppnow.org
---

Reflection Is Good for C++ Code Health - Saksham Sharma - C++Now 2024
---

The primary reason for your code to get bored is fatigue from repetitive instructions. You write down enums, but then you also have to write their stringified version, and you also have to write a function to map the strings to the enums. You write down a class, but you have to expose every method / member in the class separately to be able to bind your class to a Python program (for example).
Reflection is (potentially / hopefully) showing up for C++26, having already been forwarded from the SG7 subgroup on reflection / compile time programming to the LEWG and EWG. This talk will discuss everything there is so far on reflection, and we will lead up to three library ideas based on reflection:

Python bindings
ABI hashing (hashing a type for efficient compatibility checking)
A better std::any variant type with duck typing :)

View this talk if you'd like to hear about cool new library possibilities that have opened up with reflection!

For background, we will look at a little bit of context and how reflection works in some other languages, and will explore how the P2996R1 paper’s proposed version of reflection looks in practice, with some real use-case inspired code.
---

Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/Reflection-is-good-for-your-code-health


---

Saksham Sharma

Saksham Sharma is a Director of Quantitative Research Technology at Tower Research Capital LLC, a high frequency trading firm based out of New York. He develops low latency and high throughput trading systems and strategies used for the firm's global quantitative trading. In addition, he also helps design and improve big data research infrastructure used for trading research using a combination of C++ and Python. Thanks to an urge to optimize his daily workflow, he also owns the build systems, tooling, and package managers for C++ within his team. In the past, he has worked in the fields of program analysis research, functional programming, and systems security. He is a reformed geek (exemplified by a switch to VSCode after almost a decade with Emacs), and now enjoys driving, guitar, badminton, and snowboarding.
---

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.
Annual CppNow Conference - cppnow.org
linkedin.com/company/cppnow
twitter.com/cppnow
facebook.com/CppNow
reddit.com/r/CppNow
https://mastodon.social/@cppnow
think-cell develops one of the world’s leading PowerPoint applications, with C++ at the core of everything we build, from layout algorithms to deep integration with Microsoft Office. Interested in working on challenging C++ problems with real-world impact? Explore our open roles: think-cell.com/en/career/tech
---

Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---

#boost #cpp #programming #softwaredevelopment #cppnow
Reflection Is Good for C++ Code Health - Saksham Sharma - C++Now 2024Making A Program Faster - Multithreading & Automatic Compiler Vectorization - Ivica BogosavljevicCppNow 2024 Session Preview with Bret Brown and @cppeventsLightning Talk: How to Leverage SIMD Intrinsics for Massive Slowdowns - Matthew Kolbe - CppNow 2023Unit Testing an Expression Template Library in C++20 - Braden Ganetsky - C++Now 2024Concept Maps using C++23 Library Tech - Indirection to APIs for a Concept - Steve Downey - C++Now 24Undefined Behavior From the Compiler’s Perspective - Shachar Shemesh - C++Now 2025Extending std::execution - Implementing Custom Algorithms with Senders & Receivers - C++Now 2025Towards Async Everything Part 2 - Scopes, Construction, and Destruction - Robert Leahy - C++Now 2026CPS in Cmake - Marching Towards Standard C++ Dependency Management - Bill Hoffman - C++Now 2025Keynote Session Preview - C++ Painkillers by Anastasia Kazakova with @cppeventsWhen Abstractions Fix Too Much - Towards Flexible Library Design - Patrick Roberts - C++Now 2026
CppNow |

Reflection Is Good for C++ Code Health - Saksham Sharma - C++Now 2024

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER