跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2108.11155 (cs)
[提交于 2021年8月25日]

标题:Latent Effects for Reusable Language Components: Extended Version

作者:Birthe van den Berg, Tom Schrijvers, Casper Bach-Poulsen, Nicolas Wu
查看论文《Latent Effects for Reusable Language Components: Extended Version》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The development of programming languages can be quite complicated and costly. Hence, much effort has been devoted to the modular definition of language features that can be reused in various combinations to define new languages and experiment with their semantics. A notable outcome of these efforts is the algebra-based "datatypes a la carte" (DTC) approach. When combined with algebraic effects, DTC can model a wide range of common language features. Unfortunately, the current state of the art does not cover modular definitions of advanced control-flow mechanisms that defer execution to an appropriate point, such as call-by-name and call-by-need evaluation, as well as (multi-)staging. This paper defines latent effects, a generic class of such control-flow mechanisms. We demonstrate how function abstractions, lazy computations and a MetaML-like staging can all be expressed in a modular fashion using latent effects, and how they can be combined in various ways to obtain complex semantics. We provide a full Haskell implementation of our effects and handlers with a range of examples.
评论: extended version of APLAS 2021 paper
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2108.11155 [cs.PL]
  (或者 arXiv:2108.11155v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2108.11155

提交历史

来自:Tom Schrijvers
[v1] 2021年8月25日 星期三 10:17:57 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-08
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站