Original-language books from Europe's leading book distributor Stock & prices updated every hour My basket
Cover of The 21 Paradigms of Rust The 21 Paradigms of Rust

The 21 Paradigms of Rust

Design Decisions for Building Intentional Software with Rust

by Srinivasan, Vasu , Vasu, Dhriti

—
○ Available to order – ships after supplier delivery

Product details

Publisher
APRESS L.P.
Published
Language
English
Format
Paperback
Dimensions
254 mm × 178 mm
Category
Programming
ISBN-13 / EAN
9798868831140

About this book

Learn to navigate AI-driven programming and think like a systems architect by mastering Rust's 21 core paradigms. As tools like Cursor and Claude accelerate code generation, Rust helps ensure safety at compile time, enabling fast, reliable, high-performance software.<BR><BR>Through a systematic decomposition of Rust's core architecture, you will journey through 21 distinct design philosophies, compiler mechanisms, and type system invariants. Every paradigm is audited across three clean layers: surface syntax, memory layout, and compiler optimization passes. <BR><BR>What sets this book apart is its relentless focus on physical machine execution-proving why contiguous, cache-friendly memory layouts outperform traditional structures on CPU silicon. Rather than repeat basic syntax tutorials, this guide elevates your thinking to design intentional software that is structurally immune to bugs. <BR><BR>What You Will Learn:- Master Rust's ownership model, affine type system, and move semantics.- See how zero-cost abstractions compile into optimized machine code.- Study standard library internals like Vec, Arc, Mutex, and Iterator.- Use ownership-based reasoning to build concurrent, data-race-free programs.- Write safe, high-performance code that coordinates directly with CPU caches.Who this Book is for: Rust developers who want to move beyond syntax into the design decisions and underlying logic of the language. They don't need to be experts but have encountered "borrow checker" at least one and wondered about the underlying logic of its constraints. Assumes general programming experience in at least on other system or compiled language (C, C++, Go, Swift, etc.).

Table of contents

Introduction: The Rust Renaissance.- Part I. The Foundation.- 1. Ownership-Based Memory Management.- 2. Fearless Concurrency.- 3. Zero-Cost Abstractions.- 4. Explicit Lifetimes & Temporal Safety.- Part II: Architecture of Data.- 5. Algebraic Data Types (ADTs).- 6. Pattern Matching & Exhaustiveness.- 7. Resource Management through RAII.- Part III. The Type System.- 8. Trait-Based Polymorphism.- 9. Generic Programming.- 10. The Orphan Rule & Coherence.- 11. Interior Mutability.- Part IV: Synthesis.- 12. Functional Programming Style.- 13. Explicit Error Handling.- 14. The Unsafe Escape Hatch.- 15. Systems Programming Without GC.- Part V. Metaprogramming.- 16. Hygienic Metaprogramming.- 17. Compile-Time Execution.- 18. The Edition System.- Part VI. Execution Models.- 19. Async: Zero-Cost Multitasking.- 20. Pinning & Memory Stability.- 21. FFI & Interop.- Back Matter.- Conclusion.

See all ›
117,625+ booksOriginal editions from the Libri catalogue
Updated hourlyStock and prices refresh automatically
Easy orderingPlace an order and we'll get in touch
21 categoriesFrom fiction to science and children's books