🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #46

Atom tables are always slow! [Niclaus Wirths T-Tiles] (Re: Whats the Dogelog Dialect of Prolog [trilog testing])

#46
From: 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
>>>
>>
> 
Technical Details
Message-ID: <11cqbd4$165hi$1@solani.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
References: <10d40a4$1a3d8$1@solani.org> <10niq2r$ml3u$2@solani.org> <11156to$179qp$1@solani.org> <11cq9cq$1640u$1@solani.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Mild Shock <janburse@fastmail.fm>
Newsgroups: comp.lang.prolog
Subject: Atom tables are always slow! [Niclaus Wirths T-Tiles] (Re: Whats the
 Dogelog Dialect of Prolog [trilog testing])
Date: Sun, 8 Nov 2026 18:27:00 +0100
Message-ID: <11cqbd4$165hi$1@solani.org>
References: <10d40a4$1a3d8$1@solani.org> <10niq2r$ml3u$2@solani.org>
 <11156to$179qp$1@solani.org> <11cq9cq$1640u$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 8 Nov 2026 17:27:00 -0000 (UTC)
Injection-Info: solani.org;
	logging-data="1250866"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:UWF1ei5/doLJsHvrqvuJfHxcz7k=
In-Reply-To: <11cq9cq$1640u$1@solani.org>
X-User-ID: eJwNyMEBwCAIA8CVQALEcRRk/xHae55baFQiPODjw2khTK7CZceTIkPtWtNzTeHg5P9LezcR88ZugkWjnNQPM5IUuA==