Hi,
hurufu wrote among other things:
> will ask AI to do X and it will do X
What if you only know X. And nothing else. Or
if you don’t use AI to take risks, only estimate
what you know as a chance. I somehow agree with
your viewpoint what is currently happening.
But its also interesting to see how this becomes
transparent by using AI itself, since its not
only a vibe coding utility. Some AIs organize
your complete project, including the management
of requirement, analysis and design documents.
And also visible project and change management.
You find that here, for example for Shumway Prolog.
It has nicely documented all the X seeds
of architectural wisdom it is using:
ADR-001: Engines and Global Tables
https://github.com/gusbro/Shumway/blob/main/docs/architecture/adr/001-engines-and-global-tables.md
The result is mixed. For example in Prolog test
cases, without much global table usage. It is very
close to SWI Prolog in speed, and has an excellent
small memory footprint. But if you use for example
bigints, it suddently isn’t that performat anymore.
But still an amazing result, that somehow compressed
the 4-5 year of Scryer development struggel, which
isn’t even over yet, into like 4-5 months.
And last but not least it already has archived its
goal of implementing garbage collection. Quite amazing!
Bye
P.S.: Here you see my bigint example where it looses
steam, but thanks to garbage collection can survive.
π-computation via the elegant continued fraction:
/* SWI-Prolog 10.1.18 */
?- time(pi(50000, 6/1, _))
% 100,000 inferences, 0.453 CPU in 0.459 seconds
(99% CPU, 220690 Lips)
true.
/* Shumway Prolog 0.9.3 */
?- time(pi(50000, 6/1, _))
% 1.762 seconds, 150,006 heap cells
% true.
/* Scryer Prolog 0.10.0 */
% ?- between(1,3,_), time(pi(50000, 6/1, _)), fail; true.
% % CPU time: 3.484s, 200_058 inferences
% note: run with 'RUST_BACKTRACE=1' etc.. (TUI error pop up?)
%%% exhaust all my memory, kills all my other apps, and hangs
Source, no gcd/2 reduction, so that bigints get huge:
% pi(+Integer, +Rational, -Rational)
pi(0, P/Q, R/Q) :- !, R is P-3*Q.
pi(N, P/Q, S) :-
H is 6*P+(2*N-1)^2*Q,
M is N-1,
pi(M, H/P, S).
Mild Shock schrieb:
> Hi,
>
> Holy Cow! This is a nice bug:
>
> /* Scryer Prolog 0.10 */
> ?- (between(1,3,X), X > 2 -> true; between(4,6,X)),
> write(X), nl, fail; true.
> 3
> true.
> ?- (between(1,3,X), !, X > 2 -> true; between(4,6,X)),
> write(X), nl, fail; true.
> false.
>
> On the other hand I guess Trealla does it right:
>
> /* Trealla Prolog (c) Infradig 2020, v3.4.5 */
> ?- (between(1,3,X), X > 2 -> true; between(4,6,X)),
> write(X), nl, fail; true.
> 3
> true.
> ?- (between(1,3,X), !, X > 2 -> true; between(4,6,X)),
> write(X), nl, fail; true.
> 4
> 5
> 6
> true.
>
> Bye
>
> Mild Shock schrieb:
>> Hi,
>>
>> Take this egg drop example:
>>
>> :- table(drop/3).
>> drop(0, _, R) :- !, R = 0.
>> drop(_, 0, R) :- !, R = 0.
>> drop(F, 1, R) :- !, R = F.
>> drop(F, E, M) :- E > 1, F > 0,
>> aggregate_all(min(N), (between(1,F,K),
>> E2 is E-1,
>> F1 is K-1,
>> drop(F1, E2, N1),
>> F2 is F-K,
>> drop(F2, E, N2),
>> N is 1+max(N1,N2)), M).
>>
>> My results so far:
>>
>> /* SWI, XSB and Dogelog */
>> ?- drop(100, 10, X).
>> X = 7.
>>
>> /* Scryer */
>> ?- drop(100,10,X).
>> false.
>>
>> Why does Scryer Prolog fail?
>>
>> Bye
>>
>> BTW: I used this polyfill:
>>
>> aggregate_all(min(N), G, M) :-
>> findall(N, G, [X|L]),
>> min_list(L, X, M).
>>
>> min_list([], M, M).
>> min_list([X|L], Y, M) :-
>> Z is min(X,Y),
>> min_list(L, Z, M).
>>
>> Mild Shock schrieb:
>>> Hi,
>>>
>>> During my quick brainstorming on SWI-Prolog
>>> discourse concerning my library(markup) I worte:
>>>
>>> > Disclaimer: I didn’t look into Trealla, Scryer
>>> > or Ciao, what they support in this respect.
>>> > I only had a look at SWISH and their concept of
>>> > answer substitutions filters. I find this too
>>> > restrictive, already the library(turtle) cannot
>>> > be done in this setting.
>>>
>>> So my subc-consciousness told me there is nothing
>>> useful to expect from Trealla, Scryer or Ciao.
>>> Since they are total web virgins, probably never
>>>
>>> seen a DOM API and/or never generated production
>>> webpages. For example this could be abused, not
>>> something that should be promoted:
>>>
>>> document.write(`<p>Sudoku solver returns:</p><pre>${result}</pre>`);
>>>
>>> https://github.com/mthom/scryer-prolog?tab=readme-ov-file#building-webassembly
>>>
>>> Not only is the document.write() method deprecated.
>>> The document.write() method directly injects HTML
>>> into the page. This leads to XSS vulnerability:
>>>
>>> > During the second half of 2007, XSSed documented
>>> 11,253 site-specific cross-site vulnerabilities,
>>> compared to 2,134 "traditional" vulnerabilities
>>> documented by Symantec. XSS effects vary in range from
>>> petty nuisance to significant security risk, depending
>>> on the sensitivity of the data handled by the vulnerable
>>> site and the nature of any security mitigation
>>> implemented by the site's owner network.
>>> https://en.wikipedia.org/wiki/Cross-site_scripting
>>>
>>> Bye
>>
>>
>