Reproduce “concurrentKanren: miniKanren for parallel execution” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Sjoerd Dost
concurrentKanren introduces the first concurrent implementation of miniKanren, employing an actor-inspired evaluation model in Go. This system provides improved fairness for disjunctions and robust short-circuit evaluation for conjunctions, with a worker pool implementation demonstrating performance competitive with optimized single-threaded baselines, particularly for complex problems.
Key insights
- An actor-inspired model with asynchronous message passing can effectively parallelize miniKanren's search, with each goal managing its own stream of results.
- Purpose-built concurrent goals can resolve inherent semantic fairness and robustness issues that arise in sequential miniKanren evaluation.
- A worker pool implementation, bounding the number of active goroutines, offers superior scalability and efficiency for large-scale problems compared to a purely message-based approach that can incur significant overhead.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.