https://github.com/systemfw/scala-italy-2019
https://github.com/systemfw/scala-italy-2019
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/systemfw/scala-italy-2019
- Owner: SystemFw
- Created: 2019-09-21T00:20:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-21T22:23:36.000Z (over 6 years ago)
- Last Synced: 2025-04-02T08:36:20.769Z (about 1 year ago)
- Language: Scala
- Size: 4.51 MB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ref + Deferred: from counters to concurrent FSMs
Slides for my talk at Scala Italy 2019, in Bologna. You can look at them online at https://systemfw.org/scala-italy-2019/#/ (use the spacebar to advance). Video coming soon. Have a look at `Examples.scala` for the code.
## Description
fs2 and cats-effect offer a very powerful and composable set of concurrent combinators and data structures, which are all built out of two deceptively simple primitives: Ref and Deferred.
This talk will explain what they are, the design principles behind them, and how to use them to build your own business logic abstractions. In the process, we will discover a general pattern in the form of concurrent state machines, and see how it integrates with final tagless on one hand, and streaming control flow on the other.