Aussie AI

Free PDFs of Generative AI and C++ Books

  • Books by Aussie AI founders

PDF Downloads of Full Book Text

  1. Generative AI in C++ (Spuler, March 2024), free PDF download (warning: 3.8MB file) — building LLM infrastructure kernels in C++.
  2. The Sweetest Lesson: Your Brain Versus AI, 2025, free PDF download (warning: 5.3 MB file)
  3. C++ AVX Optimization: CPU SIMD Vectorization, 2025, free PDF download (warning: 1.8 MB file)
  4. C++ Ultra-Low Latency: Multithreading and Low-Level Optimizations, 2025, free PDF download (warning: 3.7 MB file)
  5. Advanced C++ Memory Techniques: Efficiency and Safety, 2025, free PDF download (warning: 2.1 MB file)
  6. Efficient C++ Multithreading: Modern Concurrency Optimization, 2025, free PDF download (warning: 2.7 MB file)
  7. Efficient Modern C++ Data Structures: Container and Algorithm Optimizations, 2025, free PDF download (warning: 2.0 MB file)
  8. C++ Low Latency: Multithreading and Hotpath Optimizations, 2025, free PDF download (warning: 2.0 MB file)
  9. Safe C++: Fixing Memory Safety Issues, Oct 2024, free PDF download (warning: 1.2 MB file)
  10. CUDA C++ Optimization: Coding Faster GPU Kernels , July 2024, free PDF download (warning: 1.3 MB file)
  11. CUDA C++ Debugging: Safer GPU Kernel Programming, July 2024, free PDF download (warning: 1.3 MB file)
  12. RAG Optimization: Accurate and Efficient LLM Applications (PDF not yet available)
  13. Generative AI Applications: Planning, Design and Implementation (PDF not yet available)

Older C/C++ PDF Book Downloads

Various books on C and pre-modern C++ programming from the 1990s (out-of-date!):

  1. Comprehensive C (Spuler, 1992), Free PDF download (warning: 1.7M file) — early textbook on the pre-1999 ANSI standard C programming language (includes bonus chapter & instructor manual)
  2. C++ and C Debugging, Testing, and Reliability: The Prevention, Detection, and Correction of Program Errors, 1994, Free PDF download (warning: 1.3M file) — an outdated book on testing and debugging of C and C++ code.
  3. C++ and C Efficiency: How to Improve Program Speed and Memory Usage, 1992, Free PDF download (warning: 1.0M file) — early book on optimizing C and C++ code (outdated!).
  4. Enterprise Application Management with PATROL, 1999, Free PDF download (warning: 8.4M file) — an early book on application management.
  5. C++ and C Tools, Utilities, Libraries, and Resources: Free and Commercial Software Tools, 1995 (PDF not yet available)

Full Text Online: Generative AI in C++

Generative AI in C++: Coding Transformers and LLMs

Foreword

Preface

Source Code Availability

About the Author

About the Contributors

Part I: AI Projects in C++

Chapter 1. Introduction to AI in C++

Chapter 2. Transformers & LLMs

Chapter 3. AI Phones

Chapter 4. AI on Your Desktop

Chapter 5. Design Choices & Architectures

Chapter 6. Training, Fine-Tuning & RAG

Chapter 7. Deployment Architecture

Part II: Basic C++ Optimizations

Chapter 8. Bitwise Operations

Chapter 9. Floating Point Arithmetic

Chapter 10. Arithmetic Optimizations

Chapter 11. Compile-Time Optimizations

Chapter 12. Pointer Arithmetic

Chapter 13. Algorithm Speedups

Chapter 14. Memory Optimizations

Part III: Parallel C++ Optimizations

Chapter 15. Loop Vectorization

Chapter 16. Hardware Acceleration

Chapter 17. AVX Intrinsics

Chapter 18. Parallel Data Structures

Part IV: Transformer Components in C++

Chapter 19. Encoders & Decoders

Chapter 20. Attention

Chapter 21. Activation Functions

Chapter 22. Vector Algorithms

Chapter 23. Tensors

Chapter 24. Normalization

Chapter 25. Softmax

Chapter 26. Decoding Algorithms

Chapter 27. Tokenizer and Vocabulary

Part V: Optimizing Transformers in C++

Chapter 28. Deslugging AI Engines

Chapter 29. Caching Optimizations

Chapter 30. Vectorization

Chapter 31. Kernel Fusion

Chapter 32. Quantization

Chapter 33. Pruning

Chapter 34. MatMul/GEMM

Chapter 35. Lookup Tables & Precomputation

Chapter 36. AI Memory Optimizations

Part VI: Enterprise AI in C++

Chapter 37. Tuning, Profiling & Benchmarking

Chapter 38. Platform Portability

Chapter 39. Quality

Chapter 40. Reliability

Chapter 41. Self-Testing Code

Chapter 42. Debugging

Part VII: Research on AI Optimization

Chapter 43. Overview of AI Research

Chapter 44. Advanced Quantization

Chapter 45. Knowledge Distillation

Chapter 46. Structured Pruning

Chapter 47. Early Exit and Layer Pruning

Chapter 48. Width Pruning

Chapter 49. Length Pruning

Chapter 50. Adaptive Inference

Chapter 51. Zero-Multiplication Models

Chapter 52. Logarithmic Models

Chapter 53. Arithmetic Optimization Research

Chapter 54. Ensemble Multi-Model Architectures

Chapter 55. Advanced Number Systems

Chapter 56. Neural Architecture Search

Appendices

Appendix 1: C++ Slug Catalog

Bonus Appendix: C++ Bug Catalog

Bonus Appendix: C++ Bug Symptom Diagnosis

Bonus Appendix: C++ Portability Bug Catalog

Full text online free: The full text of Generative AI in C++:



Generative AI in C++ The new Generative AI programming book by Aussie AI co-founders:
  • Generative AI coding in C++
  • Transformer engine speedups
  • LLM models
  • Phone and desktop AI
  • Code examples
  • Research citations

Get your copy from Amazon: Generative AI in C++

Bonus Materials

Extra bonus materials for owners of the book.

References

Detailed reference lists for every chapter of the book.

Source Code

Access the source code for the Aussie AI C++ library as used in the book's examples..