arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.00740cs.PL
收藏

miniKanren 用于函数化转换的类型化嵌入

Typed Embedding of miniKanren for Functional Conversion

JetBrains Research(JetBrains 研究院);Constructor University(Constructor 大学)

Igor Engel, Ekaterina Verbitskaia

AI总结:

本文通过提供 miniKanren 到 Haskell 的类型化无标签最终嵌入,解决了早前函数化转换无视类型、需确定性注解和隐式生成器穿线的问题,显著减少样板代码并保留或提升了性能加速。

摘要:

关系式编程通过验证器到求解器的方法实现程序合成。早前一篇论文引入了函数化转换以缓解一些固有的性能开销。然而,该转换并不优雅:它无视类型,需要确定性注解和隐式生成器穿线。在本文中,我们通过提供 miniKanren 到 Haskell 的类型化无标签最终嵌入来解决这些问题。这一改进显著减少了样板代码,同时保留甚至有时提升了早前的加速效果。

英文摘要:

Relational programming enables program synthesis through a verifier-to-solver approach. An earlier paper introduced a functional conversion that mitigated some of the inherent performance overhead. However, the conversion was inelegant: it was oblivious to types, demanded determinism annotations, and implicit generator threading. In this paper, we address these issues by providing a typed tagless-final embedding of miniKanren into Haskell. This improvement significantly reduces boilerplate while preserving, and sometimes enhancing, earlier speedups.

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

↑