Parallel and Concurrent Programming in Haskell Techniques for Multicore and Programming Multithreaded 13647

Паперова книга
13647
03.05
2'310
4 людини

Все про “Parallel and Concurrent Programming in Haskell Techniques for Multicore and Programming Multithreaded”

Від видавця

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 монада and Evaluation Strategies Parallelize ordinary Haskell code with the Par monad Build parallel array-based computations, using the library Repa 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 programs complex 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 Монада
Lazy Evaluation and Weak Head Normal Form
The Eval Монада, 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 Монада
Example: Shortest Paths in a Graph
Pipeline Parallelism
Example: A Conference Timetable
Example: A Parallel Type Inferencer
Using Different Schedulers
The Par Монада Compared to Strategies
Chapter 5 : Data Parallel Programming with Repa
Arrays, Shapes, and Indicators
Operations on Arrays
Example: Computing Shortest Paths
Folding and Shape-Polymorphіsm
Example: Image Rotation
Summary
Chapter 6 : GPU Programming with Accelerate
Overview
Arrays and Indicators
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 Do Not with STM?
Performance
Summary
Chapter 11 : Higher Level Concurrency Abstractions
Avoiding Thread Leakage
Symmetric Concurrency Комбінатори
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

Анотація

Parallel and Concurrent Programming in Haskell Techniques for Multicore and Programming Multithreaded

Рецензії

0

Всі характеристики

Товар входить до категорії

  • Самовивіз з відділень поштових операторів від 45 ₴ - 80 ₴
  • Доставка поштовими сервісами - тарифи перевізника
Схожі товари
Hands-on Rust: Effective Learning through 2D Game Development and Play. 1st Ed.
244804
Herbert Wolverson
1'700 ₴
Powerful Command-Line Applications in Go. Build Fast and Maintainable Tools. 1st Ed.
244806
Ricardo Gerardi
1'800 ₴
Introducing Microsoft Quantum Computing for Developers. Using the Quantum Development Kit and Q#. 1st Ed.
244686
Johnny Hooyberghs
1'900 ₴
Learn JavaFX 17. Building User Experience and Interfaces with Java. 2nd Ed.
244696
Kishori Sharan, Peter Sp?th
2'100 ₴
Practical Rust Projects: Build Serverless, AI, Machine Learning, Embedded, Game, and Web Applications 2nd ed. Edition
255276
Shing LyuAndrew Rzeznik
2'100 ₴
Go for Java Programmers: Learn the Google Go Programming Language. 1st Ed.
244681
Barry Feigenbaum, Ph.D.
2'200 ₴
Pro Jakarta Persistence in Jakarta EE 10. An In-Depth Guide to Persistence in Enterprise Java Development. 4th Ed.
244722
Lukas Jungmann, Mike Keith
2'200 ₴
iOS 15 Programming Fundamentals with Swift: Swift, Xcode, and Cocoa Basics. 1st Ed.
244758
Matt Neuberg
2'200 ₴
Pro Go. The Complete Guide to Programming Reliable and Efficient Software Using Golang. 1st Ed.
244721
Adam Freeman
2'500 ₴
Head First Swift. A Learner's Guide to Programming with Swift. 1st Ed.
244755
Paris Buttfield-Addison, Jon Manning
2'500 ₴