Rust Essentials Second Edition
暫譯: Rust 基礎精要(第二版)
Ivo Balbaert
- 出版商: Packt Publishing
- 出版日期: 2017-11-07
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 264
- 裝訂: Paperback
- ISBN: 1788390016
- ISBN-13: 9781788390019
-
相關分類:
Rust 語言、程式語言
海外代購書籍(需單獨結帳)
商品描述
Key Features
- Get started with Rust to build scalable and high performance applications
- Learn how to create secure and blazingly fast programs in Rust
- Discover the power of Rust when developing concurrent applications for large and scalable software
Book Description
Rust is the new, open source, fast and safe systems programming language for the 21st century, developed at Mozilla Research, and with a steadily growing community. It was created to solve the dilemma between high-level, slow code with minimal control over the system, and low-level, fast code with maximum system control. "Rust Essentials" will give you a head start to solve systems programming and application tasks with Rust. It is no longer necessary to learn C / C++ to develop resource intensive and low-level systems applications.
This book starts off with an argumentation of Rust's unique place in today's landscape of programming languages. We'll install Rust and learn how to work with its package manager Cargo. Step by step the various concepts are introduced: variables, types, functions, and control structures lay the groundwork. Then we explore more structured data like strings, arrays, and enums and see how pattern matching works. Throughout all this, the unique ways of reasoning the Rust compiler uses to produce safe code are stressed. Rust's specific way of error handling is discussed next, and the overall importance of traits in Rust code. The pillar of memory safety is treated in depth by looking at the various pointer kinds. Next, we see how macros can simplify code generation, and how to compose bigger projects with modules and crates. Finally, we see how we can write safe concurrent code in Rust, look at how to interface with C programs, get a view on the Rust ecosystem and explore the use of the standard library.
What you will learn
- Set up your Rust environment to achieve the highest productivity
- Bridge the performance gap between safe and unsafe languages
- Use pattern matching to create flexible code
- Apply generics and traits to develop widely applicable code
- Organize your code in modules and crates
- Build macros to extend Rust's capabilities and reach
- Apply tasks to tackle problems concurrently in a distributed environment
商品描述(中文翻譯)
**主要特點**
- 開始使用 Rust 來構建可擴展和高效能的應用程式
- 學習如何在 Rust 中創建安全且極速的程式
- 發現 Rust 在開發大型和可擴展軟體的並發應用程式時的強大功能
**書籍描述**
Rust 是一種新興的開源、快速且安全的系統程式設計語言,為 21 世紀而生,由 Mozilla Research 開發,並擁有穩定增長的社群。它的創建旨在解決高階、緩慢的程式碼與對系統控制最小的低階、快速程式碼之間的兩難。「Rust Essentials」將幫助你快速入門,解決系統程式設計和應用程式任務。開發資源密集型和低階系統應用程式不再需要學習 C / C++。
本書首先論述 Rust 在當今程式語言中的獨特地位。我們將安裝 Rust 並學習如何使用其套件管理工具 Cargo。逐步介紹各種概念:變數、類型、函數和控制結構奠定基礎。接著,我們探索更結構化的數據,如字串、陣列和列舉,並了解模式匹配的運作方式。在這整個過程中,強調 Rust 編譯器用來生成安全程式碼的獨特推理方式。接下來討論 Rust 特有的錯誤處理方式,以及 traits 在 Rust 程式碼中的整體重要性。深入探討記憶體安全的支柱,查看各種指標類型。接著,我們將看到宏如何簡化程式碼生成,以及如何使用模組和 crate 組織更大的專案。最後,我們將學習如何在 Rust 中編寫安全的並發程式碼,了解如何與 C 程式介面,瞭解 Rust 生態系統並探索標準庫的使用。
**你將學到的內容**
- 設置你的 Rust 環境以達到最高生產力
- 橋接安全語言與不安全語言之間的性能差距
- 使用模式匹配創建靈活的程式碼
- 應用泛型和 traits 開發廣泛適用的程式碼
- 在模組和 crate 中組織你的程式碼
- 構建宏以擴展 Rust 的功能和範圍
- 應用任務以在分散式環境中並行解決問題