Uploaded December 2025 | Updated November 2026, 5 days ago
cppcon.org
---
Implementing Your Own C++ Atomics - Ben Saks - CppCon 2025
---
Atomic objects are extremely useful for concurrent programming. Unfortunately, some embedded toolchains like AVR-GCC omit portions of the C++ Standard Library, including headers like <atomic> .This makes it much harder to program concurrent software on these platforms, since many tutorials and open-source libraries assume Standard Library support. For example, these talks from past CppCons present lock-free data structures and algorithms that rely strongly on lock-free instantiations of std::atomic<T>:
- Single Producer Single Consumer Lock-free FIFO From the Ground Up – Charles Frasch – CppCon 2023
- Introduction to Wait-free Algorithms in C++ Programming – Daniel Anderson – CppCon 2024
- User API & C++ Implementation of a Multi Producer, Multi Consumer, Lock Free, Atomic Queue – Erez Strauss – CppCon 2024
This session will show you how to implement your own atomic types in the absence of library support. These atomic types can greatly expand the number of tutorials and open-source libraries available for you to use. A clear understanding of how atomic types are implemented will also help you use objects of those types more effectively on platforms that do provide native support.
---
Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Implementing_Your_Own_Atomics.pdf
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Ben Saks
Ben Saks is the chief engineer of Saks & Associates, which offers training and consulting in C and C++ and their use in developing embedded systems. Ben has represented Saks & Associates on the ISO C++ Standards committee as well as two of the committee’s study groups: SG14 (low-latency) and SG20 (education). He has spoken at industry conferences, including the C++ and System Software Summit, the Embedded Systems Conference, NDC Techtown, and CppCon, where he’s also chair of the Embedded Track and a member of the program committee. Ben previously worked as a software engineer for Vorne Industries, where he used C++ and JavaScript to develop embedded systems that help improve manufacturing productivity in factories all over the world. He’s also a contributing author on multiple Vorne patents.
---
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---
Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
#cpp #cplusplus #programming #coding #softwareengineering
cppcon.org
---
Implementing Your Own C++ Atomics - Ben Saks - CppCon 2025
---
Atomic objects are extremely useful for concurrent programming. Unfortunately, some embedded toolchains like AVR-GCC omit portions of the C++ Standard Library, including headers like <atomic> .This makes it much harder to program concurrent software on these platforms, since many tutorials and open-source libraries assume Standard Library support. For example, these talks from past CppCons present lock-free data structures and algorithms that rely strongly on lock-free instantiations of std::atomic<T>:
- Single Producer Single Consumer Lock-free FIFO From the Ground Up – Charles Frasch – CppCon 2023
- Introduction to Wait-free Algorithms in C++ Programming – Daniel Anderson – CppCon 2024
- User API & C++ Implementation of a Multi Producer, Multi Consumer, Lock Free, Atomic Queue – Erez Strauss – CppCon 2024
This session will show you how to implement your own atomic types in the absence of library support. These atomic types can greatly expand the number of tutorials and open-source libraries available for you to use. A clear understanding of how atomic types are implemented will also help you use objects of those types more effectively on platforms that do provide native support.
---
Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Implementing_Your_Own_Atomics.pdf
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Ben Saks
Ben Saks is the chief engineer of Saks & Associates, which offers training and consulting in C and C++ and their use in developing embedded systems. Ben has represented Saks & Associates on the ISO C++ Standards committee as well as two of the committee’s study groups: SG14 (low-latency) and SG20 (education). He has spoken at industry conferences, including the C++ and System Software Summit, the Embedded Systems Conference, NDC Techtown, and CppCon, where he’s also chair of the Embedded Track and a member of the program committee. Ben previously worked as a software engineer for Vorne Industries, where he used C++ and JavaScript to develop embedded systems that help improve manufacturing productivity in factories all over the world. He’s also a contributing author on multiple Vorne patents.
---
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---
Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
#cpp #cplusplus #programming #coding #softwareengineering

![How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen
https://cppcon.org
How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen - CppCon 2025
JSON, or JavaScript Object Notation, has become a cornerstone for storing and exchanging data. Its appeal lies in its simplicity—human-readable text that elegantly captures structured data through attribute-value pairs and arrays: {age: 5, name: Daniel, toys: [wooden dog, little car]}. JSON is intuitive yet powerful. But ingesting and producing JSON can turn into a performance choke point. In C++, it can be a tedious, error-prone task. Programmers wrestle with unexpected content, manually mapping data to and from native structures, all while striving for speed and safety.
With languages like Java, C#, Zig, Rust, or Python, JSON serialization and deserialization typically requires far less work. In particular, Rusts serde library blends convenience with high speed. We wish for a C++ library to automatically handle JSON production and consumption, seamlessly tied to native data structures. It is not merely to simplify life for developers; it is also about crafting code that is both fast and solid, generated at compile time by a battle-tested library.
Thankfully, C++ might soon be getting reflective metaprogramming ( PR2996 ). Leveraging the experimental Bloomberg LLVM fork with reflective metaprogramming, we have built a full-fledged implementation—complete with tests, benchmarks, and documentation. Our goal is to have production-ready code the moment mainstream compilers catch up. The results speak for themselves: we are parsing JSON directly into C++ structures at gigabytes per second, outpacing even mature heavyweights like Rusts serde. Better yet, the conversion between C++ data structures and JSON is fully automated, thanks to metaprogramming. It has the potential to be a leap forward for C++ in the data-driven age. Unfortunately, there are still problems and limitations: we present them and provide some solutions.
Slides: https://simdjson.github.io/simdjson_talks/cppcon2025/cppcon_2025_slides.html
Work at Hudson River Trading (HRT): https://tinyurl.com/safxfctf
Daniel Lemire
Daniel Lemire is a computer science professor at the Université du Québec (TÉLUQ) in Canada, known for his research in software performance. Daniel Lemire ranks in the top 2% of scientists worldwide according to Stanford University/Elseviers 2024 ranking. He is part of the 1000 most followed programmers on GitHub. He is also editor of the journal Software: Practice and Experience a long-established (1971) journal where many crucial results were published (e.g., articles by Knuth and Bentley). Lemire is also known for his blog, where he shares insights on programming, software development, and academic research, often attracting a wide audience from both academia and industry. He has authored several influential papers and maintains popular open-source project. Additionally, Daniel engages with the programming community through his extensive writing on performance optimizations and practical software engineering tips.
Francisco Geiman Thiesen
Francisco Geiman Thiesen is a Brazilian software engineer in Microsoft’s AI Compilers group, right now he is focused on improving the performance of inference on Microsofts MAIA chip.
A former ICPC Latin-America finalist, he remains passionate about algorithms, data structures, and writing elegant + fast code. His open-source work includes co-authoring reflection-based serialization for the high-performance JSON library simdjson and the first C++ publicly available implementation of the Karger-Klein-Tarjan algorithm for finding minimum spanning trees in expected linear time.
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - https://www.cppcon.org
https://www.linkedin.com/company/cppcon
https://x.com/cppcon
https://www.facebook.com/CppConference
https://www.reddit.com/r/cppcon/
https://mastodon.social/@CppCon
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: https://events.digital-medium.co.uk
#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen](https://i.ytimg.com/vi/Mcgk3CxHYMs/mqdefault.jpg)








