Simon Marlow - Parallel and Concurrent Programming in Haskell [2013, PDF, ENG]

Страницы:  1
Ответить
 

prishlec

Стаж: 18 лет 10 месяцев

Сообщений: 15


prishlec · 17-Янв-14 12:34 (11 лет 6 месяцев назад)

Parallel and Concurrent Programming in Haskell
Год: 2013
Автор: Simon Marlow
Издательство: O'Reilly
ISBN: 1-4493-3589-6
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 321
Описание:
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
Примеры страниц
Оглавление
Chapter 1 Introduction
Terminology: Parallelism and Concurrency
Tools and Resources
Sample Code
Parallel Haskell
Chapter 2 Basic Parallelism: The Eval Monad
Lazy Evaluation and Weak Head Normal Form
The Eval Monad, rpar, and rseq
Example: Parallelizing a Sudoku Solver
Deepseq
Chapter 3 Evaluation Strategies
Parameterized Strategies
A Strategy for Evaluating a List in Parallel
Example: The K-Means Problem
GC’d Sparks and Speculative Parallelism
Parallelizing Lazy Streams with parBuffer
Chunking Strategies
The Identity Property
Chapter 4 Dataflow Parallelism: The Par Monad
Example: Shortest Paths in a Graph
Pipeline Parallelism
Example: A Conference Timetable
Example: A Parallel Type Inferencer
Using Different Schedulers
The Par Monad Compared to Strategies
Chapter 5 Data Parallel Programming with Repa
Arrays, Shapes, and Indices
Operations on Arrays
Example: Computing Shortest Paths
Folding and Shape-Polymorphism
Example: Image Rotation
Summary
Chapter 6 GPU Programming with Accelerate
Overview
Arrays and Indices
Running a Simple Accelerate Computation
Scalar Arrays
Indexing Arrays
Creating Arrays Inside Acc
Zipping Two Arrays
Constants
Example: Shortest Paths
Example: A Mandelbrot Set Generator
Concurrent Haskell
Chapter 7 Basic Concurrency: Threads and MVars
A Simple Example: Reminders
Communication: MVars
MVar as a Simple Channel: A Logging Service
MVar as a Container for Shared State
MVar as a Building Block: Unbounded Channels
Fairness
Chapter 8 Overlapping Input/Output
Exceptions in Haskell
Error Handling with Async
Merging
Chapter 9 Cancellation and Timeouts
Asynchronous Exceptions
Masking Asynchronous Exceptions
The bracket Operation
Asynchronous Exception Safety for Channels
Timeouts
Catching Asynchronous Exceptions
mask and forkIO
Asynchronous Exceptions: Discussion
Chapter 10 Software Transactional Memory
Running Example: Managing Windows
Blocking
Blocking Until Something Changes
Merging with STM
Async Revisited
Implementing Channels with STM
An Alternative Channel Implementation
Bounded Channels
What Can We Not Do with STM?
Performance
Summary
Chapter 11 Higher-Level Concurrency Abstractions
Avoiding Thread Leakage
Symmetric Concurrency Combinators
Adding a Functor Instance
Summary: The Async API
Chapter 12 Concurrent Network Servers
A Trivial Server
Extending the Simple Server with State
A Chat Server
Chapter 13 Parallel Programming Using Threads
How to Achieve Parallelism with Concurrency
Example: Searching for Files
Chapter 14 Distributed Programming
The Distributed-Process Family of Packages
Distributed Concurrency or Parallelism?
A First Example: Pings
Multi-Node Ping
Typed Channels
Handling Failure
A Distributed Chat Server
Exercise: A Distributed Key-Value Store
Chapter 15 Debugging, Tuning, and Interfacing with Foreign Code
Debugging Concurrent Programs
Tuning Concurrent (and Parallel) Programs
Concurrency and the Foreign Function Interface
Colophon
Download
Rutracker.org не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм
Как скачивать? (для скачивания .torrent файлов необходима регистрация)
[Профиль]  [ЛС] 

canonical

Стаж: 16 лет

Сообщений: 1


canonical · 17-Янв-14 13:49 (спустя 1 час 15 мин., ред. 17-Янв-14 13:49)

А в чем заключается отличие от https://rutr.life/forum/viewtopic.php?t=4495169 ?
[Профиль]  [ЛС] 

prishlec

Стаж: 18 лет 10 месяцев

Сообщений: 15


prishlec · 17-Янв-14 14:18 (спустя 28 мин., ред. 17-Янв-14 14:18)

Видимо, ни в чем.
Странно. Вроде поиском прошел сначала.
Просьба модераторам.
Удалите тему.
[Профиль]  [ЛС] 

$aid

Стаж: 15 лет 6 месяцев

Сообщений: 400


$aid · 19-Май-14 13:06 (спустя 4 месяца 1 день)

canonical
Здесь на 1Mb книга толще.
[Профиль]  [ЛС] 

qfzq

Стаж: 9 лет 1 месяц

Сообщений: 2


qfzq · 16-Июн-16 16:01 (спустя 2 года, ред. 16-Июн-16 16:01)

не удаляйте раздачу. в другой раздаче на стр 117 картинка испорчена (в этой - нормально)
[Профиль]  [ЛС] 
 
Ответить
Loading...
Error