O'Reilly logo

Real-World Functional Programming with Examples in F# and C# by Jon Skeet, Tomas Petricek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Writing parallel functional programs

This chapter covers

  • Using immutable data to simplify parallelization
  • Working with the Task Parallel library
  • Expressing parallelism declaratively using LINQ
  • Implementing overloaded operators

We’ve already seen many arguments in favor of functional programming. One reason it’s becoming increasingly important these days is parallelism. Writing code that scales to a large number of cores is much easier in the functional style compared to using the typical imperative approach.

The two concepts from the functional world that are essential for parallel computing are the declarative programming style and working with immutable data structures. These two are closely related. The code becomes more ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required