Loading video player...
https://cpponsea.uk --- Rust Traits In C++ - Eduardo Madrid - C++ on Sea 2025 --- The traditional mechanism of runtime polymorphism, in C++, is inheritance and virtual overrides, however, this mechanism requires strong commitment, including the intrusive nature of inheritance, which might be inadequate in many situations, and actually, Rust Traits are a very useful way to approach the needs of runtime polymorphism for many scenarios. Let's learn that and see if we can benefit from it natively in C++. C++ is such an expressive language that we can incorporate a central feature of another language, Rust Traits, with just about optimal performance that may be even better than that of the normal mechanism in C++ and its native expression in Rust. In this presentation we will start with C++ and a type erasure library to show step by step how we can transform it into the functional equivalent of Rust Traits --- Slides: https://github.com/philsquared/cpponsea2025-slides/blob/main/Presentations/How_To_Get_the_Benefits_of_Rust_Traits_for_Runtime_Polymorphism_in_C++.pdf Sponsored by Bloomberg: https://www.bloomberg.com/company/values/tech-at-bloomberg/c-plus-plus/ Sponsored By think-cell: https://www.think-cell.com/cpponsea --- Eduardo Madrid Generic Programming practitioner. Worked as team leader or tech leader at automated trading firms, the maker of Snapchat, consulting. Author of the zoo libraries, including Type Erasure and SWAR. --- C++ on Sea is the international C++ conference taking place by the sea, in the UK. Our venue is in Folkestone, Kent, near the entrance to the channel tunnel with stunning views across the English Channel. Annual C++ On Sea Conference - https://www.cpponsea.uk https://www.linkedin.com/company/cpponsea/ https://x.com/cpponsea https://www.facebook.com/profile.php?id=61551121766573 https://www.reddit.com/r/CppOnSea/ https://vmst.io/@cpponsea Video Sponsors: --- YouTube Videos Filmed, Edited & Optimised by Digital Medium: https://events.digital-medium.co.uk --- #cpp #cplusplus #programming #coding #softwareengineering #softwaredeveloper #code #cplusplusprogramming #cplusplustutorial #cplus #softwaredevelopment #coder #talk