Rust for Rustaceans: Idiomatic Programming for Experienced Developers (Paperback)
暫譯: Rust 程式設計:資深開發者的慣用編程

Gjengset, Jon

  • 出版商: No Starch Press
  • 出版日期: 2021-12-21
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 280
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1718501854
  • ISBN-13: 9781718501850
  • 相關分類: Rust 語言程式語言
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

相關主題

商品描述

Master professional-level coding in Rust.

For developers who've mastered the basics, this book is the next step on your way to professional-level programming in Rust. It covers everything you need to build and maintain larger code bases, write powerful and flexible applications and libraries, and confidently expand the scope and complexity of your projects.

Author Jon Gjengset takes you deep into the Rust programming language, dissecting core topics like ownership, traits, concurrency, and unsafe code. You'll explore key concepts like type layout and trait coherence, delve into the inner workings of concurrent programming and asynchrony with async/await, and take a tour of the world of no_std programming. Gjengset also provides expert guidance on API design, testing strategies, and error handling, and will help develop your understanding of foreign function interfaces, object safety, procedural macros, and much more.

You'll Learn:
- How to design reliable, idiomatic, and ergonomic Rust programs based on best principles
- Effective use of declarative and procedural macros, and the difference between them
- How asynchrony works in Rust - all the way from the Pin and Waker types used in manual implementations of Futures, to how async/await saves you from thinking about most of those words
- What it means for code to be unsafe, and best practices for writing and interacting with unsafe functions and traits
- How to organize and configure more complex Rust projects so that they integrate nicely with the rest of the ecosystem
- How to write Rust code that can interoperate with non-Rust libraries and systems, or run in constrained and embedded environments

Brimming with practical, pragmatic insights that you can immediately apply, Rust for Rustaceans helps you do more with Rust, while also teaching you its underlying mechanisms.

商品描述(中文翻譯)

掌握專業級的 Rust 編程。

對於已經掌握基礎的開發者來說,這本書是您邁向專業級 Rust 編程的下一步。它涵蓋了您需要的所有內容,以構建和維護更大的代碼庫,編寫強大且靈活的應用程序和庫,並自信地擴展項目的範圍和複雜性。

作者 Jon Gjengset 深入探討 Rust 編程語言,剖析核心主題,如所有權、特徵、併發和不安全代碼。您將探索關鍵概念,如類型佈局和特徵一致性,深入了解併發編程和非同步的內部運作,使用 async/await,並參觀 no_std 編程的世界。Gjengset 還提供有關 API 設計、測試策略和錯誤處理的專業指導,幫助您理解外部函數介面、物件安全、過程宏等更多內容。

您將學到:

- 如何根據最佳原則設計可靠、符合慣用法且符合人體工學的 Rust 程式

- 如何有效使用宣告式和過程宏,以及它們之間的區別

- Rust 中的非同步是如何運作的 - 從手動實現 Futures 所使用的 Pin 和 Waker 類型,到 async/await 如何讓您不必考慮大多數這些術語

- 代碼不安全的含義,以及編寫和與不安全函數和特徵互動的最佳實踐

- 如何組織和配置更複雜的 Rust 項目,以便它們能夠與生態系統的其他部分良好整合

- 如何編寫可以與非 Rust 庫和系統互操作的 Rust 代碼,或在受限和嵌入式環境中運行

充滿實用且務實的見解,您可以立即應用,Rust for Rustaceans 幫助您更好地使用 Rust,同時教您其底層機制。

作者簡介

Jon Gjengset has worked in the Rust ecosystem since the early days of Rust 1.0, and built a high-performance relational database from scratch in Rust over the course of his PhD at MIT. He's been a frequent contributor to the Rust toolchain and ecosystem, including the asynchronous runtime tokio, and maintains several popular Rust crates, such as hdrhistogram and inferno. Jon has been teaching Rust since 2018, when he started live-streaming intermediate-level Rust programming. Since then, he's made videos that cover advanced topics like async and await, pinning, variance, atomics, dynamic dispatch, and more, which have been received enthusiastically by the Rust community.

David Tolnay, who reviewed the book's technical content, is a prolific, well-known, and respected contributor in the Rust ecosystem who maintains some of the most widely used Rust libraries, including syn, serde, and anyhow. He is also a member of the Rust library team.

作者簡介(中文翻譯)

Jon Gjengset 自 Rust 1.0 早期以來一直在 Rust 生態系統中工作,並在麻省理工學院的博士期間從零開始用 Rust 建造了一個高效能的關聯式資料庫。他是 Rust 工具鏈和生態系統的頻繁貢獻者,包括非同步執行環境 tokio,並維護幾個受歡迎的 Rust 套件,如 hdrhistogram 和 inferno。自 2018 年以來,Jon 開始教授 Rust,當時他開始進行中級 Rust 程式設計的直播。此後,他製作了涵蓋高級主題的影片,如 async 和 await、pinning、variance、atomics、dynamic dispatch 等,這些影片受到 Rust 社群的熱烈歡迎。



David Tolnay 是本書技術內容的審稿人,他是 Rust 生態系統中一位多產、知名且受人尊敬的貢獻者,維護一些最廣泛使用的 Rust 函式庫,包括 syn、serde 和 anyhow。他也是 Rust 函式庫團隊的成員。