Asynchronous Programming in Rust: Learn asynchronous programming by building working examples of futures, green threads, and runtimes (Paperback)
暫譯: Rust中的非同步程式設計:透過構建未來、綠色執行緒和執行環境的實作範例學習非同步程式設計(平裝本)
Samson, Carl Fredrik
- 出版商: Packt Publishing
- 出版日期: 2024-02-09
- 售價: $1,980
- 貴賓價: 9.5 折 $1,881
- 語言: 英文
- 頁數: 306
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1805128132
- ISBN-13: 9781805128137
-
相關分類:
Rust 語言、程式語言
立即出貨 (庫存=1)
買這商品的人也買了...
-
$580$452 -
$653Linux 多線程服務端編程:使用 muduo C++ 網絡庫
-
$1,530$1,454 -
$480$379 -
$1,888Database Internals: A Deep Dive Into How Distributed Data Systems Work (Paperback)
-
$1,200$840 -
$980$774 -
$1,654Rust for Rustaceans: Idiomatic Programming for Experienced Developers (Paperback)
-
$780$546 -
$1,200$948 -
$780$616 -
$1,180$900 -
$450$383
商品描述
Get a fundamental understanding of asynchronous programming and Rust's futures by working through examples that show you how everything really works
Key Features:
- Master asynchronous Rust through examples focusing on key concepts
- Build a solid understanding of concepts such as goroutines, fibers, futures, and callbacks
- Explore Rust's futures, craft your runtime, and excel in handling stacks, ABIs, syscalls, and inline assembly
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
Step into the world of asynchronous programming with confidence by conquering the challenges of unclear concepts with this hands-on guide. Using functional examples, this book simplifies the trickiest concepts, exploring goroutines, fibers, futures, and callbacks to help you navigate the vast Rust's async ecosystem with ease.
You'll start by building a solid foundation in asynchronous programming and explore diverse strategies for modeling program flow. The book then guides you through language implementations, explaining concepts like epoll, stackfull coroutines, green threads, and callbacks using practical examples. The final section focuses on Rust, examining futures, generators, and the reactor-executor pattern. You'll apply your knowledge to create your runtime, solidifying expertise in this dynamic domain. Throughout the book, you'll not only gain proficiency in Rust's async features but also see how Rust models asynchronous program flow.
By the end of the book, you'll possess the knowledge and practical skills needed to actively contribute to the Rust async ecosystem.
What You Will Learn:
- Explore the essence of asynchronous program flow and its significance
- Understand the difference between concurrency and parallelism
- Gain insights into how computers and operating systems handle concurrent tasks
- Uncover the mechanics of async/await
- Understand Rust's futures by implementing them yourself
- Implement green threads from scratch to thoroughly understand them
Who this book is for:
This book is for programmers who want to enhance their understanding of asynchronous programming, especially those experienced in VM'ed or interpreted languages like C#, Java, Python, JavaScript, and Go. If you work with C or C++ but have had limited exposure to asynchronous programming, this book serves as a resource to broaden your knowledge in this area.
Although the examples are predominantly in Rust, the intricacies of Rust's futures are covered in detail. So, anyone with a keen interest in learning Rust or with working knowledge of Rust will be able to get the most out of this book.
商品描述(中文翻譯)
透過實作範例深入了解非同步程式設計及 Rust 的 futures,讓你了解一切是如何運作的
主要特色:
- 透過專注於關鍵概念的範例掌握非同步 Rust
- 建立對 goroutines、fibers、futures 和 callbacks 等概念的扎實理解
- 探索 Rust 的 futures,打造你的執行環境,並精通處理堆疊、ABI、系統呼叫和內聯組合語言
- 購買印刷版或 Kindle 版書籍可獲得免費 PDF 電子書
書籍描述:
自信地踏入非同步程式設計的世界,透過這本實作指南克服不清楚的概念挑戰。這本書使用功能性範例,簡化最棘手的概念,探索 goroutines、fibers、futures 和 callbacks,幫助你輕鬆導航廣大的 Rust 非同步生態系統。
你將從建立非同步程式設計的堅實基礎開始,探索多樣的程式流程建模策略。接著,書中將引導你了解語言實作,使用實際範例解釋 epoll、stackfull coroutines、green threads 和 callbacks 等概念。最後一部分專注於 Rust,檢視 futures、generators 和 reactor-executor 模式。你將應用所學知識創建自己的執行環境,鞏固在這個動態領域的專業知識。在整本書中,你不僅會熟悉 Rust 的非同步特性,還會看到 Rust 如何建模非同步程式流程。
在書籍結束時,你將擁有積極貢獻於 Rust 非同步生態系統所需的知識和實踐技能。
你將學到什麼:
- 探索非同步程式流程的本質及其重要性
- 理解並發性與平行性的區別
- 深入了解電腦和作業系統如何處理並發任務
- 揭示 async/await 的運作機制
- 透過自己實作來理解 Rust 的 futures
- 從零開始實作 green threads 以徹底理解它們
本書適合誰:
這本書適合希望增強對非同步程式設計理解的程式設計師,特別是那些在 C#、Java、Python、JavaScript 和 Go 等虛擬機或解釋型語言方面有經驗的人。如果你使用 C 或 C++ 但對非同步程式設計的接觸有限,這本書將成為擴展你在這方面知識的資源。
雖然範例主要使用 Rust,但 Rust 的 futures 的細節將被詳細涵蓋。因此,任何對學習 Rust 有濃厚興趣或具備 Rust 工作知識的人都能從這本書中獲益良多。