~/talk

Wren: A Fast Logic Programming eDSL With Host Language Garbage Collection

Talkat LOPSTR+PPDP 2026 · 2026-08-27..08-29
links:none on file
links:none on file
slides:none on file

Wren is a Scala LP eDSL that reworks term representation and execution to piggyback on host language garbage collection, using typed terms/goals so unification is opt‑in and allowing nondeterministic construction of native objects. Implementation uses a weak‑reference trail for backtracking and replaces allocation-heavy streams with iterators over streams to cut temporary allocations. Evaluation across the largest miniKanren-style benchmark suite shows up to three orders of magnitude speedups versus the fastest LP eDSL and occasional wins over SWI‑Prolog, plus much lower heap usage.

AI-written summary · about

  1. 0:00Wren introduction
  2. 1:05Embedding logic programming
  3. 3:54MiniKanren challenges
  4. 4:14Typed terms interface
  5. 9:51Memory retention in unification
  6. 11:56Backtracking with weak refs
  7. 14:25GC for unused variables
  8. 16:11Optimizing with iterators
  9. 17:55Term interconversion
  10. 19:01Benchmarking Wren
  11. 25:28Future directions
  12. 26:14Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.