# General

**URL:** https://swi-prolog.discourse.group/c/general/32.md?page=1

[Latest](https://swi-prolog.discourse.group/latest.md) · [Categories](https://swi-prolog.discourse.group/categories.md) · [Tags](https://swi-prolog.discourse.group/tags.md)

**Page:** 2

---

## [Atom\_json\_dict/3 options are not as documented](https://swi-prolog.discourse.group/t/atom-json-dict-3-options-are-not-as-documented/9806)

<div class="topic-metadata">

**Author:** [@mike.elston](https://swi-prolog.discourse.group/u/mike.elston)\
**Replies:** 1\
**Last updated:** [September 1, 2026, 6:59am UTC](https://swi-prolog.discourse.group/t/atom-json-dict-3-options-are-not-as-documented/9806 "2026-09-01T06:59:09Z")

</div>

atom\_json\_dict(-Text, +JSONDict, +Options) Convert between textual representation and a JSON term represented as a dict. Options are as for json\_read/3. json\_read(+Stream, -Term, +Options) The following options are pr…

---

## [Emacs - File - Show buffer menu error](https://swi-prolog.discourse.group/t/emacs-file-show-buffer-menu-error/9802)

<div class="topic-metadata">

**Author:** [@mike.elston](https://swi-prolog.discourse.group/u/mike.elston)\
**Replies:** 1\
**Last updated:** [August 30, 2026, 12:20pm UTC](https://swi-prolog.discourse.group/t/emacs-file-show-buffer-menu-error/9802 "2026-08-30T12:20:47Z")

</div>

Welcome to SWI-Prolog (threaded, 64 bits, version 10.1.13-75-gb8d1d7413) Emacs - File - Show buffer menu 101 ?- emacs. true. \[PCE warning: \<pce\>(0xaaaae9f45420,emacs\_buffer\_menu): No implementation for: -\>icon …

---

## [Unicode NO-BREAK SPACE not normalized by normalize\_space/2](https://swi-prolog.discourse.group/t/unicode-no-break-space-not-normalized-by-normalize-space-2/9800)

<div class="topic-metadata">

**Author:** [@mike.elston](https://swi-prolog.discourse.group/u/mike.elston)\
**Replies:** 4\
**Last updated:** [August 29, 2026, 8:06pm UTC](https://swi-prolog.discourse.group/t/unicode-no-break-space-not-normalized-by-normalize-space-2/9800 "2026-08-29T20:06:36Z")

</div>

The documentation for normalize\_space/2 says: All non-empty sequences for Unicode white space characters are replaced by a single space (\\u0020) character. but atom\_codes(A, \[0x00A0\]),normalize\_space(atom(X),A). A = …

---

## [Wikipedia WASM](https://swi-prolog.discourse.group/t/wikipedia-wasm/9801)

<div class="topic-metadata">

**Author:** [@wlodr](https://swi-prolog.discourse.group/u/wlodr)\
**Replies:** 0\
**Last updated:** [August 29, 2026, 9:15am UTC](https://swi-prolog.discourse.group/t/wikipedia-wasm/9801 "2026-08-29T09:15:36Z")

</div>

In the WASM article at Wikipedia, WebAssembly - Wikipedia, there is a list of supported programming languages. It includes Haskell and Scheme, but not Prolog. Could I suggest anyone competent to add it ?

---

## [Help with extremely large integer arithmetic](https://swi-prolog.discourse.group/t/help-with-extremely-large-integer-arithmetic/9768)

<div class="topic-metadata">

**Author:** [@PlacidPlatypus](https://swi-prolog.discourse.group/u/PlacidPlatypus)\
**Replies:** 19\
**Last updated:** [August 28, 2026, 3:39pm UTC](https://swi-prolog.discourse.group/t/help-with-extremely-large-integer-arithmetic/9768 "2026-08-28T15:39:54Z")

</div>

G’day all. For reasons that rhyme with “busy beaver”, I have been using SWI-Prolog for evaluating expressions that can involve integers which are tens of thousands of digits long. So far, with the largest expression eval…

---

## [New SDL+Cairo bindings pack](https://swi-prolog.discourse.group/t/new-sdl-cairo-bindings-pack/9794)

<div class="topic-metadata">

**Author:** [@kwon-young](https://swi-prolog.discourse.group/u/kwon-young)\
**Replies:** 3\
**Last updated:** [August 26, 2026, 12:00pm UTC](https://swi-prolog.discourse.group/t/new-sdl-cairo-bindings-pack/9794 "2026-08-26T12:00:29Z")

</div>

Hello, I’ve just finished cleaning up my SDL and Cairo bindings: GitHub - kwon-young/sdlpl: SWI-Prolog bindings to SDL · GitHub Here are main features of the bindings: true 1 to 1 bindings of SDL and Cairo API. Memor…

---

## [Installing and using third party packs in WASM swipl](https://swi-prolog.discourse.group/t/installing-and-using-third-party-packs-in-wasm-swipl/9107)

<div class="topic-metadata">

**Author:** [@meditans](https://swi-prolog.discourse.group/u/meditans)\
**Replies:** 10\
**Last updated:** [August 25, 2026, 11:13am UTC](https://swi-prolog.discourse.group/t/installing-and-using-third-party-packs-in-wasm-swipl/9107 "2026-08-25T11:13:00Z")

</div>

As the title says, I didn’t find a way to install and use a third party pack while using WASM swipl. Can this be done?

---

## [SWI-Prolog MCP server and service - Reply # 02](https://swi-prolog.discourse.group/t/swi-prolog-mcp-server-and-service-reply-02/9796)

<div class="topic-metadata">

**Author:** [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Replies:** 0\
**Last updated:** [August 23, 2026, 9:57pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-mcp-server-and-service-reply-02/9796 "2026-08-23T21:57:41Z")

</div>

I hope you are feeling much better. I think of you every day. I have finally found a project where using the SWI-Prolog MCP server could be particularly beneficial. I am developing a web-based UI and agent harness for d…

---

## [Personal notes on health, AI, and the direction of SWI-Prolog](https://swi-prolog.discourse.group/t/personal-notes-on-health-ai-and-the-direction-of-swi-prolog/9701)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 28\
**Last updated:** [August 23, 2026, 2:07pm UTC](https://swi-prolog.discourse.group/t/personal-notes-on-health-ai-and-the-direction-of-swi-prolog/9701 "2026-08-23T14:07:42Z")

</div>

Dear SWI-Prolog user, This is set of rather personal notes. Some users may have noticed changes in how I manage SWI-Prolog. Most recent contributions have been implemented by Claude Code and I’ve not been very activ…

---

## [Bug logging into https://www.swi-prolog.org/](https://swi-prolog.discourse.group/t/bug-logging-into-https-www-swi-prolog-org/9795)

<div class="topic-metadata">

**Author:** [@jbsiddall](https://swi-prolog.discourse.group/u/jbsiddall)\
**Replies:** 2\
**Last updated:** [August 23, 2026, 12:23pm UTC](https://swi-prolog.discourse.group/t/bug-logging-into-https-www-swi-prolog-org/9795 "2026-08-23T12:23:52Z")

</div>

Reproduce: Goto swi-prolog site Click login link in page footer click “sign in with “ + Google icon follow Google oauth until successful redirected can to swi I expected to see the normal swi page I started on, and ho…

---

## [Inspecting programs with attributed variables using clause/2](https://swi-prolog.discourse.group/t/inspecting-programs-with-attributed-variables-using-clause-2/9783)

<div class="topic-metadata">

**Author:** [@stassa.p](https://swi-prolog.discourse.group/u/stassa.p)\
**Replies:** 54\
**Last updated:** [August 22, 2026, 2:16pm UTC](https://swi-prolog.discourse.group/t/inspecting-programs-with-attributed-variables-using-clause-2/9783 "2026-08-22T14:16:43Z")

</div>

I have this code that uses library(clpBNR): edge(T, A, B) :- seg(A1, B1), point(A,PA), point(B,PB), dist(A1, PA, T), dist(B1, PB, T). dist(p(X1, Y1), p(X2, Y2), D) :- % clpBNR co…

---

## [Can language models learn unknown game rules?](https://swi-prolog.discourse.group/t/can-language-models-learn-unknown-game-rules/9791)

<div class="topic-metadata">

**Author:** [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Replies:** 0\
**Last updated:** [August 21, 2026, 4:01pm UTC](https://swi-prolog.discourse.group/t/can-language-models-learn-unknown-game-rules/9791 "2026-08-21T16:01:05Z")

</div>

21 of the 70 games are public. Tiers get increasingly harder for models (1 = easiest, 7 = hardest). dig.bench is a benchmark of scientific discovery. Each of its 70 games measures whether an agent can experiment t…

---

## [Multiple swi prolog webservers](https://swi-prolog.discourse.group/t/multiple-swi-prolog-webservers/9789)

<div class="topic-metadata">

**Author:** [@drspro](https://swi-prolog.discourse.group/u/drspro)\
**Replies:** 3\
**Last updated:** [August 21, 2026, 11:51am UTC](https://swi-prolog.discourse.group/t/multiple-swi-prolog-webservers/9789 "2026-08-21T11:51:26Z")

</div>

on 1 windows server i have 2 swi prolog http servers running for which swi prolog is present in 2 different directory trees and i always run them by creating a cmd console window in the BIN directory , and then run…

---

## [Towards Structured State Threading](https://swi-prolog.discourse.group/t/towards-structured-state-threading/9790)

<div class="topic-metadata">

**Author:** [@Olopierpa](https://swi-prolog.discourse.group/u/Olopierpa)\
**Replies:** 2\
**Last updated:** [August 20, 2026, 6:04pm UTC](https://swi-prolog.discourse.group/t/towards-structured-state-threading/9790 "2026-08-20T18:04:47Z")

</div>

Does anyone know a non-paywalled source for the paper IVANOVIC, D., MORALES CABALLERO, J. F., CARRO, M., AND HERMENEGILDO, M. 2009. Towards structured state threading in Prolog. In CICLOPS 2009. Thanks!

---

## [Sets of rules as conjunctions and/or disjunctions](https://swi-prolog.discourse.group/t/sets-of-rules-as-conjunctions-and-or-disjunctions/9779)

<div class="topic-metadata">

**Author:** [@stassa.p](https://swi-prolog.discourse.group/u/stassa.p)\
**Replies:** 42\
**Last updated:** [August 16, 2026, 7:14pm UTC](https://swi-prolog.discourse.group/t/sets-of-rules-as-conjunctions-and-or-disjunctions/9779 "2026-08-16T19:14:05Z")

</div>

Over at the ILP Discord server there was a discussion about whether a set of Prolog rules should be seen as a disjunction or a conjunction. The, let’s say “traditional” interpretation that one can find in many Prolog so…

---

## [Prolog code](https://swi-prolog.discourse.group/t/prolog-code/9787)

<div class="topic-metadata">

**Author:** [@kgokane.kgokane](https://swi-prolog.discourse.group/u/kgokane.kgokane)\
**Replies:** 1\
**Last updated:** [August 16, 2026, 3:25pm UTC](https://swi-prolog.discourse.group/t/prolog-code/9787 "2026-08-16T15:25:59Z")

</div>

Write a tail-recursive Prolog procedure count\_vars(L,N) that counts the number of instantiated variables in the list Land returns the result in N

---

## [I've created TrackLog: a collection of Prolog libraries, examples, and guidelines for building a personal knowledge base in pure logic](https://swi-prolog.discourse.group/t/ive-created-tracklog-a-collection-of-prolog-libraries-examples-and-guidelines-for-building-a-personal-knowledge-base-in-pure-logic/9785)

<div class="topic-metadata">

**Author:** [@iaroslav\_baranov](https://swi-prolog.discourse.group/u/iaroslav_baranov)\
**Replies:** 0\
**Last updated:** [August 11, 2026, 7:58am UTC](https://swi-prolog.discourse.group/t/ive-created-tracklog-a-collection-of-prolog-libraries-examples-and-guidelines-for-building-a-personal-knowledge-base-in-pure-logic/9785 "2026-08-11T07:58:35Z")

</div>

TrackLog blurs the boundaries between database administration and programming TrackLog is based on Formal Grammar (DCG): you will develop your own grammar to accomodate your language needs TrackLog will help you …

---

## [Pong Game Challenge](https://swi-prolog.discourse.group/t/pong-game-challenge/9782)

<div class="topic-metadata">

**Author:** [@kwon-young](https://swi-prolog.discourse.group/u/kwon-young)\
**Replies:** 5\
**Last updated:** [August 9, 2026, 1:07pm UTC](https://swi-prolog.discourse.group/t/pong-game-challenge/9782 "2026-08-09T13:07:17Z")

</div>

Hello, Thanks to @jamesnvc post: For fun: rushhour game - #6 by jamesnvc I went back and cleaned up my SDL bindings, porting to cmake + SDL3: GitHub - kwon-young/sdlpl: SWI-Prolog bindings to SDL · GitHub I have worki…

---

## [Setting up SWISH for collaboration](https://swi-prolog.discourse.group/t/setting-up-swish-for-collaboration/9778)

<div class="topic-metadata">

**Author:** [@stassa.p](https://swi-prolog.discourse.group/u/stassa.p)\
**Replies:** 7\
**Last updated:** [August 6, 2026, 5:42pm UTC](https://swi-prolog.discourse.group/t/setting-up-swish-for-collaboration/9778 "2026-08-06T17:42:47Z")

</div>

I’d like to use SWISH to collaborate with a colleague. I’ve tried to understand whether it is possible to do that and how, but I can’t seem to find where this is explained. The SWISH examples on SWISH -- SWI-Prolog for S…

---

## [Listing/1 works slowly in specific circrumstances](https://swi-prolog.discourse.group/t/listing-1-works-slowly-in-specific-circrumstances/9780)

<div class="topic-metadata">

**Author:** [@AlexeyKosarchuk](https://swi-prolog.discourse.group/u/AlexeyKosarchuk)\
**Replies:** 5\
**Last updated:** [August 6, 2026, 6:42am UTC](https://swi-prolog.discourse.group/t/listing-1-works-slowly-in-specific-circrumstances/9780 "2026-08-06T06:42:54Z")

</div>

I have strange situation using SWI Prolog listing/1 predicate. I have several dynamic predicates used as database for some state. Initially state is constructed from scratch by some program. Then I can save it to file …

---

## [For fun: rushhour game](https://swi-prolog.discourse.group/t/for-fun-rushhour-game/9713)

<div class="topic-metadata">

**Author:** [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Replies:** 14\
**Last updated:** [August 5, 2026, 4:02pm UTC](https://swi-prolog.discourse.group/t/for-fun-rushhour-game/9713 "2026-08-05T16:02:26Z")

</div>

Summer is coming, but it’s too hot outside, so let’s have fun inside. I googled around to see how the rush hour game is implemented in Prolog, and I wonder how a 6x6 rectangular game should be represented. like this? \[…

---

## [RE: For fun: rushhour game](https://swi-prolog.discourse.group/t/re-for-fun-rushhour-game/9773)

<div class="topic-metadata">

**Author:** [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Replies:** 1\
**Last updated:** [August 1, 2026, 2:19pm UTC](https://swi-prolog.discourse.group/t/re-for-fun-rushhour-game/9773 "2026-08-01T14:19:08Z")

</div>

I’ll look at it tomorrow, thank you! Steps: render game in a nxn-table (probably easy) understand how portray works (probably easy) There also seems to be some html-version of portray, though I didn’t understand it …

---

## [Showcase: 6.9-Hour Endurance & Concurrency Test of a Commercial POS Core Engine (140 Billion Inferences, Zero Memory Leak)](https://swi-prolog.discourse.group/t/showcase-6-9-hour-endurance-concurrency-test-of-a-commercial-pos-core-engine-140-billion-inferences-zero-memory-leak/9730)

<div class="topic-metadata">

**Author:** [@lokinpendawa](https://swi-prolog.discourse.group/u/lokinpendawa)\
**Replies:** 7\
**Last updated:** [July 27, 2026, 9:47pm UTC](https://swi-prolog.discourse.group/t/showcase-6-9-hour-endurance-concurrency-test-of-a-commercial-pos-core-engine-140-billion-inferences-zero-memory-leak/9730 "2026-07-27T21:47:31Z")

</div>

Hi everyone, I want to start by saying that I am a complete beginner in programming. I have zero background in computer science, and I only started learning coding from scratch about two months ago. My friends originall…

---

## [The Unrusting Blade: An Offline-First LogicBiz V.2.0 Powered by SWI-Prolog & SQLCipher - Reply 01](https://swi-prolog.discourse.group/t/the-unrusting-blade-an-offline-first-logicbiz-v-2-0-powered-by-swi-prolog-sqlcipher-reply-01/9752)

<div class="topic-metadata">

**Author:** [@heiheshang](https://swi-prolog.discourse.group/u/heiheshang)\
**Replies:** 8\
**Last updated:** [July 25, 2026, 2:58pm UTC](https://swi-prolog.discourse.group/t/the-unrusting-blade-an-offline-first-logicbiz-v-2-0-powered-by-swi-prolog-sqlcipher-reply-01/9752 "2026-07-25T14:58:20Z")

</div>

Thank you so much for sharing information about the LogicBiz V.2.0 project! I use SWI-Prolog in my daily work, so it’s especially valuable to me to see this wonderful language being used to create serious commercial pro…

---

## [Fast Term Factorization via Paige-Tarjan: Bypassing ==/2 and compare/2](https://swi-prolog.discourse.group/t/fast-term-factorization-via-paige-tarjan-bypassing-2-and-compare-2/9725)

<div class="topic-metadata">

**Author:** [@kuniaki.mukai](https://swi-prolog.discourse.group/u/kuniaki.mukai)\
**Replies:** 16\
**Last updated:** [July 15, 2026, 6:01pm UTC](https://swi-prolog.discourse.group/t/fast-term-factorization-via-paige-tarjan-bypassing-2-and-compare-2/9725 "2026-07-15T18:01:46Z")

</div>

I am experimenting with an alternative approach to term factorization based on the Paige-Tarjan minimization method. From a theoretical standpoint, I doubt the current implementation of term\_factorized/3—which relies on c…

---

## [Bug in unifying dictionaries that contain CLP(Q) constraints](https://swi-prolog.discourse.group/t/bug-in-unifying-dictionaries-that-contain-clp-q-constraints/9737)

<div class="topic-metadata">

**Author:** [@AZH](https://swi-prolog.discourse.group/u/AZH)\
**Replies:** 4\
**Last updated:** [July 14, 2026, 11:44am UTC](https://swi-prolog.discourse.group/t/bug-in-unifying-dictionaries-that-contain-clp-q-constraints/9737 "2026-07-14T11:44:43Z")

</div>

Hi there, just got what seems like a bug: :- use\_module(library(clpq)). test :- X = #{a:0,b:1}, Y = #{a:\_,b:\_,c:\_}, {Y.a + Y.b = Y.c}, {Y.c \> 0}, X \>:\< Y. The above test fails u…

---

## [Bug in clause/2?](https://swi-prolog.discourse.group/t/bug-in-clause-2/9726)

<div class="topic-metadata">

**Author:** [@Iam](https://swi-prolog.discourse.group/u/Iam)\
**Replies:** 12\
**Last updated:** [July 11, 2026, 1:06pm UTC](https://swi-prolog.discourse.group/t/bug-in-clause-2/9726 "2026-07-11T13:06:23Z")

</div>

I am using SWI-Prolog (threaded, 64 bits, version 10.0.2) on a Mac M3. My single line program is: test(L) :- ( L = a ) . My query is ?- clause(test(L),Body). I expected to get the same answer that I got in SW…

---

## [Problems tcp/ip tcp\_connect/2 to tcp\_connect/3 while upgrading from 8.x to 9.x or 10.x](https://swi-prolog.discourse.group/t/problems-tcp-ip-tcp-connect-2-to-tcp-connect-3-while-upgrading-from-8-x-to-9-x-or-10-x/9723)

<div class="topic-metadata">

**Author:** [@jayprakashnair](https://swi-prolog.discourse.group/u/jayprakashnair)\
**Replies:** 1\
**Last updated:** [July 6, 2026, 7:59am UTC](https://swi-prolog.discourse.group/t/problems-tcp-ip-tcp-connect-2-to-tcp-connect-3-while-upgrading-from-8-x-to-9-x-or-10-x/9723 "2026-07-06T07:59:56Z")

</div>

I am involved in the development of a platform using SWI Prolog ver. 8.x. But with the advent of newer versions, things have become messed up, especially when we try to use the TCP protocol to open sockets and communica…

---

## [Issues with UNC path](https://swi-prolog.discourse.group/t/issues-with-unc-path/9010)

<div class="topic-metadata">

**Author:** [@nijan104](https://swi-prolog.discourse.group/u/nijan104)\
**Replies:** 9\
**Last updated:** [July 1, 2026, 6:02pm UTC](https://swi-prolog.discourse.group/t/issues-with-unc-path/9010 "2026-07-01T18:02:33Z")

</div>

Hi Jan, I am trying to upgrade my project from swi prolog version 5.6.48 to version 9.2.9-1 but came across some issues with UNC paths. First issue appeared when I was trying to load a dll from a UNC path When I …

---

## [SWI-Prolog MCP server and service - Reply # 01](https://swi-prolog.discourse.group/t/swi-prolog-mcp-server-and-service-reply-01/9717)

<div class="topic-metadata">

**Author:** [@alanbur](https://swi-prolog.discourse.group/u/alanbur)\
**Replies:** 3\
**Last updated:** [July 1, 2026, 8:33am UTC](https://swi-prolog.discourse.group/t/swi-prolog-mcp-server-and-service-reply-01/9717 "2026-07-01T08:33:21Z")

</div>

It doesn’t work with Codex: MCP client for \`SWI-Prolog\` failed to start: MCP startup failed: handshaking with MCP server failed: Send message error Transport \[rmcp::transport::worker::WorkerTransport\<rmcp::transport…

[Previous page](https://swi-prolog.discourse.group/c/general/32.md)

[Next page](https://swi-prolog.discourse.group/c/general/32.md?page=2)
