Asynchronous Programming in Rust: Learn asynchronous programming by building working examples of futures, green threads, and runtimes (Paperback)
Samson, Carl Fredrik
- 出版商: Packt Publishing
- 出版日期: 2024-02-09
- 售價: $1,600
- 貴賓價: 9.5 折 $1,520
- 語言: 英文
- 頁數: 306
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1805128132
- ISBN-13: 9781805128137
-
相關分類:
Rust 語言
立即出貨 (庫存=1)
買這商品的人也買了...
相關主題
商品描述
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,打造自己的運行時,並在處理堆疊、ABIs、系統調用和內聯組合語言方面表現出色
- 購買印刷版或Kindle電子書,即可獲得免費的PDF電子書
書籍描述:
通過這本實踐指南,自信地進入非同步程式設計的世界,克服概念不清晰的挑戰。本書使用實用範例簡化最棘手的概念,探索goroutines、fibers、futures和callbacks等,以幫助您輕鬆地遨遊於龐大的Rust非同步生態系統中。
您將從建立非同步程式設計的堅實基礎開始,並探索多種建模程式流程的策略。本書將引導您通過語言實現,使用實際範例解釋epoll、stackfull coroutines、green threads和callbacks等概念。最後一部分專注於Rust,探討futures、generators和反應器-執行器模式。您將應用所學知識創建自己的運行時,從而鞏固在這個動態領域的專業知識。在整本書中,您不僅將熟練掌握Rust的非同步功能,還將了解Rust如何建模非同步程式流程。
通過閱讀本書,您將具備所需的知識和實踐技能,能夠積極參與Rust非同步生態系統。
學到什麼:
- 探索非同步程式流程的本質及其重要性
- 理解並區分並行和併發的差異
- 瞭解計算機和操作系統如何處理並行任務
- 揭示async/await的機制
- 通過自己實現futures來理解Rust的futures
- 從頭開始實現green threads,徹底理解它們
適合對象:
本書適合希望增進對非同步程式設計的理解的程式設計師,特別是那些有C#、Java、Python、JavaScript和Go等虛擬機或解釋語言經驗的人。如果您使用C或C++,但對非同步程式設計的接觸有限,本書將成為擴展您在此領域知識的資源。
儘管範例主要使用Rust,但詳細介紹了Rust的futures的細節。因此,任何對學習Rust有濃厚興趣或對Rust有工作經驗的人都能從本書中獲益最大。