Parallel and Concurrent Programming in Haskell: Techniques for Multicore and Multithreaded Programming (Paperback)

Simon Marlow

  • 出版商: O'Reilly
  • 出版日期: 2013-09-17
  • 定價: $1,840
  • 售價: 9.5$1,748
  • 貴賓價: 9.0$1,656
  • 語言: 英文
  • 頁數: 322
  • 裝訂: Paperback
  • ISBN: 1449335942
  • ISBN-13: 9781449335946
  • 相關分類: Functional-programming
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

If you have a working knowledge of Haskell, this hands-on book shows you how to use the language’s many APIs and frameworks for writing both parallel and concurrent programs. You’ll learn how parallelism exploits multicore processors to speed up computation-heavy programs, and how concurrency enables you to write programs with threads for multiple interactions.

Author Simon Marlow walks you through the process with lots of code examples that you can run, experiment with, and extend. Divided into separate sections on Parallel and Concurrent Haskell, this book also includes exercises to help you become familiar with the concepts presented:

  • Express parallelism in Haskell with the Eval monad and Evaluation Strategies
  • Parallelize ordinary Haskell code with the Par monad
  • Build parallel array-based computations, using the Repa library
  • Use the Accelerate library to run computations directly on the GPU
  • Work with basic interfaces for writing concurrent code
  • Build trees of threads for larger and more complex programs
  • Learn how to build high-speed concurrent network servers
  • Write distributed programs that run on multiple machines in a network

商品描述(中文翻譯)

如果您對 Haskell 有基本的了解,這本實踐手冊將向您展示如何使用該語言的多個 API 和框架來撰寫並行和並發程式。您將學習並行性如何利用多核處理器加速計算密集型程式,以及並發性如何讓您編寫具有多個互動線程的程式。

作者 Simon Marlow 通過大量的程式碼示例引導您進行操作,您可以運行、實驗和擴展這些示例。本書分為並行 Haskell 和並發 Haskell 兩個獨立的部分,還包括練習題,幫助您熟悉所介紹的概念:

- 使用 Eval Monad 和評估策略在 Haskell 中表達並行性
- 使用 Par Monad 並行化普通的 Haskell 程式碼
- 使用 Repa 庫構建基於陣列的並行計算
- 使用 Accelerate 庫直接在 GPU 上運行計算
- 使用基本介面編寫並發程式碼
- 構建用於更大和更複雜程式的線程樹
- 學習如何構建高速並發網絡伺服器
- 編寫在網絡中多台機器上運行的分散程式