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

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

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

arXiv:2007.12630 (cs)
[提交于 2020年7月24日]

标题:Corpse Reviver: Sound and Efficient Gradual Typing via Contract Verification

作者:Cameron Moy, Phúc C. Nguyen, Sam Tobin-Hochstadt, David Van Horn
查看论文《Corpse Reviver: Sound and Efficient Gradual Typing via Contract Verification》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Gradually-typed programming languages permit the incremental addition of static types to untyped programs. To remain sound, languages insert run-time checks at the boundaries between typed and untyped code. Unfortunately, performance studies have shown that the overhead of these checks can be disastrously high, calling into question the viability of sound gradual typing. In this paper, we show that by building on existing work on soft contract verification, we can reduce or eliminate this overhead. Our key insight is that while untyped code cannot be trusted by a gradual type system, there is no need to consider only the worst case when optimizing a gradually-typed program. Instead, we statically analyze the untyped portions of a gradually-typed program to prove that almost all of the dynamic checks implied by gradual type boundaries cannot fail, and can be eliminated at compile time. Our analysis is modular, and can be applied to any portion of a program. We evaluate this approach on a dozen existing gradually-typed programs previously shown to have prohibitive performance overhead---with a median overhead of $3.5\times$ and up to $73.6\times$ in the worst case---and eliminate all overhead in most cases, suffering only $1.6\times$ overhead in the worst case.
评论: To appear in POPL 2021
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2007.12630 [cs.PL]
  (或者 arXiv:2007.12630v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2007.12630

提交历史

来自:Sam Tobin-Hochstadt
[v1] 2020年7月24日 星期五 16:30:42 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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