Mastering Rust: Learn about memory safety, type system, concurrency, and the new features of Rust 2018 edition, 2/e (Paperback)
暫譯: 精通 Rust:了解記憶體安全、類型系統、併發及 Rust 2018 版的新特性,第二版(平裝本)
Rahul Sharma, Vesa Kaihlavirta
- 出版商: Packt Publishing
- 出版日期: 2019-01-31
- 售價: $1,750
- 貴賓價: 9.5 折 $1,663
- 語言: 英文
- 頁數: 554
- 裝訂: Paperback
- ISBN: 1789346576
- ISBN-13: 9781789346572
-
相關分類:
Rust 語言、程式語言
-
相關翻譯:
精通 Rust, 2/e (Mastering Rust: Learn about memory safety, type system, concurrency, and the new features of Rust 2018 edition, 2/e) (簡中版)
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$2,500$2,375 -
$403OpenCV 3 編程入門
-
$450$356 -
$888Rust Cookbook
-
$1,500$1,425 -
$1,840$1,748 -
$1,360$1,292
商品描述
Become proficient in designing, developing and deploying effective software systems using the advanced constructs of Rust
Key Features
- Improve your productivity using the latest version of Rust and write simpler and easier code
- Understand Rust's immutability and ownership principle, expressive type system, safe concurrency
- Deep dive into the new doamins of Rust like WebAssembly, Networking and Command line tools
Book Description
Rust is an empowering language that provides a rare combination of safety, speed, and zero-cost abstractions. Mastering Rust – Second Edition is filled with clear and simple explanations of the language features along with real-world examples, showing you how you can build robust, scalable, and reliable programs.
This second edition of the book improves upon the previous one and touches on all aspects that make Rust a great language. We have included the features from latest Rust 2018 edition such as the new module system, the smarter compiler, helpful error messages, and the stable procedural macros. You'll learn how Rust can be used for systems programming, network programming, and even on the web. You'll also learn techniques such as writing memory-safe code, building idiomatic Rust libraries, writing efficient asynchronous networking code, and advanced macros. The book contains a mix of theory and hands-on tasks so you acquire the skills as well as the knowledge, and it also provides exercises to hammer the concepts in.
After reading this book, you will be able to implement Rust for your enterprise projects, write better tests and documentation, design for performance, and write idiomatic Rust code.
What you will learn
- Write generic and type-safe code by using Rust's powerful type system
- How memory safety works without garbage collection
- Know the different strategies in error handling and when to use them
- Learn how to use concurrency primitives such as threads and channels
- Use advanced macros to reduce boilerplate code
- Create efficient web applications with the Actix-web framework
- Use Diesel for type-safe database interactions in your web application
Who this book is for
The book is aimed at beginner and intermediate programmers who already have familiarity with any imperative language and have only heard of Rust as a new language. If you are a developer who wants to write robust, efficient and maintainable software systems and want to become proficient with Rust, this book is for you. It starts by giving a whirlwind tour of the important concepts of Rust and covers advanced features of the language in subsequent chapters using code examples that readers will find useful to advance their knowledge.
Table of Contents
- Getting started with Rust
- Managing projects with cargo
- Tests, documentation and benchmarks
- Types, generics and traits
- Memory management and safety
- Error handling
- Advanced Topics
- Concurrency
- Metaprogramming with Macros
- Unsafe Rust and foreign function interfaces
- Logging
- Network programming in Rust: Sync and Async IO
- Building web applications with Rust
- Interacting with databases in Rust
- Rust on the web using WebAssembly
- Gui development with Rust
- Debugging
商品描述(中文翻譯)
熟練設計、開發和部署有效的軟體系統,使用 Rust 的進階結構
主要特點
- 使用最新版本的 Rust 提高生產力,編寫更簡單易懂的程式碼
- 理解 Rust 的不可變性和所有權原則、表達性型別系統、安全的並發性
- 深入探索 Rust 的新領域,如 WebAssembly、網路和命令列工具
書籍描述
Rust 是一種強大的語言,提供了安全性、速度和零成本抽象的罕見組合。《掌握 Rust(第二版)》充滿了對語言特性的清晰簡單解釋,以及實際範例,展示了如何構建穩健、可擴展和可靠的程式。
本書的第二版在前一版的基礎上進行了改進,涵蓋了使 Rust 成為優秀語言的各個方面。我們包含了最新 Rust 2018 版本的特性,如新的模組系統、更智能的編譯器、有用的錯誤訊息和穩定的過程宏。您將學習如何將 Rust 用於系統程式設計、網路程式設計,甚至是網頁開發。您還將學習編寫記憶體安全的程式碼、構建符合 Rust 語言習慣的函式庫、編寫高效的非同步網路程式碼和進階宏等技術。本書包含理論與實作任務的混合,讓您獲得技能和知識,並提供練習以加強概念。
閱讀完本書後,您將能夠在企業專案中實現 Rust,編寫更好的測試和文檔,設計高效能的程式,並撰寫符合 Rust 語言習慣的程式碼。
您將學到什麼
- 使用 Rust 強大的型別系統編寫通用和類型安全的程式碼
- 了解記憶體安全如何在沒有垃圾回收的情況下運作
- 知道不同的錯誤處理策略及其使用時機
- 學習如何使用並發原語,如執行緒和通道
- 使用進階宏來減少樣板程式碼
- 使用 Actix-web 框架創建高效的網頁應用程式
- 在您的網頁應用程式中使用 Diesel 進行類型安全的資料庫互動
本書適合誰
本書針對已經熟悉任何命令式語言的初學者和中級程式設計師,並且僅聽說過 Rust 作為一種新語言。如果您是一位希望編寫穩健、高效且可維護的軟體系統的開發者,並希望熟練掌握 Rust,這本書適合您。它首先提供了 Rust 重要概念的快速導覽,並在隨後的章節中使用程式碼範例涵蓋語言的進階特性,幫助讀者提升知識。
目錄
- 開始使用 Rust
- 使用 cargo 管理專案
- 測試、文檔和基準測試
- 型別、泛型和特徵
- 記憶體管理和安全性
- 錯誤處理
- 進階主題
- 並發性
- 使用宏進行元程式設計
- 不安全的 Rust 和外部函式介面
- 日誌記錄
- Rust 的網路程式設計:同步和非同步 IO
- 使用 Rust 構建網頁應用程式
- 在 Rust 中與資料庫互動
- 使用 WebAssembly 在網頁上運行 Rust
- 使用 Rust 進行 GUI 開發
- 除錯