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

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

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

arXiv:2201.00495 (cs)
[提交于 2022年1月4日]

标题:let (rec) insertion without Effects, Lights or Magic

作者:Oleg Kiselyov, Jeremy Yallop
查看论文《let (rec) insertion without Effects, Lights or Magic》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Let insertion in program generation is producing code with definitions (let-statements). Although definitions precede uses in generated code, during code generation `uses' come first: we might not even know a definition is needed until we encounter a reoccurring expression. Definitions are thus generated `in hindsight', which explains why this process is difficult to understand and implement -- even more so for parameterized, recursive and mutually recursive definitions. We have earlier presented an interface for let(rec) insertion -- i.e. for generating (mutually recursive) definitions. We demonstrated its expressiveness and applications, but not its implementation, which relied on effects and compiler magic. We now show how one can understand let insertion, and hence implement it in plain OCaml. We give the first denotational semantics of let(rec)-insertion, which does not rely on any effects at all. The formalization has guided the implementation of let(rec) insertion in the current version of MetaOCaml.
评论: Peer-reviewed and accepted for presentation as a short paper at PEPM 2022
主题: 程序设计语言 (cs.PL); 符号计算 (cs.SC)
引用方式: arXiv:2201.00495 [cs.PL]
  (或者 arXiv:2201.00495v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2201.00495

提交历史

来自:Oleg Kiselyov
[v1] 2022年1月4日 星期二 00:00:00 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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