ICFP 2024 (series) / miniKanren 2024 (series) / miniKanren 2024 / Six Ways to Implement Divisibility by Three in miniKanren
Six Ways to Implement Divisibility by Three in miniKanrenin-person
This paper explores options for implementing the relation $n \equiv 0 \ (\text{mod} \ 3)$ within miniKanren using miniKanren numbers and its arithmetic suite. We examine different approaches starting from straightforward implementations to more optimized versions. The implementations discussed include brute-force arithmetic methods, divisibility tricks, and derivation from a finite automaton. Our contributions include an in-depth look at the process of implementing a miniKanren relation and observations on benchmarking \texttt{defrel}s. This study aims to provide practical insights for miniKanren programmers on both performance and implementation techniques.
Fri 6 SepDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
Fri 6 Sep
Displayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
11:00 - 12:30 | |||
11:00 30mTalk | Relational Reactive Programming: miniKanren for the Webremote miniKanren | ||
11:30 30mTalk | To Be or Not To Be: Adding Integrity Constraints to stableKanren to Make a Decisionin-person miniKanren | ||
12:00 30mTalk | Six Ways to Implement Divisibility by Three in miniKanrenin-person miniKanren Pre-print |