-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experiment with -Xasync #1907
Comments
I've got something working. IOs are executed sequentially, and I haven't figured out why yet : |
https://github.com/rssh/cps-async-connect Have same goal as async await, hope you can take some ideas |
@renghen thanks for sharing, that's pretty cool ! Unfortunately in scala-2 land the integration point is much less straightforward (if you want to tap into the mechanism enabled by the On an unrelated note, I was thinking that at some point I'd try implementing arrow-comprehensions (similar to https://github.com/manatki/volga) in Scala 3, and you work seem like it'd be a good starting point (the macro examples on dotty's website lack depth) Thanks again for sharing 😄 |
one note this is not my work (https://github.com/rssh/cps-async-connect) I am just interested in Continuation passing style. I will also look into the git repo you mentioned. cheers |
Hah my bad. Still, thanks for sharing 😄 |
I just want to mention that similar things can be achieved building on monadic reflection and project loom: https://github.com/b-studios/cats-reflect
|
@b-studios That is really really cool |
Thanks @djspiewak! FYI, we moved our experiments here: https://github.com/lampepfl/monadic-reflection |
According to @retronym it works with Cats Effect. Let's like… actually do it. I would very much like it if users could opt-in to this syntax for interacting with at least
IO
, and ideally any effect type.The text was updated successfully, but these errors were encountered: