Pure parallelism (Haskell Unfolder #47)
Автор: Well-Typed
Загружено: 2025-07-23
Просмотров: 1691
"Pure parallelism" refers to the execution of pure Haskell functions on multiple
CPU cores, (hopefully) speeding up the computation. Since we are still dealing
with pure functions, however, we get none of the problems normally associated
with concurrent execution: no non-determinism, no need for locks, etc.
In this episode we will develop a pure but parallel implementation of linear
regression. We will briefly recap how linear regression works, before discussing
the two primitive functions that Haskell offers for pure parallelism: `par` and
`pseq`.
References:
"Seq no more: Better Strategies for Parallel Haskell", Simon Marlow et al., Haskell Symposium 2010. https://simonmar.github.io/bib/papers...
"Proof: Ordinary least squares for simple linear regression", Joram Soch et al. https://statproofbook.github.io/P/slr...
"What Textbooks Don't Tell You About Curve Fitting", Artem Kirsanov. • What Textbooks Don't Tell You About Curve ...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: