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.
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.
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.
Most blockchain books teach the theory. This one walks you through building a complete Bitcoin-style blockchain in Rust, end to end — cryptography, consensus, networking, persistence, REST API, desktop wallets, and Kubernetes deployment.
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.
The latest version of Rust (1.85) has some great new features, like async closures, more stable associated function return types, and const generics that are now mature enough to underpin serious numerical libraries. The linfa and smartcore ecosystems have developed into decent classical machine learning stacks. The Burn training framework feels native to Rust, not like it's been ported from it. The Candle makes it so that loading pre-trained transformer models is more of an engineering task than a research exercise. The crates that used to need all sorts of workarounds now just work.
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.
Explore the power of Rust with "Rust Projects: Write a Redis Clone". This hands-on guide takes you through building a Redis-inspired database from the ground up, introducing key programming concepts like TCP connections, the RESP protocol, and concurrency. Following the CodeCrafters challenge, this book gradually builds your skills, making complex topics accessible. Whether you're new to Rust or looking to deepen your understanding, this project-based journey offers practical, real-world insights into modern systems programming. The book contains 40% discount code for CodeCrafters.io!
Build production-ready web services with Rust and Axum. Follow Taskflow, a practical task management API, from the basics through authentication, databases, real-time features, observability and deployment. With code examples, you’ll learn how the pieces fit together and gain the skills to build reliable Rust APIs.
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.
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.
"Your Java microservice runs in 2GB of memory. The same service in Rust? 200MB. Scale that across 100 instances in production, and you're looking at $3,000/month in savings. But it's not just about money—it's about predictability. While Java's garbage collector unpredictably pauses your latency-critical workloads, Rust guarantees deterministic performance. This book teaches you Rust from a Java developer's perspective: same powerful type system, same design patterns, but with compile-time safety that prevents entire categories of bugs. No more race conditions in concurrent code. No more null pointer exceptions. Just code that works, fast."
Learn Rust the fast way, by mapping it to the JavaScript you already know. Go from ownership and traits to building a CLI, an Axum web server, a SQLx database layer, and WebAssembly modules you can call straight from JavaScript.