计算机科学 > 程序设计语言
[提交于 2026年10月2日]
标题:WAMpy: Efficient Synthesis of Prolog Programs in Python
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Dominik Magiera[v1] 2026年10月2日 星期五 12:44:26 UTC