🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.prolog
2 messages
2 total messages Started by Mild Shock Sun, 08 Nov 2026 16:52
Whats the Dogelog Dialect of Prolog [trilog testing] (Was: Prolog Expert Ginis (PEGs) on a Keychain)
#45
Author: Mild Shock
Date: Sun, 08 Nov 2026 16:52
138 lines
4670 bytes
Hi,

Woa! Gemini AI from Google just translated this:

mk(N, N) :- !.
mk(I, N) :-
    number_codes(I, Cs), atom_codes(_, [0'a|Cs]),
    I1 is I + 1, mk(I1, N).

To this:

mk(N, N) :- !.
mk(I, N) :-
    atom_number(A, I), atom_concat(a, A, _),
    I1 is I + 1, mk(I1, N).

How the hell did it know the Dogelog Dialect of Prolog?

Here some benchmarks:

Dogelog Spieler 2.3.4, Oracle Corporation, Java 26.0.1
(c) 1985-2026, XLOG Technologies AG, Schweiz

/* mk(0, 20000) */
?- time((between(1,100,_), main, fail; true)).
% Zeit 274.109 ms, Benutzer 100 %, Lips 29226 k
true.

/* fib(21,_)
?- time((between(1,100,_), main2, fail; true)).
% Zeit 361.460 ms, Benutzer 100 %, Lips 34335 k
true.

Thats noice, 2.7 ms and 3.6 ms in average

Bye

P.S.: Was just looking at this soul
searching Prolog system:

build 20,000 atoms:   237 ms
fib(21,_):             11.9 ms
https://github.com/no382001/trilog/tree/main

That's ca 11x times resp 3x times slower.
My CPU is not that much faster?

Single-core
AMD Ryzen AI 7 350 +22 %
Multi-core
AMD Ryzen AI 7 350 +34 %

https://www.cpu-monkey.com/en/compare_cpu-amd_ryzen_5_5600x-vs-amd_ryzen_ai_7_350

Mild Shock schrieb:
> Hi,
> 
> NVIDIA has just release RTX 3080 Mini.
> Only the size of space bar, it easily
> fits into a keyboard:
> 
> Nvidia RTX 3080 Mini! The Future of GPUs!
> https://www.instagram.com/p/C3gbuA8P0eE/
> 
> The association of logic programming has
> coorperated with Morbid AI Inc. and used
> a local GPT builder to bring Prolog
> 
> Expert Ginis on a keychain. You can now
> easily carry around in your pocket:
> 
> Mini Hakan: Ask it anything about
> constraint programming, contains the
> wealth of CLP examples written in
> different CLP dialect.
> 
> Mini Paul: Ask it anything about Jini
> Prolog VMs. The complete hitchhiker guide
> to engineering fabulous sequential
> Prolog engines.
> 
> Mini Jan: Ask it anything about XPCE
> and SWI. More than a manual , rather
> a language monument. Fancy easter egg,
> contains a complete GUI tracer.
> 
> Stay tuned, more to come...
> 
> Bye
> 
> 
> Mild Shock schrieb:
>> Hi,
>>
>> In AI safety, P(doom) is the probability of
>> existentially catastrophic outcomes (so-called
>> "doomsday scenarios") as a result of
>> artificial intelligence.
>>
>> How it started (x tweet is gone?):
>>
>> Renowned software engineer Grady Booch says
>> his score equals “P(all the oxygen in my room
>> spontaneously moving to a corner thereby
>> suffocating me).”
>> https://www.fastcompany.com/90994526
>>
>> How its going:
>>
>> The third golden age of software engineering –
>> thanks to AI, with Grady Booch, put today’s
>> claims about AI and automation into
>> historical context.
>> https://www.youtube.com/watch?v=OfMAtaocvJw
>>
>> Bye
>>
>> Mild Shock schrieb:
>>> Hi,
>>>
>>> Now there is the neuro symbolic hybrid of tripple store and
>>> artificial neural networks. Already in 2019 proposed an
>>> embedded attention mechanism by Deepak Nathani et al.:
>>>
>>> GraphMERT: Efficient and Scalable Distillation
>>> of Reliable Knowledge Graphs from Unstructured Data
>>> https://www.researchgate.net/publication/396457862
>>>
>>> Neurosymbolic 80M AI from Princeton beats GPT,
>>> SuperIntelligence without OpenAI:
>>> https://www.youtube.com/watch?v=xh6R2WR49yM
>>>
>>> Have Fun!
>>>
>>> Bye
>>
> 
Atom tables are always slow! [Niclaus Wirths T-Tiles] (Re: Whats the Dogelog Dialect of Prolog [trilog testing])
#46
Author: Mild Shock
Date: Sun, 08 Nov 2026 17:27
168 lines
5467 bytes
Hi,

 > That's ca 11x times resp 3x times slower.

Correction, it should say:

That's ca 110x times resp 3x times slower.

Wouldn't it be feasibe to write expand_term
and consult in Prolog itself as well? But you
might need to juggle with Niclaus Wirths T-Tiles

to do it. BTW this here from core.p is unsound:

';'('->'(If, Then), _) :- If, !, Then.

';'('->'(_, _), Else) :- !, Else.

';'(A, _) :- A.

';'(_, B) :- B.

But you are like 1mm away from doing it correctly,
since you have '$dyn_body'/3.

Bye

Mild Shock schrieb:
> Hi,
> 
> Woa! Gemini AI from Google just translated this:
> 
> mk(N, N) :- !.
> mk(I, N) :-
>     number_codes(I, Cs), atom_codes(_, [0'a|Cs]),
>     I1 is I + 1, mk(I1, N).
> 
> To this:
> 
> mk(N, N) :- !.
> mk(I, N) :-
>     atom_number(A, I), atom_concat(a, A, _),
>     I1 is I + 1, mk(I1, N).
> 
> How the hell did it know the Dogelog Dialect of Prolog?
> 
> Here some benchmarks:
> 
> Dogelog Spieler 2.3.4, Oracle Corporation, Java 26.0.1
> (c) 1985-2026, XLOG Technologies AG, Schweiz
> 
> /* mk(0, 20000) */
> ?- time((between(1,100,_), main, fail; true)).
> % Zeit 274.109 ms, Benutzer 100 %, Lips 29226 k
> true.
> 
> /* fib(21,_)
> ?- time((between(1,100,_), main2, fail; true)).
> % Zeit 361.460 ms, Benutzer 100 %, Lips 34335 k
> true.
> 
> Thats noice, 2.7 ms and 3.6 ms in average
> 
> Bye
> 
> P.S.: Was just looking at this soul
> searching Prolog system:
> 
> build 20,000 atoms:   237 ms
> fib(21,_):             11.9 ms
> https://github.com/no382001/trilog/tree/main
> 
> That's ca 11x times resp 3x times slower.
> My CPU is not that much faster?
> 
> Single-core
> AMD Ryzen AI 7 350 +22 %
> Multi-core
> AMD Ryzen AI 7 350 +34 %
> 
> https://www.cpu-monkey.com/en/compare_cpu-amd_ryzen_5_5600x-vs-amd_ryzen_ai_7_350 
> 
> 
> Mild Shock schrieb:
>> Hi,
>>
>> NVIDIA has just release RTX 3080 Mini.
>> Only the size of space bar, it easily
>> fits into a keyboard:
>>
>> Nvidia RTX 3080 Mini! The Future of GPUs!
>> https://www.instagram.com/p/C3gbuA8P0eE/
>>
>> The association of logic programming has
>> coorperated with Morbid AI Inc. and used
>> a local GPT builder to bring Prolog
>>
>> Expert Ginis on a keychain. You can now
>> easily carry around in your pocket:
>>
>> Mini Hakan: Ask it anything about
>> constraint programming, contains the
>> wealth of CLP examples written in
>> different CLP dialect.
>>
>> Mini Paul: Ask it anything about Jini
>> Prolog VMs. The complete hitchhiker guide
>> to engineering fabulous sequential
>> Prolog engines.
>>
>> Mini Jan: Ask it anything about XPCE
>> and SWI. More than a manual , rather
>> a language monument. Fancy easter egg,
>> contains a complete GUI tracer.
>>
>> Stay tuned, more to come...
>>
>> Bye
>>
>>
>> Mild Shock schrieb:
>>> Hi,
>>>
>>> In AI safety, P(doom) is the probability of
>>> existentially catastrophic outcomes (so-called
>>> "doomsday scenarios") as a result of
>>> artificial intelligence.
>>>
>>> How it started (x tweet is gone?):
>>>
>>> Renowned software engineer Grady Booch says
>>> his score equals “P(all the oxygen in my room
>>> spontaneously moving to a corner thereby
>>> suffocating me).”
>>> https://www.fastcompany.com/90994526
>>>
>>> How its going:
>>>
>>> The third golden age of software engineering –
>>> thanks to AI, with Grady Booch, put today’s
>>> claims about AI and automation into
>>> historical context.
>>> https://www.youtube.com/watch?v=OfMAtaocvJw
>>>
>>> Bye
>>>
>>> Mild Shock schrieb:
>>>> Hi,
>>>>
>>>> Now there is the neuro symbolic hybrid of tripple store and
>>>> artificial neural networks. Already in 2019 proposed an
>>>> embedded attention mechanism by Deepak Nathani et al.:
>>>>
>>>> GraphMERT: Efficient and Scalable Distillation
>>>> of Reliable Knowledge Graphs from Unstructured Data
>>>> https://www.researchgate.net/publication/396457862
>>>>
>>>> Neurosymbolic 80M AI from Princeton beats GPT,
>>>> SuperIntelligence without OpenAI:
>>>> https://www.youtube.com/watch?v=xh6R2WR49yM
>>>>
>>>> Have Fun!
>>>>
>>>> Bye
>>>
>>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads