Leanpub Header

Skip to main content

Filters

Category: "C and C++"

Books

  1. C++23 - The Complete Guide
    C++23 - The Complete Guide
    Nicolai M. Josuttis

    All new language and library features of C++23 (for those who know C++20) The book presents all new language and library features of C++23. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps. Buy early, pay less, free updates Current Content: www.cppstd23.com Other leanpub books by this author:C++20C++17C++ Move Semantics

  2. The C++ Interview Book
    The C++ Interview Book
    173 questions, from foundations to C++26
    Sandor Dargo

    173 C++ interview questions. Junior to Senior. auto to C++26. Every question has follow-ups, code samples, and cross-references. A 100-day study plan with spaced repetition gets you through them all. A code-reading capstone sharpens your skills under pressure. Not just the answers — the reasoning that survives the follow-up questions.

  3. No More Helloworlds. Build a Real C++ App
    No More Helloworlds. Build a Real C++ App
    Master Real C++ Development: Architecture, Git, Testing & CMake in One Practical Workflow
    Nikolai Kutiavin

    You already know C++. Now learn how real C++ software is actually built.Follow one complete application from architecture and CMake to implementation, testing, Git, CI, Docker, and Qt.

  4. C++20 - The Complete Guide
    C++20 - The Complete Guide
    Nicolai M. Josuttis

    All new language and library features of C++20 (for those who know previous C++ versions) The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps. Buy early, pay less, free updates Other books:C++23C++17C++ Move Semantics

  5. Architecting High Frequency Trading Systems
    Architecting High Frequency Trading Systems
    Modern C++ design patterns for Lock-Free Pipelines, Kernel Bypass, and Nanosecond Execution.
    Weston Ashgrove

    Every nanosecond is a decision. Most trading systems lose thousands of them before the strategy even runs.Architecting HFT Systems in Modern C++ is the build manual for the systems that don’t. Starting from bare metal, you’ll construct a complete high-frequency trading pipeline, from packet arrival to order on the wire, with zero heap allocation and zero system calls on the hot path.You’ll learn how to:Tune Linux for deterministic, low-jitter execution with isolated cores, IRQ affinity, and tickless kernelsReplace malloc with arena allocators, pre-faulted pools, and clocks that never touch the kernelWire every component through lock-free SPSC queues using only the memory ordering you actually needBypass the kernel with DPDK, ef_vi, and io_uring, reading packets exactly where DMA placed themDecode ITCH, SBE, and FAST feeds at wire speed with branchless, compile-time-dispatched parsersBuild a cache-resident order book that updates in nanoseconds, not microsecondsRun strategies through a zero-virtual-call harness and enforce risk limits in a handful of instructionsProve it all with deterministic pcap replay, a simulated exchange, and automated latency regression detectionEvery chapter ends with a Latency and Determinism Ledger, a running p50/p99/p99.9 record that shows exactly where each nanosecond went and how it was won back.No toy examples. No hand-waving. Just the architecture, the code, and the measurements behind real tick-to-trade performance.Speed without determinism is luck. This book teaches you both.Short version (for ads or the subtitle line):Build a complete HFT pipeline in modern C++, from kernel bypass to order on the wire, with zero allocation, zero syscalls, and every nanosecond measured.

  6. Bare-Metal Market Data Engines in C++
    Bare-Metal Market Data Engines in C++
    Zero-Copy FIX/ITCH/OUCH Parsing, Sequence Gap Recovery, and Deterministic Order Book Reconstruction.
    Weston Ashgrove

    Your feed handler parsed every test message correctly. Then a real exchange dropped two packets on an ordinary Tuesday, and the book kept building, internally consistent and wrong.Nothing crashed. Nothing threw. Four minutes of bad quotes went out before anyone noticed.This book is about that gap: the distance between a parser that works and a feed handler you can trust. You will build zero-copy FIX, ITCH, and OUCH parsers with no heap allocation on the hot path, detect sequence gaps without stalling live traffic, recover from outages without corrupting book state, and prove the result with byte-identical replay.If your system has never lost a sequence number in testing, you do not have a feed handler. You have a demo.Weston Ashgrove is a trading systems architect who has built and debugged the failures in these pages.

  7. Mastering STM32 - Second Edition
    Mastering STM32 - Second Edition
    A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube development environment
    Carmine Noviello

    With more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the most complete guide around introducing the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.

  8. Deterministic Matching Engines in C++23/26
    Deterministic Matching Engines in C++23/26
    Lock-Free Order Books, Cache-Line Aligned Price-Time Priority, and Zero-Jitter Trade Execution.
    Weston Ashgrove

    The engine never crashed. Every test passed. Then the opening auction cleared, order flow jumped fivefold, and for eight minutes it matched every order correctly against a book that was already 700 milliseconds out of date. Several hundred clients got fills that were individually plausible and collectively wrong. Nothing in the logs said why.This book is about that gap between "thread-safe" and "deterministic," and how to close it: lock-free CAS design, cache-line layout measured with perf c2c, zero-allocation hot paths, jitter hunted down to the interrupt level, and proof that the same event log replays byte-for-byte identical ten thousand times, including after a crash.

  9. Build an LLM Inference Engine in C++
    Build an LLM Inference Engine in C++
    A Challenge-Driven Guide to Building a CPU-First Inference Engine in C++20
    Hatem M.

    Build a complete LLM inference engine in C++ — from a blankproject to a working Transformer that loads a real model andgenerates text. Forged one challenge at a time, with teststhat prove every piece works before you move on.

  10. SDL3: The Complete Reference
    SDL3: The Complete Reference
    A Comprehensive Guide to Cross-Platform Game Development with Simple DirectMedia Layer 3
    Steve Publications

    Build games that run almost anywhere with SDL3. This book starts with the basics and steadily moves into advanced graphics, audio, input, and application design using practical, real-world examples. Every chapter includes complete code you can compile and experiment with, helping you understand not just how SDL3 works, but how to use it to build fast, portable applications with confidence.

  11. Rust In Practice, Third Edition
    Rust In Practice, Third Edition
    Concurrency, Memory Safety, GPU Computing, Linux Kernels, and Real-World Systems using Rust 1.85
    GitforGits | Asian Publishing House

    This third edition covers Rust 1.85 and the Rust 2024 Edition in full. The new chapters on concurrency, the 2024 edition migration, GPU computing, Go integration, and Linux kernel programming show where the Rust community has moved since the second edition, and where systems programming as a discipline is heading. You might be writing your first Rust function or your hundredth production service, but I hope this book makes the language feel less like a puzzle and more like a tool you are already familiar with. That was the only goal I had when I wrote it.

  12. C++17 in Detail
    C++17 in Detail
    Learn the Exciting Features of The New C++ Standard!
    Bartłomiej Filipek

    C++17 was standardised in December 2017, giving us - developers - a wealth of new features to write better code. This book describes all significant changes in the language and the Standard Library. Thanks to many practical examples you can quickly apply the knowledge. The paperback version @Amazon!And in the bundle with C++ Lambda Story.

  13. Mastering Regular Expressions
    Mastering Regular Expressions
    A Complete Guide for Developers Across Languages and Platforms
    Steve Publications

    Regex doesn't have to feel like cryptic punctuation. Mastering Regular Expressions shows you how patterns really work, how to debug them when they don't and how to use them confidently across nine programming languages. Go beyond memorizing syntax and learn to write regex that's clear, efficient and portable.

  14. 100 LLM Autopsies
    100 LLM Autopsies
    What broke, why nobody noticed, and how it was found
    Hatem M.

    A model that crashes is a good day. The dangerous failures return answers — plausible, fluent, and wrong. 100 failures. 63 diagnostic instruments. One rule: inspect what actually happened.

  15. A QuantLib Guide
    A QuantLib Guide
    An introduction to the usage of the QuantLib library
    Luigi Ballabio
    No Description Available