# Latest

**URL:** https://swi-prolog.discourse.group/latest.md

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

---

## [When posting using mail, please use markdown](https://swi-prolog.discourse.group/t/when-posting-using-mail-please-use-markdown/241)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 3\
**Last updated:** [March 13, 2019, 3:19pm UTC](https://swi-prolog.discourse.group/t/when-posting-using-mail-please-use-markdown/241 "2019-03-13T15:19:50Z")

</div>

Notably those posting using mail, be aware that the forum handles your message as markdown. In most cases the result is not too bad even if you are not aware of this. It is wise to respect a few rules though: When …

---

## [Welcome to Discourse](https://swi-prolog.discourse.group/t/welcome-to-discourse/7)

<div class="topic-metadata">

**Author:** [@system](https://swi-prolog.discourse.group/u/system)\
**Replies:** 0\
**Last updated:** [February 4, 2019, 10:56am UTC](https://swi-prolog.discourse.group/t/welcome-to-discourse/7 "2019-02-04T10:56:12Z")

</div>

Welcome to the free SWI-Prolog Discourse forum. SWI-Prolog is a comprehensive open source implementation of the Prolog programming language. This forum has categories which discuss things such as user issues (how can …

---

## [Can an AI app builder generate a working Prolog backend for a small tool?](https://swi-prolog.discourse.group/t/can-an-ai-app-builder-generate-a-working-prolog-backend-for-a-small-tool/9891)

<div class="topic-metadata">

**Author:** [@williamlewis](https://swi-prolog.discourse.group/u/williamlewis)\
**Replies:** 1\
**Last updated:** [November 9, 2026, 6:20pm UTC](https://swi-prolog.discourse.group/t/can-an-ai-app-builder-generate-a-working-prolog-backend-for-a-small-tool/9891 "2026-11-09T18:20:16Z")

</div>

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 wit…

---

## [Can SWI-Prolog drive a small no-code web UI instead of an AI builder?](https://swi-prolog.discourse.group/t/can-swi-prolog-drive-a-small-no-code-web-ui-instead-of-an-ai-builder/9892)

<div class="topic-metadata">

**Author:** [@williamlewis](https://swi-prolog.discourse.group/u/williamlewis)\
**Replies:** 0\
**Last updated:** [November 9, 2026, 6:47am UTC](https://swi-prolog.discourse.group/t/can-swi-prolog-drive-a-small-no-code-web-ui-instead-of-an-ai-builder/9892 "2026-11-09T06:47:40Z")

</div>

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 …

---

## [Http://www.swi-prolog.org/pldoc/doc\_for?object=manual](https://swi-prolog.discourse.group/t/http-www-swi-prolog-org-pldoc-doc-for-object-manual/9886)

<div class="topic-metadata">

**Author:** [@mcculloch](https://swi-prolog.discourse.group/u/mcculloch)\
**Replies:** 1\
**Last updated:** [November 8, 2026, 2:12pm UTC](https://swi-prolog.discourse.group/t/http-www-swi-prolog-org-pldoc-doc-for-object-manual/9886 "2026-11-08T14:12:25Z")

</div>

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?

---

## [Progressing the SWI-Prolog environment](https://swi-prolog.discourse.group/t/progressing-the-swi-prolog-environment/9090)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 255\
**Last updated:** [November 8, 2026, 11:16am UTC](https://swi-prolog.discourse.group/t/progressing-the-swi-prolog-environment/9090 "2026-11-08T11:16:10Z")

</div>

This topic is a follow up for Future of XPCE. The initial plan was to give xpce, the SWI-Prolog GUI library, a boost to keep it alive. As a result, xpce is now being moved to SDL+Cairo+Pango, providing an excellent cro…

---

## [Translation to HTML errors](https://swi-prolog.discourse.group/t/translation-to-html-errors/9884)

<div class="topic-metadata">

**Author:** [@friguzzi](https://swi-prolog.discourse.group/u/friguzzi)\
**Replies:** 1\
**Last updated:** [November 7, 2026, 10:19am UTC](https://swi-prolog.discourse.group/t/translation-to-html-errors/9884 "2026-11-07T10:19:48Z")

</div>

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 1…

---

## [Representation\_error, domain\_error, type\_error](https://swi-prolog.discourse.group/t/representation-error-domain-error-type-error/9881)

<div class="topic-metadata">

**Author:** [@peter.ludemann](https://swi-prolog.discourse.group/u/peter.ludemann)\
**Replies:** 6\
**Last updated:** [November 7, 2026, 2:49am UTC](https://swi-prolog.discourse.group/t/representation-error-domain-error-type-error/9881 "2026-11-07T02:49:22Z")

</div>

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 err…

---

## ["Garbage" questions](https://swi-prolog.discourse.group/t/garbage-questions/9882)

<div class="topic-metadata">

**Author:** [@ridgeworks](https://swi-prolog.discourse.group/u/ridgeworks)\
**Replies:** 6\
**Last updated:** [November 6, 2026, 4:43pm UTC](https://swi-prolog.discourse.group/t/garbage-questions/9882 "2026-11-06T16:43:08Z")

</div>

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…

---

## [Progressing the SWI-Prolog engine](https://swi-prolog.discourse.group/t/progressing-the-swi-prolog-engine/9880)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 4\
**Last updated:** [November 5, 2026, 2:50pm UTC](https://swi-prolog.discourse.group/t/progressing-the-swi-prolog-engine/9880 "2026-11-05T14:50:41Z")

</div>

Progressing seems popular :slight\_smile: 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 w…

---

## [Is anyone using the protobufs compiler plug-in? (It doesn't do the right thing for "package" and "import")](https://swi-prolog.discourse.group/t/is-anyone-using-the-protobufs-compiler-plug-in-it-doesnt-do-the-right-thing-for-package-and-import/9877)

<div class="topic-metadata">

**Author:** [@peter.ludemann](https://swi-prolog.discourse.group/u/peter.ludemann)\
**Replies:** 1\
**Last updated:** [November 4, 2026, 8:20pm UTC](https://swi-prolog.discourse.group/t/is-anyone-using-the-protobufs-compiler-plug-in-it-doesnt-do-the-right-thing-for-package-and-import/9877 "2026-11-04T20:20:19Z")

</div>

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, …

---

## [Hacking Janus bridge, which connects Python and Prolog](https://swi-prolog.discourse.group/t/hacking-janus-bridge-which-connects-python-and-prolog/9883)

<div class="topic-metadata">

**Author:** [@labormarket](https://swi-prolog.discourse.group/u/labormarket)\
**Replies:** 0\
**Last updated:** [November 3, 2026, 8:52pm UTC](https://swi-prolog.discourse.group/t/hacking-janus-bridge-which-connects-python-and-prolog/9883 "2026-11-03T20:52:56Z")

</div>

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…

---

## [Jev, Prolog, Pi, and the dream of probabilistic logic programming](https://swi-prolog.discourse.group/t/jev-prolog-pi-and-the-dream-of-probabilistic-logic-programming/9823)

<div class="topic-metadata">

**Author:** [@apfadler](https://swi-prolog.discourse.group/u/apfadler)\
**Replies:** 11\
**Last updated:** [November 3, 2026, 11:44am UTC](https://swi-prolog.discourse.group/t/jev-prolog-pi-and-the-dream-of-probabilistic-logic-programming/9823 "2026-11-03T11:44:10Z")

</div>

Hi all, Jev, a new model (not an LLM, bit rather a modern version of BERT), has been making the rounds on the usual outlets these past few days. As I believe the core concepts of Jev map very neatly onto Prolog predicat…

---

## [Issue with UTF-8 in yaml\_read](https://swi-prolog.discourse.group/t/issue-with-utf-8-in-yaml-read/9879)

<div class="topic-metadata">

**Author:** [@wdiestel](https://swi-prolog.discourse.group/u/wdiestel)\
**Replies:** 2\
**Last updated:** [November 2, 2026, 4:52pm UTC](https://swi-prolog.discourse.group/t/issue-with-utf-8-in-yaml-read/9879 "2026-11-02T16:52:59Z")

</div>

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 \[Instal…

---

## [Ann: SWI-Prolog 10.1.20](https://swi-prolog.discourse.group/t/ann-swi-prolog-10-1-20/9876)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 3\
**Last updated:** [November 1, 2026, 10:02am UTC](https://swi-prolog.discourse.group/t/ann-swi-prolog-10-1-20/9876 "2026-11-01T10:02:38Z")

</div>

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 mu…

---

## [Why does call\_with\_time\_limit/2 fail to interrupt tight repeat loops with frequent I/O?](https://swi-prolog.discourse.group/t/why-does-call-with-time-limit-2-fail-to-interrupt-tight-repeat-loops-with-frequent-i-o/9858)

<div class="topic-metadata">

**Author:** [@kuniaki.mukai](https://swi-prolog.discourse.group/u/kuniaki.mukai)\
**Replies:** 12\
**Last updated:** [November 1, 2026, 4:07am UTC](https://swi-prolog.discourse.group/t/why-does-call-with-time-limit-2-fail-to-interrupt-tight-repeat-loops-with-frequent-i-o/9858 "2026-11-01T04:07:23Z")

</div>

Hi all, I have been benchmarking several rational tree comparison predicates (including Foreign C implementations) by fuzz-testing them against transitivity: generating random terms and searching for counterexamples (X\<Y…

---

## [Ann: SWI-Prolog 10.1.19](https://swi-prolog.discourse.group/t/ann-swi-prolog-10-1-19/9874)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 15\
**Last updated:** [October 30, 2026, 5:56pm UTC](https://swi-prolog.discourse.group/t/ann-swi-prolog-10-1-19/9874 "2026-10-30T17:56:37Z")

</div>

Dear SWI-Prolog user, SWI-Prolog 10.1.19 is ready for download. The core has a faster virtual machine and much faster tabling. XPCE can now handle sound, cameras, video, gamepads, pens and touch screens, draw using …

---

## [Pack publishing issues (tui pack)](https://swi-prolog.discourse.group/t/pack-publishing-issues-tui-pack/9875)

<div class="topic-metadata">

**Author:** [@z5h](https://swi-prolog.discourse.group/u/z5h)\
**Replies:** 4\
**Last updated:** [October 30, 2026, 4:50pm UTC](https://swi-prolog.discourse.group/t/pack-publishing-issues-tui-pack/9875 "2026-10-30T16:50:40Z")

</div>

There was an issue where a discrepancy between a pack tame and git repo tame caused some problems. Jan, we chatted in the Discourse. I renamed my repo. The repo is tui. The pack is tui. I’m able to publish, bur the re…

---

## [Other languages are different, but not that different](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838)

<div class="topic-metadata">

**Author:** [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Replies:** 6\
**Last updated:** [October 30, 2026, 8:41am UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838 "2026-10-30T08:41:03Z")

</div>

I think the original quote is from O’Keefe “Prolog is different, but not that different.” Those students used to procedural/imperative languages sometimes have a hard time getting started with prolog, because it is a bi…

---

## [Upgrade from 9.2.9 to 10.0.2 missing "system resources"](https://swi-prolog.discourse.group/t/upgrade-from-9-2-9-to-10-0-2-missing-system-resources/9583)

<div class="topic-metadata">

**Author:** [@DewayneG](https://swi-prolog.discourse.group/u/DewayneG)\
**Replies:** 11\
**Last updated:** [October 29, 2026, 6:46pm UTC](https://swi-prolog.discourse.group/t/upgrade-from-9-2-9-to-10-0-2-missing-system-resources/9583 "2026-10-29T18:46:48Z")

</div>

I’m struggling to upgrade swipl 9.2.9 to 10.0.2 on FreeBSD 14.3. After a successful build and installation of the package, when I try to run swipl via CLI only (without GUI or X, which is how I normally use swipl). # sw…

---

## [Display a variable with write](https://swi-prolog.discourse.group/t/display-a-variable-with-write/9700)

<div class="topic-metadata">

**Author:** [@gerard26](https://swi-prolog.discourse.group/u/gerard26)\
**Replies:** 9\
**Last updated:** [October 26, 2026, 7:57am UTC](https://swi-prolog.discourse.group/t/display-a-variable-with-write/9700 "2026-10-26T07:57:46Z")

</div>

I’m using: SWI-Prolog version 9.29 I want the code to:display the contents of the variable X But what I’m getting is: \_3014 is a variable My code looks like this: ... test(X) :- var(X), write(X), write(' …

---

## [Progressing the XPCE GUI](https://swi-prolog.discourse.group/t/progressing-the-xpce-gui/9873)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 1\
**Last updated:** [October 22, 2026, 5:52am UTC](https://swi-prolog.discourse.group/t/progressing-the-xpce-gui/9873 "2026-10-22T05:52:44Z")

</div>

I’ve created this topic next to Progressing the SWI-Prolog environment. That topic is about using xpce for the Prolig IDE. This is about XPCE itself. The main achievements that relate to both are: Tabs and tiled su…

---

## [TUI (Terminal User Interface) pack](https://swi-prolog.discourse.group/t/tui-terminal-user-interface-pack/9868)

<div class="topic-metadata">

**Author:** [@z5h](https://swi-prolog.discourse.group/u/z5h)\
**Replies:** 11\
**Last updated:** [October 21, 2026, 7:37pm UTC](https://swi-prolog.discourse.group/t/tui-terminal-user-interface-pack/9868 "2026-10-21T19:37:46Z")

</div>

I’ve published a TUI library. I did the design/prototyping/optimization of the MVP. Then worked with Claude Code to add features and polish before publishing. Features include: TEA-inspired model/view/update · term-bas…

---

## [Thread\_get\_message/3 can spin with a pending signal during cleanup](https://swi-prolog.discourse.group/t/thread-get-message-3-can-spin-with-a-pending-signal-during-cleanup/9870)

<div class="topic-metadata">

**Author:** [@torbjorn.lager](https://swi-prolog.discourse.group/u/torbjorn.lager)\
**Replies:** 1\
**Last updated:** [October 20, 2026, 1:37pm UTC](https://swi-prolog.discourse.group/t/thread-get-message-3-can-spin-with-a-pending-signal-during-cleanup/9870 "2026-10-20T13:37:02Z")

</div>

Upstream report: zero-time thread\_get\_message/3 can spin with a pending signal during cleanup Environment SWI-Prolog 10.1.17 and 10.1.18, with version\_data = swi(10,1,17,\[\]) and swi(10,1,18,\[\]) respectively; both repor…

---

## [\[Flash Report\] Fast sorting & canonical deduplication for rational trees via C foreign predicate (tcoa\_sort/2)](https://swi-prolog.discourse.group/t/flash-report-fast-sorting-canonical-deduplication-for-rational-trees-via-c-foreign-predicate-tcoa-sort-2/9863)

<div class="topic-metadata">

**Author:** [@kuniaki.mukai](https://swi-prolog.discourse.group/u/kuniaki.mukai)\
**Replies:** 7\
**Last updated:** [October 19, 2026, 7:16pm UTC](https://swi-prolog.discourse.group/t/flash-report-fast-sorting-canonical-deduplication-for-rational-trees-via-c-foreign-predicate-tcoa-sort-2/9863 "2026-10-19T19:16:53Z")

</div>

I would like to share an experimental C-based foreign predicate, tcoa\_sort/2, designed to sort and deduplicate lists of terms (including rational trees/cyclic terms) up to bisimilarity on a 1,000,000-term scale. Approa…

---

## [Performance work](https://swi-prolog.discourse.group/t/performance-work/9866)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 0\
**Last updated:** [October 17, 2026, 3:34pm UTC](https://swi-prolog.discourse.group/t/performance-work/9866 "2026-10-17T15:34:49Z")

</div>

The current GIT version brings some interesting performance improvements. Tabling, using GitHub - JanWielemaker/tabling\_benchmarks: Benchmarks for tabling · GitHub has pretty much double the performance on all aspects …

---

## [Ann: SWI-Prolog 10.1.18](https://swi-prolog.discourse.group/t/ann-swi-prolog-10-1-18/9859)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 8\
**Last updated:** [October 17, 2026, 3:23pm UTC](https://swi-prolog.discourse.group/t/ann-swi-prolog-10-1-18/9859 "2026-10-17T15:23:57Z")

</div>

Dear SWI-Prolog user, SWI-Prolog 10.1.18 is ready for download. This version modernises the GUI: dialog items have a flat, themed look, everything can be operated from the keyboard and there are editors for the GUI p…

---

## [Internationalization support](https://swi-prolog.discourse.group/t/internationalization-support/4575)

<div class="topic-metadata">

**Author:** [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Replies:** 12\
**Last updated:** [November 8, 2026, 5:06pm UTC](https://swi-prolog.discourse.group/t/internationalization-support/4575 "2026-11-08T17:06:10Z")

</div>

Loosely related since you mention language files. If anyone can share a bit of experience with swipl and internationalization (e.g., interoperability with gettext), that would be very helpful.

---

## [Possible database update problem](https://swi-prolog.discourse.group/t/possible-database-update-problem/9862)

<div class="topic-metadata">

**Author:** [@stassa.p](https://swi-prolog.discourse.group/u/stassa.p)\
**Replies:** 3\
**Last updated:** [October 13, 2026, 12:08pm UTC](https://swi-prolog.discourse.group/t/possible-database-update-problem/9862 "2026-10-13T12:08:51Z")

</div>

I’m on the latest daily build for windows (version 10.1.18-3-gf379af528). I noticed that some times the database state is not correctly updated after I make a change to my code and call make/0. For example, I remove a c…

---

## [Tdd methology](https://swi-prolog.discourse.group/t/tdd-methology/9860)

<div class="topic-metadata">

**Author:** [@Azurian](https://swi-prolog.discourse.group/u/Azurian)\
**Replies:** 0\
**Last updated:** [October 13, 2026, 8:20am UTC](https://swi-prolog.discourse.group/t/tdd-methology/9860 "2026-10-13T08:20:48Z")

</div>

What do you think about Test Driven Developpent and more generally about Agile I think that it is Business driven and not thought driven

[Next page](https://swi-prolog.discourse.group/latest.md?page=1)
