Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

experimental CPS transformer for dotty

License

NotificationsYou must be signed in to change notification settings

dotty-cps-async/dotty-cps-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

dotty-cps-async

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.

Highlights

  • 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 implementCpsAsyncMonad type class. You can provide those methods for your favorite monad.
  • 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/.

Presentations

About

experimental CPS transformer for dotty

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors10

Languages


[8]ページ先頭

©2009-2025 Movatter.jp