Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

Overview of parallelism solutions

If you remember, the Applicative type class gives us an abstraction to define parallel computations. It was set against the Monad class, which is an abstraction to define sequential computational.

In the Type Classes section in Chapter 8, Basic Type Classes and Their Usage, we reasoned that Applicatives are needed to provide you with a primitive to define independent computational. Parallelism can also be modeled by the Applicative. However, it is precisely the idea of independence for motivating force behind this type class.

Parallelism and concurrency require a different approach. They give rise to problems that are not normally encountered in sequential programming, and these problems have their own techniques ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content