
Rust - это новый язык системного программирования, который сочетает в себе производительность низкоуровневых языков программирования C и C++ с безопасностью памяти и безопасностью потоков. Современные, гибкие типы данных Rust гарантируют, что ваша программа не содержит нулевых указателей, двойных разворотов, оборванных указателей и подобных ошибок во все время компиляции, без накладных расходов времени исполнения. В многопоточном коде Rust улавливает состояние гонки во время компиляции, делая параллелизм более простым в использовании. В этой книге, написанной двумя опытными системными программистами, объясняется, как Rust удается преодолеть разрыв между эффективностью и безопасностью и как вы можете это использовать.
Rust is a new systems programming language that combines the performance and low-level control of C and C++ with memory safety and thread safety. Rust’s modern, flexible types ensure your program is free of null pointer dereferences, double frees, dangling pointers, and similar bugs, all at compile time, without runtime overhead. In multi-threaded code, Rust catches data races at compile time, making concurrency much easier to use.
Written by two experienced systems programmers, this book explains how Rust manages to bridge the gap between performance and safety, and how you can take advantage of it. Topics include:
How Rust represents values in memory (with diagrams)
Complete explanations of ownership, moves, borrows, and lifetimes
Cargo, rustdoc, unit tests, and how to publish your code on crates.io, Rust’s public package repository
High-level features like generic code, closures, collections, and iterators that make Rust productive and flexible
Concurrency in Rust: threads, mutexes, channels, and atomics, all much safer to use than in C or C++
Unsafe code, and how to preserve the integrity of ordinary code that uses it
Extended examples illustrating how pieces of the language fit together
Оригинальное название: Programming Rust: Fast, Safe Systems Development
Жанр: программирование
Автор: Jim Blandy, Jason Orendorff
Год издания: 2017
Издательство: O'Reilly Media
Формат: pdf
Язык: английский
Количество страниц: 621
Размер архивов (файлов): 10.19 MB
Скачать:
samtronov
Gianias
Serge 50
спасибо
помним и любим