Beyond Sequential Consistency - Leveraging Atomics for Fun & Profit - Christopher Fretz C++Now 2025
https://www.cppnow.org --- Beyond Sequential Consistency - Leveraging Atomics for Fun and Profit - Christopher Fretz - C++Now 2025 --- In 2011, C++ introduced a formally defined memory model, providing a foundation for portable, multi-threaded code with well-defined correctness guarantees. This was a major milestone, enabling expressive threading primitives and safe concurrency patterns while allowing low-level optimizations for performance. By default, C++ atomics enforce sequential consistency, which ensures intuitive, predictable behavior. However, these strong guarantees often exceed what’s necessary for correctness and come with a performance cost. This talk delves into weaker memory orderings, particularly acquire/release and relaxed semantics, using a ring buffer as a practical example of how they can be used. We’ll also examine how the C++ memory model maps to real hardware, focusing on x86’s native guarantees, and comparing against less coherent platforms like ARM. We'll explore how strategic use of weaker synchronization can unlock significant performance gains without sacrificing correctness. --- Slides: https://github.com/boostcon/cppnow_pr... Join think-cell as a C++ Developer and work on cutting-edge challenges with a focus on code excellence, innovation, and working alongside an international team of experts — apply now to be part of a team shaping the future of business presentations. https://www.think-cell.com/en/career --- Christopher Fretz Chris is a senior C++ engineer working at Bloomberg LP on a developer experience team for a large organization within the company's market data pipeline. Chris has 8 years of experience working professionally with C++ and has worked on a wide breadth of projects, from low-latency stream processing, to lock free data structure design, to DevX and build system orchestration. --- C++Now 2026 - 27th April - 1st 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 - https://www.cppnow.org / cppnow / cppnow / cppnow / cppnow https://mastodon.social/@cppnow Video Sponsors: think-cell and Bloomberg --- Videos Filmed & Edited By Bash Films: https://bashfilms.com/ YouTube Channel Managed & Optimized By Digital Medium Ltd: https://events.digital-medium.co.uk --- #performance #atomic #boost #cpp #cplusplus #programming #coding #softwareengineering #softwaredeveloper #code #cplusplusprogramming #cplusplustutorial #cplus #softwaredevelopment

Keynote: Reflection Is Only Half the Story - Barry Revzin - C++Now 2026

Undefined Behavior From the Compiler’s Perspective - Shachar Shemesh - C++Now 2025

Beyond Sequential Consistency - Leveraging Atomics for Fun & Profit - Christopher Fretz - C++ on Sea

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Wait-Free Programming From Scratch

How to Avoid Headaches with Simple CMake - Bret Brown - C++Now 2025

The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter

Back to Basics: Custom Allocators Explained - From Basics to Advanced - Kevin Carpenter - CppCon

Programming in Assembly without an Operating System

How DOOM Will Teach You What CS Degrees Miss

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat

Arvid Norberg: The C++ memory model: an intuition

Building the PERFECT Linux PC with Linus Torvalds

Attacking AI - Jason Haddix - NDC Security 2026

CppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced. What do they really do?”

The World's Most Important Machine

Post-Modern Cmake - From 3.0 to 4.0 - Vito Gamberini - C++Now 2025

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

