非确定性函数的轻量级语义组合
A Lightweight Combination of Semantics for Non-deterministic Functions
摘要:
使用非确定性函数是现代函数逻辑语言的一个显著特征。通常采用的语义是调用时选择,这是一个在操作级别上与函数式语言中的惰性计算共享机制相关的概念。然而,在某些情况下,运行时选择更接近于普通重写,这是更合适的。在本文中,我们提出了一个扩展现有的调用时间选择为基础的语言,提供支持运行时的选择在本地化的程序部分。扩展是非常简单的三个相关层面:语法,正式的操作演算和实施,这是基于系统玩具。
英文摘要:
The use of non-deterministic functions is a distinctive feature of modern functional logic languages. The semantics commonly adopted is call-time choice, a notion that at the operational level is related to the sharing mechanism of lazy evaluation in functional languages. However, there are situations where run-time choice, closer to ordinary rewriting, is more appropriate. In this paper we propose an extension of existing call-time choice based languages, to provide support for run-time choice in localized parts of a program. The extension is remarkably simple at three relevant levels: syntax, formal operational calculi and implementation, which is based on the system Toy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。