计算机科学 > 程序设计语言
[提交于 2020年8月27日]
标题:Memoized Pull-Tabbing for Functional Logic Programming
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Pull-tabbing is an evaluation technique for functional logic programs which computes all non-deterministic results in a single graph structure. Pull-tab steps are local graph transformations to move non-deterministic choices towards the root of an expression. Pull-tabbing is independent of a search strategy so that different strategies (depth-first, breadth-first, parallel) can be used to extract the results of a computation. It has been used to compile functional logic languages into imperative or purely functional target languages. Pull-tab steps might duplicate choices in case of shared subexpressions. This could result in a dramatic increase of execution time compared to a backtracking implementation. In this paper we propose a refinement which avoids this efficiency problem while keeping all the good properties of pull-tabbing. We evaluate a first implementation of this improved technique in the Julia programming language.
提交历史
来自:Michael Hanus[v1] 2020年8月27日 星期四 09:07:36 UTC