Hi,
When we have this here:
?- current_prolog_flag(occurs_check, X).
X = false.
Whats the secret sauce for dif/2 ?
Now I get:
/* Shumway Prolog 0.9.3 */
?- time(tidy(14900)), fail.
% 11.074 seconds, 938,780 heap cells
false.
Compare this to:
/* SWI-Prolog 10.1.15-46-gd7d2a2bb8 */
?- time(tidy(1040000)).
% % 32,244,992 inferences, 1.125 CPU in 1.159 seconds (97% CPU, 28662215 Lips)
% true.
Bye
P.S.: This is the test code:
/* Ulrich Neumerkels Armageddon */
tidy(N) :-
length(Xs, N),
dif(V, X), dif(V, Xs),
maplist(dif(_), Xs).
Mild Shock schrieb:
> Hi,
>
> Also the landscape is exploding with new WebPrologs:
>
> The Retina project began in 2021 and became EyeProlog in 2026
> https://github.com/eyereasoner/eyeprolog
>
> Shumway is a cross-platform Prolog engine for .NET**
> https://github.com/gusbro/Shumway
>
> So the ISO core standard payed off? Congratulations!
>
> Bye
>
> P.S.: This page probably lost it completely:
>
> Comparison of Prolog implementations
> https://en.wikipedia.org/wiki/Comparison_of_Prolog_implementations
>
> Mild Shock schrieb:
>> Hi,
>>
>> While there is a Prolog-Python interaction
>> PIP (*), there seems to be no AI-Prolog
>> interaction PIP. The prolog agent toolkit
>>
>> is surely an instance of the later hypothetical
>> PIP, but has also alternative takes, like here:
>>
>> An HTTP/MCP-Interface for Scryer Prolog
>> https://github.com/Christopher22/charon
>>
>> Also an alternative take for the former PIP “Janus”:
>>
>> ScryNeuro: A Prolog ↔ Python interface
>> https://github.com/sporeking/ScryNeuro
>>
>> Both projects are AI slop? One using mostlikely
>> Claude to a greater extend, the other using
>> sisyphus-dev-ai to a lesser extend. Neither
>> readme.MD has any transparency what was used,
>>
>> giving the pain of additional detective
>> work when forking.
>>
>> Bye
>>
>> (*)
>> https://prolog-lang.org/ImprovementsForum/0101-janus-index.html
>>
>> Mild Shock schrieb:
>>> Hi,
>>>
>>> Now I was testing:
>>>
>>> ?- format("~`*t NICE TABLE ~`*t~61|~n", []),
>>> format("*~t~d~20|~t~d~t~40|~d~t~40|~t*~61|~n", [123,45,678]).
>>>
>>> There is quite some discrepancy among Prolog systems:
>>>
>>> /* SWI-Prolog 10.1.5 */
>>> ************************ NICE TABLE *************************
>>> * 123 45 678 *
>>>
>>> /* Scryer Prolog 0.10 */
>>> ************************ NICE TABLE *************************
>>> * 123 45 678 *
>>>
>>> /* Trealla Prolog 2.94.3 */
>>> ************************ NICE TABLE ************************
>>> * 123 45 678 *
>>>
>>> Expected output would be, yes we can do it!
>>>
>>> /* Dogelog Player 2.2.2 */
>>> ************************ NICE TABLE *************************
>>> * 123 45 678 *
>>>
>>>
>>> See also:
>>> https://prolog-lang.org/ImprovementsForum/0110-format.html
>>>
>>> Bye
>>
>>
>