arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.05360cs.PLcs.LO
收藏

作为脱机部分演绎的编译控件

Compiling Control as Offline Partial Deduction

Vincent Nys, Danny De Schreye

摘要:

我们提出了一种新的方法,称为编译控制,其目的是编译出特殊的机制,非标准的原子选择逻辑程序的技术。以前已经证实,编译控制可以作为第一个Futamura投影的实例来实现,其中解释器专门用于输入程序。然而,这种解释器的确切性质和专门化所需的技术从未被具体说明。在这项工作中,我们提出了一个Prolog元解释器,它适用于所需的非标准的选择规则,这是适合专门化使用离线部分演绎。在编译控制的初始分析阶段之后,我们收集注释以使用Logen系统进行离线部分演绎来专门化解释器。我们还表明,专业化的结果是等效的程序使用传统的方法来编译控制。通过这种方式,我们简化了合成步骤。

英文摘要:

We present a new approach to a technique known as compiling control, whose aim is to compile away special mechanisms for non-standard atom selection in logic programs. It has previously been conjectured that compiling control could be implemented as an instance of the first Futamura projection, in which an interpreter is specialized for an input program. However, the exact nature of such an interpreter and of the required technique for specialization were never specified. In this work, we propose a Prolog meta-interpreter which applies the desired non-standard selection rule and which is amenable to specialization using offline partial deduction. After the initial analysis phase of compiling control, we collect annotations to specialize the interpreter using the Logen system for offline partial deduction. We also show that the result of the specialization is equivalent to the program obtained using the traditional approach to compiling control. In this way, we simplify the synthesis step.

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

↑