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

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

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

arXiv:1908.02414 (cs)
[提交于 2020年11月10日 (v1),最后修订于 2020年11月10日 (此版本, v2)]

标题:Space-Efficient Gradual Typing in Coercion-Passing Style

作者:Yuya Tsuda, Atsushi Igarashi, Tomoya Tabuchi
查看论文《Space-Efficient Gradual Typing in Coercion-Passing Style》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Herman et al. pointed out that the insertion of run-time checks into a gradually typed program could hamper tail-call optimization and, as a result, worsen the space complexity of the program. To address the problem, they proposed a space-efficient coercion calculus, which was subsequently improved by Siek et al. The semantics of these calculi involves eager composition of run-time checks expressed by coercions to prevent the size of a term from growing. However, it relies also on a nonstandard reduction rule, which does not seem easy to implement. In fact, no compiler implementation of gradually typed languages fully supports the space-efficient semantics faithfully. In this paper, we study coercion-passing style, which Herman et al. have already mentioned, as a technique for straightforward space-efficient implementation of gradually typed languages. A program in coercion-passing style passes "the rest of the run-time checks" around---just like continuation-passing style (CPS), in which "the rest of the computation" is passed around---and (unlike CPS) composes coercions eagerly. We give a formal coercion-passing translation from $\lambda$S by Siek et al. to $\lambda$S$_1$, which is a new calculus of first-class coercions tailored for coercion-passing style, and prove correctness of the translation. We also implement our coercion-passing style transformation for the Grift compiler developed by Kuhlenschmidt et al. An experimental result shows stack overflow can be prevented properly at the cost of up to 3 times slower execution for most partially typed practical programs.
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:1908.02414 [cs.PL]
  (或者 arXiv:1908.02414v2 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.1908.02414
期刊参考: 34th European Conference on Object-Oriented Programming, ECOOP 2020, volume 166 of LIPIcs, pages 8:1--8:29
相关 DOI: https://doi.org/10.4230/LIPIcs.ECOOP.2020.8

提交历史

来自:Yuya Tsuda
[v2] 2020年11月10日 星期二 14:31:33 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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