Modern implementations, based on Colmerauer's Prolog II, [4] [5] [6][7] use rational tree unification to avoid looping. However it
Hi,
The diagram figure 2 here:
Fifty Years of Prolog and Beyond (TPLP 2022)
KÖRNER P, LEUSCHEL M, BARBOSA J, et al. Fifty Years of Prolog and
Beyond. Theory and Practice of Logic Programming.
2022;22(6):776-858. doi:10.1017/S1471068422000102
And reproduced here:
Comparison of Prolog implementations
The page has also missing Scryer Prolog, which
I think is an important Prolog system written in
Rust, because it also pays tribute to Prolog II. https://en.wikipedia.org/wiki/Comparison_of_Prolog_implementations
Is pretty much brainwashed nonsense. Most Prolog
systems, that have cyclic terms, are derived from
Prolog II. Adopting a non-canonical rational tree
term approach. This includes:
- SICStus Prolog
- Ciao Prolog
- YAP Prolog
- SWI-Prolog
- Scryer Prolog
- Trealla Prolog
- Dogelog Player
- What else?
SICStus Prolog is possibly the most advanced, (*)
it also supports asserts and copying, whereas I found
not all Prolog systems listed above can even
copy cyclic terms, despite they can unify them.
Basically the philogeny of Prolog systems is
not some "single inheritance" tree. Cyclic terms
algorithm have nice side effect that they might
speed up acyclic term arguments as well. But
cyclic terms is one of the topics that is very
badily covered, for some individuals difficult (**)
to understand and sometimes even completely ignored.
Bye
(*)
SICStus Prolog unifies, compares (see ref-lte-cte),
asserts, and copies cyclic terms without looping.
The write_term/[2,3] built-in predicate can
optionally handle cyclic terms. https://sicstus.sics.se/sicstus/docs/4.6.0/html/sicstus/ref_002dsem_002docc.html
(**)
Because of the infinite looping, their brains might
also get into infinite loops. Even fuzzy testing does
not help anymore breaking these loops.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,073 |
Nodes: | 10 (0 / 10) |
Uptime: | 222:34:39 |
Calls: | 13,783 |
Calls today: | 1 |
Files: | 186,987 |
D/L today: |
701 files (242M bytes) |
Messages: | 2,434,871 |