通过部分求值实现反转:可逆解释器实验
Inversion by Partial Evaluation: A Reversible Interpreter Experiment
AI总结:
研究部分求值与程序反转结合的计算限制,通过可逆图灵机解释器证明首个Futamura投影和反转投影可生成功能与文本均等价的程序,提供三者实际相互作用的见解,结论两种投影需纳入程序转换工具箱。
摘要:
研究了部分求值与程序反转结合的计算限制。利用可逆图灵机解释器,我们证明首个Futamura投影和反转投影不仅能生成功能等价的程序,还能生成文本等价的程序。完整展示了可逆流程图语言中解释器的构建过程,提供了关于可逆解释器、程序反转器和部分求值器之间实际相互作用的见解,结论是两种投影都必须纳入程序转换工具箱。
英文摘要:
A computational limit of combining partial evaluation and program inversion is investigated. Using a reversible Turing machine interpreter, we show that the first Futamura and inversion projections can produce not only functionally but also textually equivalent programs. The construction of the interpreter in a reversible flowchart language is shown in full. Insights are provided on the practical interplay between reversible interpreters, program inverters, and partial evaluators. We conclude that both projections must be included in the program transformation toolbox.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。