Leanpub Header

Skip to main content

Filters

Books

  1. Adaptation and Fine-Tuning
    Adaptation and Fine-Tuning
    What it costs to teach a model something new — built, broken and measured from scratch
    Hatem M.

    Use LoRA because it forgets less. Keep the learning rate low. Mix in some general data. Stopearly. Four pieces of advice everyone repeats and almost nobody quantifies. This book measures each one — and two turn out to be doing something other than what they arecredited with. LoRA's retention is governed by a scaling constant, not by its parameterefficiency. Early stopping bounds the damage without separating it from the gain. Everyexperiment reports two numbers: the new task, and the capability you were not trying tochange.

  2. Retrieval-Augmented Generation
    Retrieval-Augmented Generation
    Where the pipeline actually fails — chunking, retrieval, attribution and the numbers that hide it
    Hatem M.

    Chunk at 500 with 50 of overlap. Retrieve five. Add a reranker. Use hybrid search.Repeated everywhere, justified almost nowhere. This book measures them instead, on corpora built so that the correct answer follows fromhow they were made. Several results contradicted the advice: the hybrid combination lost inevery condition tested, neither reranker produced an effect above the noise floor, andattribution collapsed to 0.170 while retrieval was still reporting 0.920.

  3. Embeddings and Vector Search
    Embeddings and Vector Search
    Every index built from scratch. Every recall figure checked against exact ground truth.
    Hatem M.

    Vector databases give you a similarity metric, an index with four tuning parameters, acompression option and a way to filter — and almost no guidance on what any of it costs. This book builds each one from scratch and measures it. The proximity graph, the invertedfile, the product quantiser: implemented in NumPy, included with the text, and checkedagainst exhaustive search — so every recall figure here is exact rather than estimated.

  4. Prompting and Controlled Output
    Prompting and Controlled Output
    Why prompting works when it works — built, broken and measured from scratch
    Hatem M.

    Prompting has more advice than evidence. This book measures it instead: a model reading apattern it has never seen, the same model failing at a task in one pass and solving itperfectly in four, a decoder that guarantees a format instead of improving the odds, and amodel that is 2.4% accurate while 78.6% confident. Six central claims are built from scratch and measured on a single CPU core. Everythingtaken from published research sits in a grey box marked "Not measured here" — so you neverhave to guess which is which.

  5. Foundations of Large Language Models
    Foundations of Large Language Models
    What the model is actually doing — and why every certification asks about it differently
    Hatem M.

    Five certifications ask about the same twenty topics, and each one stops at a differentdepth. This book teaches the topic once, properly, then shows you exactly where each examstops — with 61 original practice questions where every wrong option is explained. Every number in it was measured. Every line of code was run. The code is included.

  6. Claude Patterns
    Claude Patterns
    Reusable Workflows for Real Projects with Claude
    Hatem M.

    You already know the principles. Then you hit a wall mid-project — the session died, a decision turned out wrong, four pieces have to become one — and knowing the principles isn't the same as knowing what to do. Claude Patterns is ten reusable workflows for exactly those moments: the assemblies you run when principles alone don't get you through.

  7. Beyond Chat: Managing Complex Projects with Claude
    Beyond Chat: Managing Complex Projects with Claude
    Managing Complex Projects with Claude
    Hatem M.

    Claude can write a chapter, a module, or a report section in minutes — that's exactly what makes long projects dangerous. Beyond Chat is a practical system for staying in control of long, complex work: how to define a project so it holds together, keep a memory that survives sessions, and know when things have quietly drifted off course.

  8. SQL Problem Solving
    SQL Problem Solving
    A Hands-On Workbook with 84 Real SQL Challenges
    Hatem M.

    84 hand-picked SQL problems, fully solved and explained — from your first SELECT to interview-ready queries. Seven volumes of pure practice: a problem, the data, the answer, and why it works. No theory chapters, no filler, every query tested against a real database. Solve first, read second.

  9. LLM Quantization
    LLM Quantization
    From the Bits Up
    Hatem M.

    Anyone can run INT4 and read off the accuracy drop. This book explains why that number is what it is — building every quantization method from scratch, breaking it on purpose, and measuring the result. Quantization, from the bits up.

  10. C++ AUTOPSY
    C++ AUTOPSY
    Ten Investigations into Code that Compiled, Ran, and Lied
    Hatem M.

    Ten C++ investigations into programs that compiled clean, ran perfectly, and still got the answer wrong. A forensic journey through the bugs that hide in plain sight.

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

  12. Assembly Arithmetic Algorithms-Linux
    Assembly Arithmetic Algorithms-Linux
    32-bit Linux Edition
    Chastity White Rose

    Personally, I think that the Assembly system of conditional jumps makes a lot of sense. Other programming languages such as BASIC and C have "goto" statements that work like this. For example, `if(eax<ebx){goto less;}`. Modern programming languages tend to discourage the use of goto or not allow it at all. However, these languages still use jumps I have described in this section because it is required by the hardware. Both "if" and "while" statements are written by using the conditional jump statements most relevant to what you are trying to do. The only thing I have found difficult about jumps in assembly is remembering which acronym means which condition. However, since I created the chart in this chapter, now I can refer to it, and you can too! As long as I keep these six main types of conditions in my head and am working with unsigned numbers, I can write almost any assembly program from scratch.

  13. Building Desktop Apps & Developer Tools with Tauri 2.0, Rust, and TypeScript
    No Description Available
  14. 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?

  15. Platform Strategy
    Platform Strategy
    Innovation Through Harmonization
    Gregor Hohpe

    Developer platforms promise to rewrite the laws of IT physics: they boost innovation through standards; they speed up development while assuring compliance; and they reduce cognitive load without restricting choice. Building such an in-house platform, or even deploying one, is far from easy, though. This book condenses a decade of building and rolling out platforms into practical advice for platform teams and users.5300+ happy readers! Also as Paperback edition