S
Hi everyone, I’d like to share Prolog Studio, a small desktop editor for SWI-Prolog on macOS that I built during my AI master’s studies. I wanted something that feels like a modern editor but keeps the familiar toplevel workflow, and that newcomers can install without first setting up Homebrew or a terminal. What it does Editor based on Monaco (the editor inside VS Code), with Prolog syntax highlighting, bracket matching, tabs, a file explorer and a predicate outline An embedded query console.…
S
I just tried to build the latest swipl-devel after not updating in a while and at tag V11.1.1 the build process fails in xpce: I have a whole bunch of errors like the following: ``` ERROR: /Users/james/src/swipl-devel/build/home/xpce/prolog/lib/toolbar.pl:74: ERROR: pce_principal:get/4: Unknown procedure: pce:get/3 ERROR: However, there are definitions for: ERROR: pce:get/4 [pce_principal] ERROR: pce:get/5 [pce_principal] ERROR: pce:get/6 [pce_principal] ERROR: pce:get/7 [pce_principal] ERROR:…
S
Dear SWI-Prolog user, SWI-Prolog 11.1.1 is ready for download. This release adds XSB compatible automatic tabling based on a new analysis of the static call graph, fixes many issues in (subsumptive and well-founded) tabling and hardens the HTTP server and pengines against untrusted clients. Highlights: Core Tabling: ADDED library(prolog_auto_table), providing XSB compatible auto_table/0 and auto_table_learn/2,3, and library(prolog_call_cycles), which finds the strongly connected components and…
S
Hello, First of all, many thanks Jan for the last fix about the assertion failure Assertion failed: ref->read->references. Possible bug? - #3 by fsaenzperez and apologies for this long post. While testing DES with that fixed SWI-Prolog version, I noticed that some SQL queries now stall for several seconds. I traced it to a performance regression in library(clpq)/library(clpfd) cooperation that occurs in recent SWI-Prolog versions. Context in DES DES posts every integer constraint of an SQL…
S
Following on from last year’s Advent of Code 2025, the Advent of Code 2026 will start tomorrow It lasts for 12 days. My solutions will be at GitHub - brebs-gh/advent-of-code: https://adventofcode.com/ solutions in Prolog · GitHub 3 posts - 3 participants Read full topic
S
After compiling 10.0.1 (the same for 10.0.0) I linked in my ~/bin/ prolog -> swipl.11 swipl.11 -> /usr/src/swipl-11/swipl/build/src/swipl Now swipl.11 starts correctly, but prolog fails, and produces Welcome to SWI-Prolog (threaded, 64 bits, version 11.0.1-2-g6ca0651ef) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details. For online help and background, visit https://www.swi-prolog.org For built-in help, use ?- help(Topic). or ?-…
S
I’ve been using SWI-Prolog’s tabling with my ILP systems and I find that I often run out of RAM before I improve certain efficiency constraints (briefly, those are constraints that are part of the inductive bias included in the training data, the so-called “background knowledge”). My newest ILP system, Poker, is particularly tabling-RAM hungry. It starts by creating a number of initial hypotheses, each of them a Prolog predicate that can have maybe half a dozen clauses each of them with half a…
S
Dear SWI-Prolog user, SWI-Prolog 11.0.1 (stable) is ready for download. This is a complete merge of the current development version. It is mostly a bug fix and hardening release. Highlights: Many fixes to concurrency. Notably assert/retract/abolish racing with each other, with reloading and with clause indexing, transaction/1 and snapshot/1, thread creation, detaching, joining and termination, mutexes and message queues destroyed by another thread, and memory ordering issues on weakly ordered…
S
I’ve been using the daily builds for windows for some time but yesterday I tried the stable version and I got an error loading janus: Welcome to SWI-Prolog (threaded, 64 bits, version 11.0.0) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details. For online help and background, visit https://www.swi-prolog.org For built-in help, use ?- help(Topic). or ?- apropos(Word). 23 ?- use_module(library(janus)). ERROR: source_sink `library(janus)'…
S
I’d reviewed the documentation for fastrw. It would be helpful to include an explanation for fast_read/2 and fast_write/2 that covers this example of use: ?- open("/tmp/tt.dat",write,S,[encoding(octet)]), fast_write(S,a(b,2)), close(S). S = (0x11799800). ?- open("/tmp/tt.dat",read,S,[encoding(octet)]), fast_read(S,X), close(S). S = (0x11799900), X = a(b,2). Please refer to: https://www.swi-prolog.org/pldoc/man?section=fastrw 1 post - 1 participant Read full topic
S
call_residual_program/2 appears to be sandboxed in swish, is that intended? Does it pose security problems? For example, in SWISH -- SWI-Prolog for SHaring the call call_residual_program(q,P). returns No permission to call sandboxed `'$tbl_delay_list'(_2306)' Reachable from: wfs:'$wfs_call'(A,0:B) call_residual_program(A,B) 5 posts - 2 participants Read full topic
S
I’m working on a small side project in SWI-Prolog that scrapes and normalizes product listings for camping gear, and the boards I follow keep mixing in reviews of portable toilets. I came across this [Mod Edit: Removing link] while figuring out what fields a listing should expose, and now I’m stuck on how deep to model the data. My plan is a small set of facts for capacity, dimensions and waste type, with DCG rules to pull those out of messy titles. The concern is that product attributes vary…
S
Dear SWI-Prolog user, SWI-Prolog 11.1.0 is ready for download. This is the first release of the 11.1.x development series. It adds garbage collection of predicates and modules created at runtime, fixes many races between threads that modify the database and speeds up the VM, reading and loading. Highlights: Core Code garbage collection: the new Prolog flag gc_code selects what is reclaimed: false, clause (default), procedure or module. At procedure, predicates created at runtime are reclaimed;…
S
Dear SWI-Prolog user,’ SWI-Prolog 11.0.0 is ready for download. Anyone running public services or processing untrusted data is advised to upgrade asap. I wanted to wait a bit longer with this release because too much is in flux and many new features have reached the development series only recently. A security audit by Claude code caused an early release. Despite this warning, I do not expect many new stability issues while many existing stability and correctness issues have been addressed. The…
S
Dear SWI-Prolog user, SWI-Prolog 10.1.21 is ready for download. This release adds generational garbage collection, thread-local atoms and blobs and garbage collection of functors, speeds up the VM and fixes many races between threads. It also hardens the core and many packages against untrusted input. New are the graphviz package and LSP support in PceEmacs. Highlights: Anyone running public services, notably Pengine based (e.g., SWISH) or processing untrusted data is adviced to upgrade ASAP. A…
S
The following program raises a failed assertion in the last SWI-Prolog stable version (and several older ones), but do not in version 7.6.4: % Run: swipl -q -s swi_stream_assertion_reproducer.pl % This program opens its own source for reading. % Observed on Windows 10 and 11: SWI-Prolog 10.0.2 and 9.2.9 abort with % "Assertion failed: ref->read->references" in src/os/pl-file.c. % SWI-Prolog 7.6.4 completes and prints "done". :- initialization(main, main). main :- source_file(main, File),…
S
Hi Jan, Would you consider enabling arm64 on the swi-prolog devel and stable PPAs? Launchpad currently builds them only for amd64 and i386. On arm64, apt install swi-prolog after adding the PPA quietly installs Ubuntu’s own 9.0.x instead. As far as I can tell, no packaging changes are needed. The source package is Architecture: any, and debian/rules already turns Java off on architectures that aren’t in swi-prolog-java’s list. An arm64 build would produce everything except swi-prolog-java, so I…
S
[Apologies for multiple receptions] Hello, This is a mail just for informing that the new release Datalog Educational System version 6.10 des.sourceforge.io Datalog Educational System mirrored at: Datalog Educational System with online playground: https://desweb.fdi.ucm.es has been launched on November, 11th, 2026, and tested for SICStus Prolog 4.4.1 SWI-Prolog 7.6.4 This version focuses on strengthening SQL semantic analysis, query optimization, language expressiveness and overall stability…
S
Bottom Line Up Front: I got my ILP system, Poker (vanilla/lib/poker at master · stassa/vanilla · GitHub), to learn the following DCGs for the Context-Sensitive language a^nb^nc^n. % Grammar 1 s --> a, b, c. s --> inv_1, c. inv_1 --> a, inv_2, s. inv_2, a --> a, inv_2. inv_2, b --> b, b. % Grammar 2 s --> a, b, c. s --> inv_1, s, c. inv_1 --> a, inv_2. inv_2, a --> a, inv_2. inv_2, b --> b, b. % Grammar 3 s --> a, b, c. s --> inv_1, s, c. inv_1 --> a, inv_2. inv_1, a --> a, inv_1. inv_2, b -->…
S
I’m building a small internal tool in SWI-Prolog that wraps our scheduling rules, and the last piece is a simple browser form so colleagues can submit requests without touching the toplevel. I keep seeing no-code and AI app builders advertised for this sort of thing, but most assume a JavaScript or Python backend, and I’d rather keep the logic in Prolog. My concern is whether serving a form and handling POSTs through the HTTP libraries is manageable for someone who has only used the toplevel…
S
I’m building a small scheduling tool as a side project and I want the rule logic in SWI-Prolog. I’ve been looking at AI app builders as a way to scaffold the front end and the API layer quickly, since I’m comfortable with Prolog but much less so with modern web stacks. What I’m unsure about is whether these tools can produce something that actually calls out to a Prolog process cleanly, or if they mostly assume a JavaScript or Python backend and I’d be fighting the generated code. I also worry…
S
This is my bookmark for the SWI Prolog docs and now I get a 502 bad gateway. Is there a different URL for the docs now? 2 posts - 2 participants Read full topic
S
Hi, on the https://cplint.eu machine, when running sudo service swish status, I have been getting translation errors for quite some time: nov 06 16:39:33 virtml run.sh[114456]: ERROR: [Thread httpd@3050_4] 2026-11-06 16:39:33.384 Failed to translate to HTML: \object_page(quintus:atom_char/2,[header(true)]) nov 06 16:39:41 virtml run.sh[114456]: ERROR: [Thread httpd@3050_5] 2026-11-06 16:39:41.918 Failed to translate to HTML: \object_page(quintus:skip_line/0,[header(true)]) nov 06 16:39:54…
S
Just for sharing: I am exploring the application of the Janus bridge, which connects Python and Prolog. But is such a system vulnerable to attacks from hackers? such a system is highly vulnerable to attacks if input is not handled correctly. The risks you listed are exactly the core vulnerabilities of the Janus bridge when implemented insecurely. Because Python and Prolog run within the same OS process, there is no isolation security between the two environments. If a hacker manages to inject…
S
SWIP v 10.1.20, MacOS, Apple silicon With the “exact” CPU profiler, I’ve been paying more attention to the impact of the garbage collector. My simple peg_parse BM is indicating 5-10% of the time is spent in GC. That was a bit of a surprise since I didn’t think this short BM (~25,000 inferences) produced much garbage to be collected. Using a small predicate to output GC statistics: get_garbage(G,GCs,CellsGained) :- garbage_collect, statistics(garbage_collection,[GC0,By0,_,_]), G,…
S
When I called PL_cvt_i_int() with a value 4294967296, I got back the error representation_error(uint). Shouldn’t this be domain_error(unit,4294967296)? The definition of representation_error/1 is: A representation error indicates a limitation of the implementation. SWI-Prolog has no such limits that are not covered by other errors, but an example of a representation error in another Prolog implementation could be an attempt to create a term with an arity higher than supported by the system.…
S
Progressing seems popular This topic is on improvements to the engine and asking people for suggestions and testing. I’ve pushed a number of commits that introduce thread local atoms/blobs. It started with the observation that, while blobs are a neat and safe way to encapsulate references to foreign resources, they tend to stress the global garbage collector and the conservative nature of SWI-Prolog’s AGC (Atom Garbage Collector) can cause foreign resources to leak. So, I started discussing…
S
Hello, I have issues parsing an UTF-8-YAML string using yaml_read. Do I miss something or is it a bug? I use Ubuntu and currently have this libyaml version installed: libyaml-0-2/noble,now 0.2.5-1build1 amd64 [Installiert,automatisch] Kind regards, Wolfram. $ swipl Welcome to SWI-Prolog (threaded, 64 bits, version 9.0.4) %... [trace] ?- yaml_read(string("name: Kovacs"),Yaml). Call: (10) yaml:yaml_read(string("name: Kovacs"), _1326) ? up Yaml = yaml{name:"Kovacs"}. [trace] ?-…
S
Is anyone using the protobufs compiler (protoc) to create *_pb.pl files for the protobufs module? I have discovered that the plugin (protoc-gen-swipl) doesn’t do the right thing for “package” and “import” statements, and changes to fix this wouldn’t be backward-compatible (although they would require only minor changes to code that uses them). One of the changes that I’m thinking of would require the use of a file_search_path/2 directive … I propose that it use the alias protobufs or…
S
Dear SWI-Prolog user, SWI-Prolog 10.1.20 is ready for download. This release fixes some build issues and slowdown on MacOS. It improves the profiler, which can now time exactly, makes tabling with many tables use much less memory and adds IDE tools to see where memory and time go and how tables depend on each other. Highlights: Core Profiler: profile/2 option exact(Bool) measures exact wall or CPU time rather than sampling. The new Prolog flag profile_exact (default auto) uses exact timing if…