arXivPreprintOpen accesscs.PL
WAMpy: Efficient Synthesis of Prolog Programs in Python
Dominik Magiera, Lukas Röhrig, Frank Jäkel
Computational
Key points
From the paper's conclusion- Presents WAMpy, a Python framework optimized for synthesizing Prolog programs.
- Compiles Prolog clauses into NumPy array-based WAM instructions and supports partial recompilation of hypotheses against fixed background knowledge. Performance-critical routines are accelerated using Numba just-in-time (JIT) compilation.
- WAMpy improves end-to-end performance compared with SWI-Prolog accessed from Python using Janus in a benchmark of repeated compilation-and-evaluation workloads.
Abstract
We present WAMpy, a Python framework optimized for synthesizing Prolog programs. Unlike general-purpose Prolog systems, WAMpy targets workloads that repeatedly generate and evaluate small candidate programs. WAMpy compiles Prolog clauses into NumPy array-based WAM instructions and supports partial recompilation of hypotheses against fixed background knowledge. Performance-critical routines are accelerated using Numba just-in-time (JIT) compilation. In a benchmark of repeated compilation-and-evaluation workloads, WAMpy improves end-to-end performance compared with SWI-Prolog accessed from Python using Janus.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
Science SkimAI key points
Pinned- Presents WAMpy, a Python framework optimized for synthesizing Prolog programs.
- Compiles Prolog clauses into NumPy array-based WAM instructions and supports partial recompilation of hypotheses against fixed background knowledge. Performance-critical routines are accelerated using Numba just-in-time (JIT) compilation.
- WAMpy improves end-to-end performance compared with SWI-Prolog accessed from Python using Janus in a benchmark of repeated compilation-and-evaluation workloads.
Readers' thoughts
No reader thoughts yet.
Related papers
- Whiel: A Neurosymbolic Platform for Certified Relational Program VerificationarXiv · 2026
- Compiling WebAssembly Concolic Execution with Staging, Continuations, and SnapshotsProceedings of the ACM on Programming Languages · 2026
- Bootstrapping Niche Multilingual Code Translation via Reinforcement Learning with Execution-Based Verifiable SupervisionarXiv · 2026
- Optimal Probabilistic Answer Set Programming: Complexity and ImplementationsarXiv · 2026
- Where the LLM Ends and Reliable Decisions BeginarXiv · 2026
- Single-world counterfactual reasoning in ProbLogJournal of Logic and Computation · 2026