[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"branding":3,"analytics":7,"article-new-python-framework-speeds-up-prolog-program-synthesis":10,"sections":35},{"siteName":4,"siteTagline":5,"publisherName":4,"contactEmail":6},"The Revision","Tech news, decoded.","editor@therevision.news",{"gaMeasurementId":8,"adsenseClientId":9},"G-ZW2MV82GYR","ca-pub-8533917693782264",{"article":11},{"id":12,"slug":13,"title":14,"dek":15,"body_md":16,"tags_json":17,"published_at":18,"created_at":19,"updated_at":20,"status":21,"review_note":22,"review_notes":23,"image_url":22,"persona_id":22,"persona_name":22,"section":24,"tags":25,"sources":30,"feedback":34,"feedback_at":22,"cost_usd":34,"total_tokens":34},10048,"new-python-framework-speeds-up-prolog-program-synthesis","New Python Framework Speeds Up Prolog Program Synthesis","WAMpy compiles Prolog clauses into NumPy-based instructions and speeds up program synthesis with Numba JIT, beating SWI-Prolog's Janus bridge in benchmarks.","A new Python framework called WAMpy speeds up the tedious work of writing Prolog programs automatically.\n\nResearchers built WAMpy, a system that compiles Prolog clauses into NumPy array-based instructions for the Warren Abstract Machine, the standard execution model for Prolog. It's built for a specific job: generating and testing many small candidate programs against a fixed set of background rules, then evaluating which ones work - a process called program synthesis. The framework uses Numba's just-in-time compiler to speed up the performance-critical parts, and it supports partial recompilation so it doesn't have to rebuild everything from scratch each time a hypothesis changes. In benchmarks of repeated compile-and-evaluate cycles, WAMpy outperformed SWI-Prolog, the most widely used Prolog implementation, accessed through Python via its Janus interface.\n\nProgram synthesis - having software write other software by trial and error - lives or dies on how fast you can generate and discard bad candidates. General-purpose Prolog systems like SWI-Prolog were built to run one program well, not to be restarted thousands of times a second, so the overhead adds up fast in search-heavy synthesis loops. WAMpy's targeted redesign suggests that purpose-built tooling for narrow but repetitive AI workloads - rather than retrofitting general tools - stays the more reliable path to speed.\n\nIt's a plumbing improvement, not a new idea, but search-based synthesis is only as good as the plumbing underneath it.","[\"prolog\",\"program-synthesis\",\"python\",\"numba\"]","2026-10-05T04:00:00.000Z","2026-10-05T20:15:00.100Z","2026-10-05T20:15:04.979Z","published",null,[],"dev-tools",[26,27,28,29],"prolog","program-synthesis","python","numba",[31],{"name":32,"url":33},"arXiv cs.AI","https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.03234",0,{"sections":36},[37,42,47,52,57,62,67,72,77,82,87,91,96,101],{"name":38,"slug":39,"count":40,"latest_published_at":41},"AI","ai",7165,"2026-11-16T14:00:00.000Z",{"name":43,"slug":44,"count":45,"latest_published_at":46},"Security","security",1141,"2026-11-15T17:15:13.000Z",{"name":48,"slug":49,"count":50,"latest_published_at":51},"Deals","deals",682,"2026-11-16T14:45:47.000Z",{"name":53,"slug":54,"count":55,"latest_published_at":56},"Policy","policy",631,"2026-11-16T09:43:00.000Z",{"name":58,"slug":59,"count":60,"latest_published_at":61},"Consumer Tech","consumer-tech",384,"2026-11-16T14:33:02.000Z",{"name":63,"slug":64,"count":65,"latest_published_at":66},"Hardware","hardware",347,"2026-11-16T13:28:40.000Z",{"name":68,"slug":69,"count":70,"latest_published_at":71},"Science","science",236,"2026-11-14T20:54:14.000Z",{"name":73,"slug":74,"count":75,"latest_published_at":76},"Software","software",179,"2026-11-16T10:35:16.000Z",{"name":78,"slug":79,"count":80,"latest_published_at":81},"Startups","startups",162,"2026-11-13T17:32:35.000Z",{"name":83,"slug":84,"count":85,"latest_published_at":86},"General","general",131,"2026-11-16T11:14:41.000Z",{"name":88,"slug":24,"count":89,"latest_published_at":90},"Dev Tools",127,"2026-11-11T19:00:44.000Z",{"name":92,"slug":93,"count":94,"latest_published_at":95},"Gaming","gaming",113,"2026-11-16T11:47:03.000Z",{"name":97,"slug":98,"count":99,"latest_published_at":100},"Reviews","reviews",38,"2026-10-20T12:00:00.000Z",{"name":102,"slug":103,"count":104,"latest_published_at":105},"How-To","how-to",10,"2026-11-14T23:45:00.000Z"]