New to Rust? Read the Rust article
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.
I wrote this book to show exactly what happens when you add Rust to the kernel. Not as a toy. Not as a single driver in a conference demo. It's a full module that covers process management, memory allocation, file systems, networking, device drivers, inter-process communication, and even machine learning inference. It's all built on safe abstractions, all compiled into one loadable binary, all tested on a running kernel. You'll find that each chapter adds new source files to the same module.
This book is basically a record of my serious learning journey with Zig. The application at its heart, Zigkit, started as a single print statement and ended as twenty-five cooperating modules handling everything from arithmetic to HTTP. It's small enough to understand completely and complete enough to demonstrate every major systems programming concern. Each section of the book adds one module, introduces one concept, and produces one working program.
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.
Take everything you know about Ruby — classes, modules, exceptions, enumerable methods — and translate it directly to Rust. No fluff, no abstract theory, just runnable Ruby-to-Rust comparisons with hands-on exercises.
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.
Stop writing builder boilerplate by hand. The bon crate generates compile-time-checked builders in Rust with a single annotation — and this cookbook shows you exactly how to use it, recipe by recipe.
Your Python is elegant, expressive, and — let's be honest — slow where it counts. This book teaches you to rewrite the 3% that hurts in Rust, without rewriting the 97% that doesn't, by building a real log intelligence platform from first spark to production-ready package. If you've ever stared at a profiler's output and thought there has to be a faster way — there is, and you won't even need to give up pip install.
# Предисловие ## Почему эта книга? В 2024 году я начал снимать видеоуроки по Rust на YouTube. За год вышло более 50 уроков — от основ до продвинутых тем: Solana, Go, LeetCode, GameFi. Но видео — это не навсегда. Они теряются в ленте рекомендаций, устаревают, их нельзя легко найти по конкретной теме. Тогда я решил: **лучший способ сохранить знания — написать книгу**. Это не учебник по блокчейну. Это не перевод документации. Это — **конспект практического опыта**. Каждая глава родилась из реальной разработки: - Я писал код для проектов на Solana - Сталкивался с ошибками и исправлял их - Объяснял материал ученикам и зрителям - Отвечал на вопросы в комментариях Результат — книга, которая проведёт тебя от "Hello, Lamports" до собственного SPL-токена. ## Для кого эта книга? **Эта книга для тебя, если:** - Ты уже знаешь Rust на базовом уровне - Хочешь войти в блокчейн-разработку - Устал от абстрактных туториалов и хочешь практики - Ищешь структурированный материал на русском языке **Эта книга НЕ для тебя, если:** - Ты ищешь академический труд по криптографии - Тебе нужна теория без практики - Ты уже опытный Solana-разработчик ## Как читать эту книгу 1. **Последовательно** — материал выстроен от простого к сложному 2. **С кодом** — каждая глава включает рабочие примеры 3. **С практикой** — в конце каждой главы есть задания Рекомендую не просто читать, а **повторять код самостоятельно**. Блокчейн-разработка — это навык, который требует практики. ## Структура книги | Блок | Главы | Что получишь | |------|-------|--------------| | Основы | 1-4 | Понимание архитектуры Solana | | Anchor | 5-7 | Умение писать программы быстро | | Продвинутое | 8-11 | PDA, CPI, сложные сценарии | | Токены | 12-13 | Создание собственных токенов | | Деплой | 14-15 | Запуск в реальной сети | ## От автора Я верю, что образование должно быть доступным. Эта книга — мой вклад в русскоязычное сообщество разработчиков. Если ты дочитал до этого места — ты уже молодец. Блокчейн сложен, но ты справишься. Удачи в изучении! — **Rust & Beyond** --- *P.S. Если возникнут вопросы — пиши в комментариях к видео на YouTube или в Telegram. Я отвечаю на все вопросы.*
Tired of memory bottlenecks? It’s time to build AI with the speed and safety of Rust. Learn to bypass standard abstractions and achieve raw performance at the hardware level. Detailed architectural diagrams and expert exercises for modern high-speed AI stacks. Stop compromising on performance—start building the future of AI engineering today.
Learn the hardware rules that make Rust code fast
Every .map(), .filter(), and .collect() you write is built on a single method: next(). This book shows you what's underneath — and what you can build on top.
Candle is a minimalist, high-performance ML framework.The explicitness of Rust without layers of abstraction obscuring what's really happening
"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."
Fearless Rust, Don’t Panic! is a practical, engineering-first guide to becoming productive in Rust without getting stuck in borrow-checker dead ends. You will build a solid mental model for ownership and borrowing, learn the patterns that scale to real projects, and write Rust that is both safe and maintainable. If you want Rust’s reliability and performance without weeks of frustration, this book is your shortcut.