Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew Drakeford @CppCon
Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew Drakeford  @CppCon
Uploaded November 2026 | Updated November 2026, 13 hours ago
https://cppcon.org​
---

Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew Drakeford
---

Floating point has a reputation for betrayal. Change the thread count, vector width, compiler flags, reduction tree, or target architecture, and the low bits can move. Parallel algorithms make this worse: the standard often specifies the operation, but not the numerical expression whose result must be reproduced. This talk asks a provocative question: what if reproducible numerics did not have to be slow?

We will show reproducible, deterministic implementations of reduce and scan that exhibit better error behavior on hostile floating-point workloads and can match or beat conventional standard-library implementations on realistic workloads. The trick is not to freeze the execution schedule. It is to specify the expression being computed, then let the implementation use SIMD, threading, blocking, tiling, and platform-specific strategies to compute that expression efficiently.

The key idea, developed through C++ standardization work such as P4016R0 and P4229R0, is reproducibility by reproducing the computation. Instead of asking the implementation to promise a particular schedule, we give the calculation a named expression. Once that expression is chosen, changing the thread count, vector width, chunking, or blocking strategy does not silently change the answer.

A reproducible scan makes this harder than reduce because it does not expose only one final value. It exposes every prefix. A reproducible final sum is not enough if the intermediate results still drift. We will show how expression and observation contracts make those prefixes reproducible without forcing the computation back into a slow sequential order.

Then we go below the algorithm layer, to the places where bits usually escape: FMA contraction, denormals, floating-point environment choices, math-library approximations, and vectorized transcendental functions. The goal is not to get the same answer by turning off the hardware. We will show reproducible vectorized primitives, including transcendental functions, running at speeds comparable to established vector math libraries while preserving a cross-platform numerical contract.

Finally, we put the whole stack under stress: a heterogeneous numerical pipeline across x86-64, Apple Silicon, and CUDA. The data is deliberately hostile, with high cancellation rates and fragile intermediate states. The aim is not to pass friendly benchmark cases, but to reproduce the specified computation, including the same intermediate failures, not just the same final answer, bit for bit, across CPUs, GPUs, and toolchains.


---

Slides: github.com/CppCon/CppCon2026/blob/main/Presentations

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Andrew Drakeford

Andrew Drakeford has a PhD in Physics and began developing C++ applications in the early 1990s at British Telecom Laboratories. For the past two decades, he has worked in finance, building high-performance calculation libraries and trading systems in C++.His current focus is making numerical computation both bitwise reproducible and fast across heterogeneous platforms - "slaying the ghosts in the machine". He is a member of the BSI C++ Panel. His interests include software architecture, SIMD, CUDA, HPC, low-latency computing, quantitative finance, machine learning, reinforcement learning, and systematic market-making strategies.
---


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 #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew DrakefordFix C++ Stack Corruptions with the Shadow Stack Library - Bartosz Moczulski - CppCon 2025Lightning Talk: What Does a CMake Developer Want From CMake? - Ben Boeckel - CppCon 2024C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppConEnd-to-End Latency Metrics From Distributed Trace - Kusha Maharshi - CppCon 2025Lightning Talk: Optimizing Memcpy Reads From DMA Memory - Arjun Mariyala - CppCon 2025Lightning Talk: Cant we Just Synthesize std::tuple_element From Get? - Jonathan MüllerLightning Talk: Every Use Case of Colon and Ellipses in C++ - Ali Almutawa Jr. - CppCon 2024Lightning Talk: The Main Points in C++ - Dots in C++ - Miodrag Misha Djukic - CppCon 2024Mastering C++ Move Semantics and rvalue ReferencesCatching Bugs Early: Validating C++ Contracts with Static Analysis - Peter Martin & Mike FairhurstLightning Talk: The Lifecycle of This CMake Lightning Talk - Yannic Staudt - CppCon 2025
CppCon |

Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew Drakeford

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER