arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.10941cs.PL
收藏

在Scala中嵌入通用一元Transformer

Embedding generic monadic transformer into Scala

Ruslan Shevchenko

摘要:

Dotty-cps-await c是一个开源包,由scala宏和library组成,scala宏通过monadic cps转换实现了通用的await c/await,library为标准库中的高阶函数提供了monadic替换。它允许开发人员使用基础语言的直接控制流结构,而不是各种应用程序的一元DSL。在著名的BRAC/await操作背后,该包提供了转换高阶函数应用程序、生成调用链代理和自动着色的选项。

英文摘要:

Dotty-cps-async is an open-source package that consists of scala macro, which implements generic async/await via monadic cps transform, and library, which provides monadic substitutions for higher-order functions from the standard library. It allows developers to use direct control flow constructions of the base language instead of monadic DSL for various applications. Behind well-known async/await operations, the package provides options for transforming higher-order function applications, generating call-chain proxies, and automatic coloring.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑