Rust Essentials Second Edition
Ivo Balbaert
- 出版商: Packt Publishing
- 出版日期: 2017-11-07
- 售價: $1,970
- 貴賓價: 9.5 折 $1,872
- 語言: 英文
- 頁數: 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基礎》將讓您快速入門,使用Rust解決系統程式設計和應用程式任務。現在不再需要學習C / C++來開發資源密集型和低層次的系統應用程式。
本書首先論證了Rust在當今程式語言領域中的獨特地位。我們將安裝Rust並學習如何使用其套件管理器Cargo。逐步介紹各種概念:變數、類型、函數和控制結構奠定了基礎。然後,我們探索更結構化的數據,如字符串、數組和枚舉,並了解模式匹配的工作原理。在此過程中,強調了Rust編譯器用於生成安全程式碼的獨特推理方式。接下來討論了Rust特有的錯誤處理方式,以及特徵在Rust程式碼中的整體重要性。通過查看各種指標類型,深入探討了內存安全的基石。接下來,我們將看到如何使用宏簡化程式碼生成,以及如何使用模組和crate組合更大的專案。最後,我們將看到如何在Rust中編寫安全的並行程式碼,瞭解如何與C程式互操作,瞭解Rust生態系統的使用,並探索標準庫的使用。
你將學到什麼
- 設置Rust環境以實現最高生產力
- 彌合安全和不安全語言之間的性能差距
- 使用模式匹配創建靈活的程式碼
- 應用泛型和特徵開發廣泛適用的程式碼
- 將程式碼組織成模組和crate
- 建立宏以擴展Rust的功能和範圍
- 應用任務以在分散環境中並行處理問題