The Parallel typeclass in Cats - Scala tutorial
Автор: Jakub Kozłowski
Загружено: 2020-09-21
Просмотров: 4244
Описание:
In this video, you'll learn about the Parallel typeclass: what problem it solves, how it's implemented in Cats, and how it can be used in your programs. You'll also see what the relationship between Either and Validated is and why they are distinct types.
If you liked the video, please like and subscribe!
Examples (mostly non working snippets, but could help for copy-pasteability): https://github.com/kubukoz/videos/blo...
Table of contents:
0:00 - Introduction, a bit of history
0:51 - Case study: Either accumulation
4:01 - Case study: IO parallelism
5:31 - Looking for a common abstraction
6:42 - Possible solution: Applicative?
7:15 - The problem with Applicative
7:48 - Introducing Parallel
10:57 - Final result
11:31 - NonEmptyParallel
12:08 - Summary, parting words
If you want more:
Parallel documentation: https://typelevel.org/cats/typeclasse...
IO parallelism: https://typelevel.org/cats-effect/dat...
Validated documentation: https://typelevel.org/cats/datatypes/... - in there you'll find withEither, which is another way of temporarily converting Validated to Either.Either, Validated, and Parallel (blog) - https://timushev.com/posts/2019/09/24...
Why Parallel (blog) - https://meta.plasm.us/posts/2019/09/1...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: