HackerPapers

arXiv:2509.22614cs.PL

Committing to the bit: Relational programming with semiring arrays and SAT solving

Dmitri Volkov, Yafei Yang, Chung-chieh Shan

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

We propose semiringKanren, a relational programming language where each relation expression denotes a semiring array. We formalize a type system that restricts the arrays to finite size. We then define a semantics that is parameterized by the semiring that the arrays draw their elements from. We compile semiringKanren types to bitstring representations. For the Boolean semiring, this compilation enables us to use an SAT solver to run semiringKanren programs efficiently. We compare the performance of semiringKanren and faster miniKanren for solving Sudoku puzzles. Our experiment shows that semiringKanren can be a more efficient variant of miniKanren.

arXiv comments
12 pages, for associated repo see https://github.com/sporkl/semiringkanren
Journal reference
DOI
Subjects
cs.PLProgramming Languages

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Jul 2026 to Jul 2026.

Comments linking this paper, per year.

Discussed in comments1 thread

    • I've been working on something similar, implementing a relational language on top of a tensor library[0]. Mathematically, einsum and database joins are the same thing, just over different semirings (real numbers for einsum, booleans for databases). A lot of papers about datalog…

      sporklView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.