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

Walrus 设计:具备富类型、按需惰性与结构化追踪的关系式编程

Designing Walrus: Relational Programming with Rich Types, On-Demand Laziness, and Structured Traces

Galois, Inc.(Galois公司)

Santiago Cuéllar, Naomi Spargo, Jonathan Daugherty, David Darais

AI总结:

本研究提出嵌入Haskell的函数式关系语言Walrus,在miniKanren基础上扩展类型多态合一、按需惰性等特性,结合双向编译器开发经验阐述其设计实现与实践反思。

摘要:

我们提出Walrus——一种嵌入Haskell的函数式关系编程语言,它在miniKanren模型基础上扩展了类型多态合一、按需惰性,以及一系列面向实用开发的易用性功能。这些特性包括:借助Haskell Generics减少样板代码、结构化调试追踪,以及对积类型的友好支持。我们结合开发双向编译器的实践经验,阐述Walrus的设计与实现,并反思关键设计决策及实践中反复遇到的易用性挑战。

英文摘要:

We present Walrus, a functional relational programming language embedded in Haskell that extends the miniKanren model with type-polymorphic unification, on-demand laziness, and a range of usability features aimed at practical development. These include use of Haskell Generics for boilerplate reduction, structured debugging traces, and ergonomic support for product types. We describe the design and implementation of Walrus through the lens of our experience developing bidirectional compilers, and reflect on key design decisions and recurring usability challenges encountered in practice.

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

↑