Learning Rust: A comprehensive guide to writing Rust applications
暫譯: 學習 Rust:撰寫 Rust 應用程式的全面指南
Paul Johnson, Vesa Kaihlavirta
- 出版商: Packt Publishing
- 出版日期: 2017-11-24
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 308
- 裝訂: Paperback
- ISBN: 1785884301
- ISBN-13: 9781785884306
-
相關分類:
Rust 語言、程式語言
海外代購書籍(需單獨結帳)
商品描述
Key Features
- Get started with the language to build scalable and high performance applications
- This book will help C#/C++ developers gain better performance and memory management
- Discover the power of Rust when developing concurrent applications for large and scalable software
Book Description
Rust is a highly concurrent and high performance language that focuses on safety and speed, memory management, and writing clean code. It also guarantees thread safety, and its aim is to improve the performance of existing applications. Its potential is shown by the fact that it has been backed by Mozilla to solve the critical problem of concurrency.
Learning Rust will teach you to build concurrent, fast, and robust applications. From learning the basic syntax to writing complex functions, this book will is your one stop guide to get up to speed with the fundamentals of Rust programming. We will cover the essentials of the language, including variables, procedures, output, compiling, installing, and memory handling.
You will learn how to write object-oriented code, work with generics, conduct pattern matching, and build macros. You will get to know how to communicate with users and other services, as well as getting to grips with generics, scoping, and more advanced conditions. You will also discover how to extend the compilation unit in Rust.
By the end of this book, you will be able to create a complex application in Rust to move forward with.
What you will learn
- Set up Rust for Windows, Linux, and OS X
- Write effective code using Rust
- Expand your Rust applications using libraries
- Interface existing non-Rust libraries with your Rust applications
- Use the standard library within your applications
- Understand memory management within Rust and speed efficiency when passing variables
- Create more complex data types
- Study concurrency in Rust with multi-threaded applications and sync threading techniques to improve the performance of an application problem
About the Author
Paul Johnson has been writing software since the early 1980s on machines ranging from the ZX81 and servers to his trusty Mac, and has used more languages than he can remember. He is a qualified scuba diver and college lecturer. Paul lives with his wife, kids, and pets, and listens to an inordinate amount of rock and metal on Primordial Radio. This is his third book for Packt.
Vesa Kaihlavirta has been programming since he was 5, beginning with C64 Basic. His main professional goal in life is to increase awareness about programming languages and software quality in all industries that use software. He's an Arch Linux Developer Fellow and has been working in the telecom and financial industry for over a decade. Vesa lives in Central Finland, in Jyväskylä. Vesa worked on the final editing phase of Learning Rust.
Table of Contents
- Introducing & Installing Rust
- Variables
- Input and Output
- Conditions, Recursion and Loops
- Remember, Remember
- Creating your own Rust applications
- Matching and Structures
- The Rust Application Lifetime
- Introducing Generics and Traits
- Creating your own Crate
- Concurrency in Rust
- Now it’s your turn!
- The standard library
- Foreign Function Interfaces
商品描述(中文翻譯)
**主要特點**
- 開始使用這種語言來構建可擴展和高效能的應用程式
- 本書將幫助 C#/C++ 開發者獲得更好的效能和記憶體管理
- 在開發大型和可擴展軟體的並發應用程式時,發現 Rust 的強大
**書籍描述**
Rust 是一種高度並發和高效能的語言,專注於安全性和速度、記憶體管理以及編寫乾淨的程式碼。它還保證了執行緒安全,其目標是改善現有應用程式的效能。其潛力體現在 Mozilla 支持它以解決並發的關鍵問題。
學習 Rust 將教會你如何構建並發、快速且穩健的應用程式。從學習基本語法到編寫複雜函數,本書是你快速掌握 Rust 程式設計基礎的全方位指南。我們將涵蓋語言的基本要素,包括變數、程序、輸出、編譯、安裝和記憶體處理。
你將學會如何編寫物件導向程式碼、使用泛型、進行模式匹配以及構建宏。你將了解如何與用戶和其他服務進行通信,並掌握泛型、作用域以及更高級的條件。你還將發現如何在 Rust 中擴展編譯單元。
在本書結束時,你將能夠創建一個複雜的 Rust 應用程式以便進一步發展。
**你將學到的內容**
- 在 Windows、Linux 和 OS X 上設置 Rust
- 使用 Rust 編寫有效的程式碼
- 使用庫擴展你的 Rust 應用程式
- 將現有的非 Rust 庫與你的 Rust 應用程式進行介面整合
- 在你的應用程式中使用標準庫
- 理解 Rust 中的記憶體管理以及傳遞變數時的速度效率
- 創建更複雜的資料類型
- 研究 Rust 中的並發,使用多執行緒應用程式和同步執行緒技術來改善應用程式的效能問題
**關於作者**
**Paul Johnson** 自 1980 年代初期開始編寫軟體,使用的機器從 ZX81 和伺服器到他信賴的 Mac,並使用過比他能記得的更多的語言。他是一名合格的潛水員和大學講師。Paul 與妻子、孩子和寵物一起生活,並在 Primordial Radio 上聽著大量的搖滾和金屬音樂。這是他為 Packt 出版的第三本書。
**Vesa Kaihlavirta** 自 5 歲起開始編程,最初使用 C64 Basic。他的主要職業目標是提高對所有使用軟體的行業中程式語言和軟體質量的認識。他是一名 Arch Linux 開發者研究員,並在電信和金融行業工作了十多年。Vesa 住在芬蘭中部的于韋斯基拉。Vesa 參與了《學習 Rust》的最終編輯階段。
**目錄**
1. 介紹與安裝 Rust
2. 變數
3. 輸入與輸出
4. 條件、遞迴與迴圈
5. 記住,記住
6. 創建你自己的 Rust 應用程式
7. 匹配與結構
8. Rust 應用程式的生命週期
9. 介紹泛型與特徵
10. 創建你自己的 Crate
11. Rust 中的並發
12. 現在輪到你了!
13. 標準庫
14. 外部函數介面