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

面向依赖类型语言的直接、按需求值器

Towards a Direct, By-Need Evaluator for Dependently Typed Languages

David M. Rogers

摘要:

我们提出了一个C语言实现的Adida-pi演算的扩展(按需调用)栈机的Ariola,张和Felleisen持有类型,使用无类型的无标签的最终解释器策略。它的优点是将所有操作都表示为术语的折叠,包括按需评估,恢复任何术语的初始语法树编码,并消除大多数垃圾收集任务。这些都是通过一种规范的方法来处理每个术语的主干,以及一个强大的基于堆栈的API。类型推断在本工作中没有涉及,但也从当前的堆栈转换中获得了几个优点。执行基准问题的时间和最大堆栈空间使用的结果。我们讨论了如何设计选择这个解释器允许语言被用作一个高层次的脚本语言自动分布式并行执行常见的科学计算工作流程。

英文摘要:

We present a C-language implementation of the lambda-pi calculus by extending the (call-by-need) stack machine of Ariola, Chang and Felleisen to hold types, using a typeless- tagless- final interpreter strategy. It has the advantage of expressing all operations as folds over terms, including by-need evaluation, recovery of the initial syntax-tree encoding for any term, and eliminating most garbage-collection tasks. These are made possible by a disciplined approach to handling the spine of each term, along with a robust stack-based API. Type inference is not covered in this work, but also derives several advantages from the present stack transformation. Timing and maximum stack space usage results for executing benchmark problems are presented. We discuss how the design choices for this interpreter allow the language to be used as a high-level scripting language for automatic distributed parallel execution of common scientific computing workflows.

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

↑