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

OCaml中关系语言的类型化嵌入

Typed Embedding of a Relational Language in OCaml

Dmitrii Kosarev, Dmitry Boulytchev

摘要:

我们提出了一个实现的关系型程序设计语言miniKanren作为一组组合子和语法扩展OCaml。我们的方法的主要特点是多态统一,它可以用来统一任意类型的数据结构。此外,我们提供了一个有用的通用编程模式,系统地开发关系规范的类型化的方式,并解决问题的关系子系统集成到功能应用程序。

英文摘要:

We present an implementation of the relational programming language miniKanren as a set of combinators and syntax extensions for OCaml. The key feature of our approach is polymorphic unification, which can be used to unify data structures of arbitrary types. In addition we provide a useful generic programming pattern to systematically develop relational specifications in a typed manner, and address the problem of integration of relational subsystems into functional applications.

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

↑