Hands-On Concurrency with Rust (Paperback)
暫譯: Rust 實戰:並發編程

Brian L. Troutwine

  • 出版商: Packt Publishing
  • 出版日期: 2018-05-31
  • 售價: $2,000
  • 貴賓價: 9.5$1,900
  • 語言: 英文
  • 頁數: 462
  • 裝訂: Paperback
  • ISBN: 1788399978
  • ISBN-13: 9781788399975
  • 相關分類: Rust 語言JVM 語言
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

Get to grips with modern software needs by learning the effective uses of Rust's powerful memory safety

Key Features

  • Learn how To benchmark and improve the sequential performance characteristics of your software
  • Understand the use of operating system processes in a high-scale concurrent system and manage them effectively.
  • The book will explore a variety of coordination methods available in the standard library as well as a sampling of those available in the growing Crate ecosystem.

Book Description

Modern computers are deeply curious machines. Although difficult, they can be exploited with languages designed for serial CPUs with care and dedication. Rust reduces the burden to the programmer without sacrificing the accuracy or performance of the computer. This book will teach you to build memory-safe and concurrent software in Rust efficiently.

The book starts with the fundamentals of Rust and discusses machine architecture concepts. You will be taken through ways to measure and improve performance of Rust code systematically and how to write collections with confidence. You will learn about the Sync and Send traits applied to threads and coordinating thread execution with locks. The book will show you how to efficiently embed Rust in C++ code and the functionalities of various crates for multithreaded applications. It will do a deep interrogation of key implementations - of a channel, mutex and skiplist - in Rust.. You will be familiarized with radically different alternative approaches that exist in the ecosystem for structuring and managing high-scale systems.

By the end, you will feel comfortable designing a safe, consistent, high-performant and concurrent application in Rust.

What you will learn

  • Interactions of Rust structures with CPU caches and OS specific tooling to measure code performance 
  • The working of Rust's memory model to write collections - owning and referring.
  • How to use built-in MPSC without hitting the common stumbling points for new Rust programmers.
  • Use atomics to solve common related to scare resource management situation
  • Effectively use locks available in the Rust standard library so as to use them in solving coordination problems
  • Use the POSIX threading interface to perform thread pinning and the like

Who This Book Is For

This book is aimed at software engineers with a basic understanding of Rust who want to exploit the parallel and concurrent nature of modern computing environments, safely.

商品描述(中文翻譯)

**掌握現代軟體需求,學習 Rust 強大記憶體安全的有效應用**

**主要特點**

- 學習如何基準測試並改善軟體的序列性能特徵
- 理解在高規模併發系統中操作系統進程的使用並有效管理它們
- 本書將探討標準庫中可用的各種協調方法,以及在不斷增長的 Crate 生態系統中可用的一些方法

**書籍描述**

現代電腦是極具好奇心的機器。雖然困難,但可以透過為串行 CPU 設計的語言,經過謹慎和專注的方式來利用它們。Rust 減輕了程式設計師的負擔,而不犧牲電腦的準確性或性能。本書將教你如何有效地在 Rust 中構建記憶體安全和併發的軟體。

本書從 Rust 的基本概念開始,並討論機器架構的概念。你將系統性地學習如何測量和改善 Rust 代碼的性能,以及如何自信地編寫集合。你將了解應用於執行緒的 Sync 和 Send traits,以及如何使用鎖來協調執行緒的執行。本書將展示如何有效地將 Rust 嵌入 C++ 代碼中,以及各種 Crate 在多執行緒應用中的功能。它將深入探討 Rust 中的關鍵實現 - 通道、互斥鎖和跳表。你將熟悉生態系統中存在的結構和管理高規模系統的截然不同的替代方法。

到最後,你將能夠自信地設計一個安全、一致、高效能且具併發性的 Rust 應用。

**你將學到的內容**

- Rust 結構與 CPU 快取及操作系統特定工具的互動,以測量代碼性能
- Rust 的記憶體模型的運作,以編寫集合 - 擁有和引用
- 如何使用內建的 MPSC,而不會遇到新 Rust 程式設計師常見的障礙
- 使用原子操作來解決與稀缺資源管理相關的常見問題
- 有效使用 Rust 標準庫中可用的鎖,以解決協調問題
- 使用 POSIX 執行緒介面來執行執行緒固定等操作

**本書適合誰**

本書針對對 Rust 有基本了解的軟體工程師,旨在安全地利用現代計算環境的並行和併發特性。