The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
SIMD Intrinsics, AVX-512, ARM NEON, and std::simd — From Data Layout and Hardware Dispatch to Production Deployment
Your CPU has been waiting.
Every numeric loop you have ever shipped processed one value at a time on hardware that was built to process sixteen simultaneously. The gap between what your code does and what the silicon is capable of is not a compiler limitation or a language restriction. It is a knowledge gap, and it has a precise cost you can measure in cycles per element.
This book closes it.
You will learn to read hardware the way the processor reads it: in lanes, in registers, in parallel. You will understand why your data layout is the first performance decision and the last one most engineers make. You will write branchless conditional logic that executes at full vector throughput, navigate AVX-512’s predication model without triggering the frequency trap that makes wider vectors slower, and build ARM NEON kernels that exploit interleaved memory instructions x86 has no equivalent for.
By the time you reach the final chapter, you will have the complete toolkit: a portable abstraction layer that compiles to native instructions with zero overhead, a compiler collaboration discipline that turns the auto-vectorizer from an unreliable guess into a predictable collaborator, a benchmarking methodology that measures real throughput instead of measuring the speed of nothing, and a fat binary deployment architecture that ships the right implementation to every machine in your fleet without a separate binary per hardware class.
The hardware is fast. It has always been fast. This book teaches you to use it.
Minimum price
$29.00
$49.00
About the Book
Learn to eliminate scalar throughput ceilings with confidence using measured, verified SIMD engineering, guided by a systems programmer’s playbook for data layout, hardware dispatch, and cross-architecture production deployment.
Key Features
Book Description
Most engineers add SIMD to a codebase after it is slow, writing intrinsics around the hot loop without understanding why the surrounding code cannot be vectorized and without measuring whether the result is actually faster. This book closes that gap, providing the practical knowledge of memory layout, hardware execution models, and portable abstraction needed to build SIMD code with measured throughput, not assumed throughput.
You will begin at the silicon level, understanding what SIMD registers physically are, how parallel ALUs execute multiple lanes simultaneously, and why CPUID dispatch is an architectural decision rather than an afterthought. You will gain a clear framework for eliminating the layout problems that kill vectorization at its source, understanding where AoS data structures, misaligned allocations, and pointer aliasing introduce barriers, and how each compounds or gets eliminated under real load.
The book walks through the full arc of production SIMD engineering: x86 foundations from SSE through AVX2 and into AVX-512’s dedicated mask register file, ARM NEON’s interleaved load and store model, portable abstraction layers that compile to native instructions, and the compiler collaboration techniques that determine whether the auto-vectorizer succeeds or silently falls back to scalar. It addresses the algorithm cookbook problems that most SIMD resources skip entirely, including branchless search, vectorized sorting networks, and structural byte parsing for JSON and CSV at memory bandwidth rates. The book closes with benchmarking discipline, hardware counter profiling, and a complete fat binary deployment architecture with runtime ISA dispatch and cross-architecture regression testing.
Whether you are vectorizing your first numeric kernel or hardening a production SIMD codebase that targets a heterogeneous deployment fleet, this book provides actionable techniques for throughput that holds under real workloads and correctness that holds across every supported architecture.
What You Will Learn
Who This Book Is For
This book is for C++ systems engineers, performance engineers, and senior developers building or optimizing throughput-critical software across numeric computing, signal processing, database engines, financial systems, and any domain where scalar code leaves measurable hardware capacity unused. It is useful for engineers moving into low-latency or high-throughput roles where the gap between theoretical peak and measured throughput demands explanation. No prior SIMD experience is assumed. The book builds the mental model from first principles in Chapter 1 and every intrinsic is explained at the point of first use.
Table of Contents
About the Author
Weston Ashgrove is a C++ quant trading developer who builds the parts of a trading system that cannot be allowed to be wrong: order books, matching logic, and the concurrency and memory-layout work underneath them. He has a simple rule for latency-critical code: nothing is true until it has been profiled, fuzzed, and replayed. That rule runs through this book, from the first order book benchmark to byte-identical crash recovery. He writes for engineers who ship and debug these systems, and he skips the theory that never survives contact with real order flow.https://x.com/dxled_dc
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.