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

受限且类型化的分阶段求值

Scoped and Typed Staging by Evaluation

Guillaume Allais

AI总结:

本文基于依值类型化宿主语言,构造了包含静态与动态阶段的极简双层级简单类型演算,通过受求值归一化启发的模型构造获得分阶段求值函数,并演示了其扩展至元编程及数字电路描述语言的能力。

摘要:

使用依值类型化宿主语言,我们通过构造给出一个极简双层级简单类型演算的良受限且类型化表示,包含静态和动态阶段。对项中静态部分进行部分求值的分阶段函数,受求值归一化启发通过模型构造获得。我们随后演示如何扩展该极简语言以提供额外元编程能力,并定义一个求值为数字电路描述的高阶函数式语言。

英文摘要:

Using a dependently typed host language, we give a well scoped-and-typed by construction presentation of a minimal two level simply typed calculus with a static and a dynamic stage. The staging function partially evaluating the part of a term that are static is obtained by a model construction inspired by normalisation by evaluation. We then go on to demonstrate how this minimal language can be extended to provide additional metaprogramming capabilities, and to define a higher order functional language evaluating to digital circuit descriptions.

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

↑