Tired of paying the "container tax" for bursty, event-driven workloads? It's time to elevate your cloud architecture. Building Serverless Applications with WebAssembly & Spin walks you through constructing a robust, multi-component Rust app from scratch. You will master Spin, learn about the underlying Wasm Component Model, and ship your app seamlessly to both Kubernetes and edge runtimes. Ditch heavy base images, eliminate cold starts, and master the future of lightweight, secure serverless compute.
Learn how modern LLM inference engines work by building one from scratch in Rust. From transformers and tokenization to KV caching, quantization, batching, and GPU optimization, this book combines theory, hands-on code, and performance engineering to help you create fast, production-ready AI systems.
We'll be writing kernels in Rust and seeing how they match up with their C++ equivalents. If you feed a GPU properly, you'll see bandwidth quadruple from just one changed subscript. It'll get you working with thousands of threads, pricing a financial option based on an exact formula, and shipping an inference pipeline that outruns its Python equivalent for reasons you can name.
This third edition covers Rust 1.85 and the Rust 2024 Edition in full. The new chapters on concurrency, the 2024 edition migration, GPU computing, Go integration, and Linux kernel programming show where the Rust community has moved since the second edition, and where systems programming as a discipline is heading. You might be writing your first Rust function or your hundredth production service, but I hope this book makes the language feel less like a puzzle and more like a tool you are already familiar with. That was the only goal I had when I wrote it.
This book is meant to discover how the language Rust, which is known for being fast and safe, can work with the constantly changing field of machine learning, neural networks and deep learning. The datasets of COVID, CIFAR-10 and practical examples are meant to show how Rust's features can be used to solve problems that come up in machine learning.
We will work in pure Rust, with no C++ shim or Python wrapper. We will build one small program that grows to cover the whole book. It begins as a loop that any of us could have written on a bad day. After gaining a kernel, it learns to stop waiting, grows streams and pinned memory, and ends as a pipeline fed by parallel producers through bounded channels. The device is busy almost every millisecond.
A practical, example driven guide to modern Rust: ownership, traits, async I/O, and real projects like CLIs and web services. Twelve chapters take you from install to shipping confidently, plus a tour of Rust in WebAssembly, Python extensions, and embedded systems.
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.
Unlock NVIDIA GPU performance from Rust. This practical guide takes you from GPU architecture and memory hierarchies to writing and optimizing real CUDA Rust kernels. Explore both official Rust CUDA approaches with runnable examples and learn how to build fast, production-ready GPU code without giving up Rust’s safety and clarity.
Thinking is Rust
Learn how to build a modern programming language from scratch in Rust. By implementing a complete language called Rune, you will explore every stage of language design, from lexing and parsing to type checking, virtual machines, LLVM code generation, and developer tooling, with practical code and clear explanations throughout.
Build a source-level debugger in Rust from the ground up while uncovering the operating system, CPU, and compiler mechanisms behind modern debugging. Through hands-on implementation, you'll learn how processes, memory, breakpoints, and DWARF debug information come together to make source-level debugging possible.
Build a complete x86_64 hardware-assisted hypervisor in Rust from the ground up. Through real, compilable code and clear explanations, you'll implement every major subsystem, from CPU and memory virtualization to device emulation, VirtIO, and multi-vCPU scheduling, gaining a practical understanding of modern virtualization.
Most developers can build a web server with a framework. Far fewer understand what happens underneath. Rust from Sockets to Servers takes you from raw TCP sockets to a production-ready web server built in Rust, giving you a deep understanding of HTTP, async programming, TLS, routing, and the foundations behind every modern web application.
What the compiler is really doing