Cpp programmers mindset

Profiling Your Code: Finding Bottlenecks With Perf and Benchmarks

The C++ Programmer’s Mindset by Sam Morley (ISBN 978-1-83588-842-1)

You picked C++ partly for speed. Chapter 15 is Morley’s case for measuring before you touch anything. Premature optimization wastes time and adds complexity. Profiling tells you where speed actually matters and what is holding you back.

GPUs and Specialized Hardware Part 2: CUDA Kernels and SYCL

The C++ Programmer’s Mindset by Sam Morley (ISBN 978-1-83588-842-1)

Part 1 covered GPU architecture and the gentle on-ramps (Thrust, OpenMP offload). Part 2 is where Morley shows what writing kernels actually looks like: CUDA for NVIDIA, then SYCL when you want one codebase targeting multiple devices.

GPUs and Specialized Hardware Part 1: Architecture, Thrust, and OpenMP

The C++ Programmer’s Mindset by Sam Morley (ISBN 978-1-83588-842-1)

CPUs are general-purpose workhorses. Sometimes you need a different animal. Chapter 14 introduces GPUs and other accelerators. This first post covers the architecture basics and the “easy mode” paths: library abstractions and OpenMP offload. Part 2 gets into raw CUDA and SYCL.

The Problems of Scale: Threading, MPI, and Distributed C++

The C++ Programmer’s Mindset by Sam Morley (ISBN 978-1-83588-842-1)

At some point, one CPU with a handful of threads stops being enough. Chapter 13 is Morley’s tour of what changes when you scale up: more cores, more processes, more machines. The rubber duckies app fit on a laptop. Real workloads often do not.

Reflecting on What We Built: Finishing the Rubber Duckies Project

The C++ Programmer’s Mindset by Sam Morley (ISBN 978-1-83588-842-1)

Chapter 12 is the payoff moment. After chapters of file readers, regex parsing, and k-means clustering, Morley finally wires everything into one runnable program and then sits back to ask: what did we actually learn?