Leanpub Header

Skip to main content

Filters

Category: "C and C++"

C and C++

  1. Build a Compiler in C++, Backwards
    Build a Compiler in C++, Backwards
    Start with twelve bytes of machine code. Finish with a compiler that draws what gcc draws.
    Hatem M.

    Build a compiler from the machine up. Start with twelve bytes of machine code you encode by hand, and finish with a compiler whose ray tracer draws exactly what gcc's build of it draws.

  2. C++20
    C++20
    Rainer Grimm

    C++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.

  3. Concurrency with Modern C++
    Concurrency with Modern C++
    What every professional C++ programmer should know about concurrency.
    Rainer Grimm

    C++11 is the first C++ standard that deals with concurrency. The story goes on with C++17, C++20, and will continue with C++23. I'll give you a detailed insight into the current and the upcoming concurrency in C++. This insight includes the theory and a lot of practice.

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

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

  6. C++ Data-Oriented Design
    C++ Data-Oriented Design
    Cache-Line Mechanics, SoA Layouts, SIMD Vectorization, and Memory Access Optimization for High-Performance Systems
    Weston Ashgrove

    Your CPU is not slow. Your data is in the wrong place. Every cache miss your hot loop pays is not a hardware limitation, it is a layout decision that was never made consciously. The pointer your code chases, the struct field your loop skips over, the heap allocation that landed three megabytes from the last one: these are the real performance bottlenecks in CPU-bound systems, and none of them show up in a complexity analysis. This book teaches you to see your data the way the hardware sees it, measure what it costs, and redesign it so the memory system works with your code instead of against it.

  7. C++ Under Pressure: A Complete Interview Guide from 1,000+ Interviews
    C++ Under Pressure: A Complete Interview Guide from 1,000+ Interviews
    Written by the interviewer , not the candidate
    Ahmed

    After 1,000+ interviews, I kept seeing the same gaps: engineers who use shared_ptr daily but can't explain the control block; developers who write multithreaded code without understanding the memory model they're relying on. This book is the resource I wished existed. Free preview includes Chapter 3: OOP & Polymorphism — the chapter that eliminates more candidates than any other.

  8. Building Modern Web Applications in C
    Building Modern Web Applications in C
    From Sockets to Production: A Complete Guide to Designing, Implementing, Securing and Operating Web Services with C
    Steve Publications

    What does it really take to build a web application from the ground up, without relying on layers of frameworks to do the heavy lifting? Building Modern Web Applications in C takes you from a handful of sockets to a fully functioning, secure and production-ready web service, revealing the inner workings of HTTP, databases, sessions, TLS and everything in between. Through hands-on examples and the evolution of Taskforge, you’ll learn not just how to make a web server work but how to build one you can trust, deploy and keep running in the real world.

  9. Runtime Patterns for Embedded Systems
    Runtime Patterns for Embedded Systems
    Modules and Examples with Complete Source Code for STM32F7 Discovery Board and ARM Cortex-M7
    David Clifton

    Descriptions, Discussion, and Selected Source Modules illustrating State Machines, Event Handlers, Message Pumps, Fibers, and Event-triggered, Interacting State Machines. A demo program can be downloaded and run on an STM32F746G_DISCO board.

  10. The C++ Standard Library
    The C++ Standard Library
    What every professional C++ programmer should know about the C++ standard library.
    Rainer Grimm

    With the current C++23 standard, C++ has many libraries to offer. My book's key idea is to give you concise the necessary information for all C++ standard libraries.The book is an improved version of my German book C++ Standardbibliothek published by O'Reilly. Persian version

  11. The Modern C++ and STL Interview Compendium
    The Modern C++ and STL Interview Compendium
    Interview Questions and Answers for Modern C++ Developers
    Yohan J. Rodríguez

    A practical interview reference covering Modern C++ language features, STL usage, concurrency, and performance (553 manuscript pages).

  12. Modern C++ Memory Safety
    Modern C++ Memory Safety
    Safer Systems Software Without a Full Rewrite
    Steve Publications

    Modern C++ Memory Safety shows you how to make existing C++ systems safer without starting over. Learn practical ways to find and fix memory safety issues using modern C++, compiler tools, sanitizers, static analysis and fuzzing, with techniques you can apply directly to real production code.

  13. The C++ STL Handbook
    The C++ STL Handbook
    Containers, Algorithms, Iterators, Ranges, and Beyond
    Steve Publications

    Go beyond C++ syntax and learn to use the STL with confidence. Explore containers, algorithms, iterators, ranges and more through practical examples, performance insights and real-world patterns. Build a deeper understanding of how the STL works, when to use each tool and how to write cleaner, faster and more maintainable C++.

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

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