- Notifications
You must be signed in to change notification settings - Fork23
experimental CPS transformer for dotty
License
dotty-cps-async/dotty-cps-async
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
I'm the creator of this project.My country, Ukraine,is being invaded by the Russian Federation, right now. If you want to help my country to fight, consider donating tocharity supporting Ukrainian army. More options is described onsupport ukraine site.
This is the implementation of async/await transformation forScala 3 (Dotty), based on an optimized version ofCPS (Continuation Passing Style) transformation, where the continuation is ‘pushed’ to the monad.
- Full support of all Scala language constructs in async/await block.
- Pluggable monad interface:
- An await monad can be any trait for which it is possible to implement
CpsAsyncMonadtype class. You can provide those methods for your favorite monad.
- An await monad can be any trait for which it is possible to implement
- Limited support of high-order functions:
urls.map(fetchData(_))(await _ )is an idiomatic way to fetch data for all items in parallel.- An application developer or library author can provide 'shifted' implementation of the own high-order functions.
- Optional features, which enhance ergonomics in some cases, such as automatic coloring and handling discarded values
- OptionalSIP-22 compatible API.
For more details, please, read the documentation athttps://dotty-cps-async.github.io/dotty-cps-async/.
Embedding generic monadic transformers into scala.
- Trends in Functional Programming 2022.https://www.slideshare.net/rssh1/embedding-generic-monadic-transformer-into-scala-tfp2022 (May 2022)
Scala3 & Async: Behind Futures.
- Svitla Smart Talk.https://www.youtube.com/watch?v=fBcGhjM2s-c (April 2021. In Ukrainian language).
Can we free concurrent programming from the monadic style?
- ScalaR:https://www.youtube.com/watch?v=ImlUuTQUeaQ (June 2020)
- ScalaUA:https://www.youtube.com/watch?v=w-noRPLxYoA&t=3s (April 2020)(slides:https://www.slideshare.net/rssh1/can-concurrent-functional-programming-be-liberated-from-monadic-style )
About
experimental CPS transformer for dotty
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.