Black Friday Deals For Authors Are On Now!

Leanpub Header

Skip to main content

Filters

Category: "C and C++"

C and C++

New to C and C++? Read the C and C++ article

  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. 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.

  3. C++23 Best Practices

    For the first time ever, C++23 changes "Hello World" in C++. What kind of fundamental changes does this mean for your code?

  4. Build a SQL Database Engine in C++
    Build a SQL Database Engine in C++
    Through Challenges --- Storage, Query Processing, Joins, Indexes, Vectorized Execution, and Crash Recovery (Complete, Units 1-14)
    Hatem M.

    Build a working SQL database engine in C++20 -- from raw pages to joins,indexes, vectorized execution and crash recovery -- one compliable, measuredchallenge at a time. Every claim is a benchmark you run yourself; every unitends with a real bug, caught and fixed. The finale holds the engine toPostgreSQL and SQLite. Complete: all 14 units. Nothing asserted.

  5. 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.

  6. The Executable and Linkable Format
    The Executable and Linkable Format
    A Complete Technical Reference for Systems Programmers
    Steve Publications

    The ELF format sits at the heart of how Unix-like systems build and run software, yet much of its inner workings remains poorly understood. This book takes you under the hood, covering every structure and mechanism with practical examples and complete C programs. A hands-on reference for programmers who need to understand ELF down to the last detail.

  7. C++ Algorithmic Mastery: 1000 Challenges from Beginner to Legendary
    C++ Algorithmic Mastery: 1000 Challenges from Beginner to Legendary
    Solved and Tested — A Complete 8-Volume Journey from Beginner to Advanced Algorithms
    Hatem M.

    1000 carefully designed C++ problems across 8 progressive volumes — from your very first line of code to advanced algorithms. Every single solution is compiled and tested on g++, with hints, complexity analysis, and a clear explanation for each. A complete, structured path from beginner to mastery.

  8. Programming with C++20
    Programming with C++20
    Concepts, Coroutines, Ranges, and more
    Andreas Fertig

    Get up to speed with C++20 and its most impactful features.

  9. FAT12
    FAT12
    Understanding and Implementing the Classic File System in C
    Björn Götz

    Stop guessing what the bytes on disk mean and build the filesystem yourself. Over twelve chapters you implement FAT12 from scratch in C, from the first sector read to formatting a fresh volume, and check every step against a hexdump. Then you boot the exact same code inside your own kernel and watch it write and read files on bare metal.

  10. STM32 in Depth: The Complete Embedded Developer's Guide
    STM32 in Depth: The Complete Embedded Developer's Guide
    From Bare-Metal Fundamentals to Production-Ready Firmware
    Steve Publications

    Master STM32 development from bare-metal programming to production-ready firmware. With clear explanations and practical C examples, this guide helps you build the skills to design efficient, reliable embedded systems using ARM Cortex-M microcontrollers.

  11. 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.

  12. Introduction to Zig
    Introduction to Zig
    a project-based book
    Pedro Faria

    An open, technical and introductory book for the Zig programming language, which is a new general-purpose and low-level programming language.

  13. Modern ANSI C Programming
    Modern ANSI C Programming
    A Complete Guide to Correct, Portable, and Professional C Code
    Steve Publications

    Master C the way it is used in serious software. Modern ANSI C Programming takes you from the fundamentals to memory management, data structures, concurrency and production-ready practices, with practical examples that show what works, what breaks and why. Write C that is portable, secure, efficient and built to last.

  14. Lock-Free C++ in Production
    Lock-Free C++ in Production
    Mastering the Memory Model with Hazard Pointers and Epoch-Based Reclamation
    Weston Ashgrove

    Your lock-free queue passed every test. It ran clean under ThreadSanitizer for a year. Then it shipped to ARM and started corrupting data, without a single crash. Lock-Free C++ in Production shows you why, and how to make sure it never happens to your code.

  15. CUDA C++: High-Performance GPU Programming

    Master the GPU from the Streaming Multiprocessor to Production-Grade High-Performance KernelsCUDA C++: High-Performance GPU Programming is an advanced technical guide to GPU programming, CUDA execution, memory architecture, kernel optimization, low-level hardware analysis, and high-throughput AI workloads.Designed for engineers who want to move beyond basic CUDA programming, this 53-chapter technical reference explores the NVIDIA GPU programming stack in depth, progressing from Streaming Multiprocessor architecture and SIMT execution to PTX/SASS analysis, Tensor Cores, asynchronous data movement, multi-GPU systems, NCCL, and production inference engines.The book takes a hardware-aware approach to performance engineering. Rather than treating CUDA as a black box, it examines how threads execute, how warps communicate, how memory transactions are formed, and how registers, caches, compiler decisions, and hardware scheduling influence performance. The emphasis is on understanding the mechanisms behind kernel behavior and using that knowledge to make informed optimization decisions.