20 Years of Pyrolog pypy.org · 11 points · 0 comments · HN thread TL;DR Carl Fri...
HN Best 200 @best
20 Years of Pyrolog pypy.org · 11 points · 0 comments · HN thread
TL;DR Carl Friedrich Bolz-Tereick, a PyPy developer, marks 20 years since his first commit of Pyrolog, an RPython-based Prolog interpreter, on November 12, 2006. He walks through its architecture changes, its performance history (including the JIT-friendly continuation redesign), and the research spun off from it, such as Unipycation, Pycket and the Prolog-based JIT prototype. Pyrolog never had real users, and he has no concrete use case for it now.
- Pyrolog began in 2006 as a Prolog interpreter in RPython, started during Bolz's Bachelor studies at Uni Düsseldorf and tied to a PyPy EU constraint-programming goal.
- The first version used exception-based backtracking and the stackless transformation, which made the binary about twice as large and slower, so it was dropped.
- A 2009–2010 redesign reified success and failure continuations as heap objects, flattening host stack use and making the code JIT-friendly; it sometimes beat SICStus on predictable microbenchmarks but has sharp performance cliffs on backtracking-heavy code.
- Prolog prototyping produced the pyjitpl5 trace-based JIT design now used in PyPy's meta-JIT, described in a LOPSTR 2009 paper.
- Ideas flowed into other projects: compressed terms (Theseus), Unipycation (Python–Prolog interop), Pycket's false loop filtering, and the Effekt effect-handler JIT.
- In 2026 Bolz merged the surviving Mercurial history into a new GitHub repo; he says he may return to the project since his work on it has always been bursty.
Discussion The story has 11 points and no comments yet, so there is no discussion to summarize.