Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Ask not for whom the <CONTROL-G> tolls.


devel / comp.lang.prolog / Re: ANN: Dogelog Player 1.1.6 (HTTP Client)

SubjectAuthor
* ANN: Dogelog Player 1.1.6 (HTTP Client)Mild Shock
+* Re: ANN: Dogelog Player 1.1.6 (HTTP Client)Mild Shock
|`* Re: ANN: Dogelog Player 1.1.6 (HTTP Client)Mild Shock
| `- Re: ANN: Dogelog Player 1.1.6 (HTTP Client)Mild Shock
`* Re: ANN: Dogelog Player 1.1.6 (HTTP Client)Mild Shock
 `- Re: ANN: Dogelog Player 1.1.6 (HTTP Client)Mild Shock

1
ANN: Dogelog Player 1.1.6 (HTTP Client)

<uscsc2$12mjt$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2319&group=comp.lang.prolog#2319

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.prolog
Subject: ANN: Dogelog Player 1.1.6 (HTTP Client)
Date: Thu, 7 Mar 2024 18:09:21 +0100
Message-ID: <uscsc2$12mjt$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 7 Mar 2024 17:09:22 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1137277"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:7nB0bKpMMsmcYyELzk5lUa7xj9Q=
X-User-ID: eJwNxsEBwCAIA8CVjBCQcQo2+4/Q3utogZj0YDhFId0bcWao/NPqHt3xYkeOgTt32WkXahVeu0k9jSWtI35YUBWa
X-Mozilla-News-Host: news://news.solani.org:119
 by: Mild Shock - Thu, 7 Mar 2024 17:09 UTC

Dear All,

We are happy to announce a new edition
of the Dogelog player:

- Enhanced '$YIELD'/1:
Previously the '$YIELD'/1 instruction was hard coded
to understand an integer for sleep/1 and an atom for
native library loading. The implementation has been
change to accept a Promise object, known from
JavaScript. Emulations were made available for
Java and Python.

- Async I/O:
Based on the new '$YIELD'/1 and a buffer fast path
idea, the console reading, file property and file
reading have been asyncified. There is no change in
the Prolog API, files are still to be opened via the
ISO core open/3 and accessed via ISO core get_code/2
respectively ISO core peek_code/2. But input can now
be executed quasi-parallel by multiple tasks.

- HTTP client:
The ISO core open/4 has been moved to the library(spin).
The support of the HTTP and HTTPS protocol in open/3
and open/4, has been extended from the JavaScript
browser to the JavaScript command line (by means of
new fetch in nodejs >21). Further supported targets
are now Python and Java (by means of new HTTP client
in JDK >21).

Have Fun!

Jan Burse, http://www.xlog.ch/ , 07.03.2024

Re: ANN: Dogelog Player 1.1.6 (HTTP Client)

<usksr8$16bd7$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2320&group=comp.lang.prolog#2320

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.prolog
Subject: Re: ANN: Dogelog Player 1.1.6 (HTTP Client)
Date: Sun, 10 Mar 2024 19:06:34 +0100
Message-ID: <usksr8$16bd7$1@solani.org>
References: <uscsc2$12mjt$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Mar 2024 18:06:32 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1256871"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:f2k7EXNNU4pzofu+IZ++RajAwIM=
X-User-ID: eJwVysERACEIBLCWQFiEcgTd/ku4ubwDC43ZHggHwUq55dISplg4OdmaUuJAtHQN1vVHuv3rRpHvMLeukeb5ACfIFSs=
In-Reply-To: <uscsc2$12mjt$1@solani.org>
 by: Mild Shock - Sun, 10 Mar 2024 18:06 UTC

Dogelog Player is a Prolog system that is 100% written
in Prolog itself. It is avsailable for the JavaScript,
Python and Java platform. We show how the stable
ordering of Prolog variables in Dogelog Player allows
highly efficient constraint solving approaches.

We convert the undirected graph into a directed graph
and create adjacency lists. This inequality graph doesn’t
have the same delayed evaluation overhead than
(#=)/2 and dif/2. We demonstrate map coloring and
sudoku solving. Further improvements in a
subsequent article.

See also:

Map Coloring and Sudoku Solving
https://twitter.com/dogelogch/status/1766885890712883276

Map Coloring and Sudoku Solving
https://www.facebook.com/groups/dogelog

Mild Shock schrieb:
> Dear All,
>
> We are happy to announce a new edition
> of the Dogelog player:
>
> - Enhanced '$YIELD'/1:
>   Previously the '$YIELD'/1 instruction was hard coded
> to understand an integer for sleep/1 and an atom for
> native library loading. The implementation has been
> change to accept a Promise object, known from
> JavaScript. Emulations were made available for
> Java and Python.
>
> - Async I/O:
>   Based on the new '$YIELD'/1 and a buffer fast path
> idea, the console reading, file property and file
> reading have been asyncified. There is no change in
> the Prolog API, files are still to be opened via the
> ISO core open/3 and accessed via ISO core get_code/2
> respectively ISO core peek_code/2. But input can now
> be executed quasi-parallel by multiple tasks.
>
> - HTTP client:
>   The ISO core open/4 has been moved to the library(spin).
> The support of the HTTP and HTTPS protocol in open/3
> and open/4, has been extended from the JavaScript
> browser to the JavaScript command line (by means of
> new fetch in nodejs >21). Further supported targets
> are now Python and Java (by means of new HTTP client
> in JDK >21).
>
> Have Fun!
>
> Jan Burse, http://www.xlog.ch/ , 07.03.2024

Re: ANN: Dogelog Player 1.1.6 (HTTP Client)

<usldam$16jdm$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2321&group=comp.lang.prolog#2321

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.prolog
Subject: Re: ANN: Dogelog Player 1.1.6 (HTTP Client)
Date: Sun, 10 Mar 2024 23:47:50 +0100
Message-ID: <usldam$16jdm$1@solani.org>
References: <uscsc2$12mjt$1@solani.org> <usksr8$16bd7$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Mar 2024 22:47:50 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1265078"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:ZrzsuqJNMcmOlQMylEpuEhtUqg0=
In-Reply-To: <usksr8$16bd7$1@solani.org>
X-User-ID: eJwFwQkBwDAIA0BLUBqyyuH1L2F3MFcvXodfLLbivPxmhmeCtgReN7NV1SqSs8JO9DFKt8bWSOzFuOnq+wGCPRas
 by: Mild Shock - Sun, 10 Mar 2024 22:47 UTC

Small implementation node about the new HTTP client
in Dogelog Player for JavaScript. I am using fetch()
everywhere. No need to get help from libraries such as:

> Axios is a promise-based HTTP Client for node.js
> and the browser. It is isomorphic (= it can run in
> the browser and nodejs with the same codebase).
> On the server-side it uses the native node.js http
> module, while on the client (browser) it uses
> XMLHttpRequests.
https://axios-http.com/docs/intro

First of all XMLHttpRequests is deprecated in the
browser, use fetch() instead. And nodejs has fetch()
since release 21.x.x as well. So they have become
isomorphic making AXIOS obsolete:

> Notable Changes - Oct 17, 2023
> The recent update to Node.js, version 21, includes
> an important change to the fetch module as well as
> WebStreams . Both modules were marked as stable after
> a recent update.
https://nodejs.org/en/blog/announcements/v21-release-announce

Mild Shock schrieb:
>
> Dogelog Player is a Prolog system that is 100% written
> in Prolog itself. It is avsailable for the JavaScript,
> Python and Java platform. We show how the stable
> ordering of Prolog variables in Dogelog Player allows
> highly efficient constraint solving approaches.
>
> We convert the undirected graph into a directed graph
> and create adjacency lists. This inequality graph doesn’t
> have the same delayed evaluation overhead than
> (#=)/2 and dif/2. We demonstrate map coloring and
> sudoku solving. Further improvements in a
> subsequent article.
>
> See also:
>
> Map Coloring and Sudoku Solving
> https://twitter.com/dogelogch/status/1766885890712883276
>
> Map Coloring and Sudoku Solving
> https://www.facebook.com/groups/dogelog
>
> Mild Shock schrieb:
>> Dear All,
>>
>> We are happy to announce a new edition
>> of the Dogelog player:
>>
>> - Enhanced '$YIELD'/1:
>>    Previously the '$YIELD'/1 instruction was hard coded
>> to understand an integer for sleep/1 and an atom for
>> native library loading. The implementation has been
>> change to accept a Promise object, known from
>> JavaScript. Emulations were made available for
>> Java and Python.
>>
>> - Async I/O:
>>    Based on the new '$YIELD'/1 and a buffer fast path
>> idea, the console reading, file property and file
>> reading have been asyncified. There is no change in
>> the Prolog API, files are still to be opened via the
>> ISO core open/3 and accessed via ISO core get_code/2
>> respectively ISO core peek_code/2. But input can now
>> be executed quasi-parallel by multiple tasks.
>>
>> - HTTP client:
>>    The ISO core open/4 has been moved to the library(spin).
>> The support of the HTTP and HTTPS protocol in open/3
>> and open/4, has been extended from the JavaScript
>> browser to the JavaScript command line (by means of
>> new fetch in nodejs >21). Further supported targets
>> are now Python and Java (by means of new HTTP client
>> in JDK >21).
>>
>> Have Fun!
>>
>> Jan Burse, http://www.xlog.ch/ , 07.03.2024
>

Re: ANN: Dogelog Player 1.1.6 (HTTP Client)

<usqtvb$19i7n$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2322&group=comp.lang.prolog#2322

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.prolog
Subject: Re: ANN: Dogelog Player 1.1.6 (HTTP Client)
Date: Wed, 13 Mar 2024 02:02:36 +0100
Message-ID: <usqtvb$19i7n$1@solani.org>
References: <uscsc2$12mjt$1@solani.org> <usksr8$16bd7$1@solani.org>
<usldam$16jdm$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Mar 2024 01:02:35 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1362167"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:vJEnZ/axsz//e9xFCKShWTNQ0Zw=
In-Reply-To: <usldam$16jdm$1@solani.org>
X-User-ID: eJwNyskBwCAIBMCWRGFXyuGQ/ktI5j12ICgqDGpj8zbk3XYeeKpmSZW8EPMcnx7uWLG4/0GGOlsFt/iayNj4AFxNFao=
 by: Mild Shock - Wed, 13 Mar 2024 01:02 UTC

In 1997, Hong Kong judge Wayne Gould saw a partly
completed puzzle in a Japanese bookshop. Over six years,
he developed a computer program to produce unique
puzzles rapidly. The program tries to keep one puzzle
ahead of you, by generating the next puzzle while you
are solving the present one.

In the following we show a Prolog program, where
the random generation of a Puzzle is performed in
less than 2 seconds. The Prolog program was mainly
developed for Dogelog Player. We could test the
Prolog program also with Prolog systems such as
SWI-Prolog, Scryer Prolog and Trealla Prolog.

The smallest domain first variable ordering heuristic
allowed us to solve some hard problems below a minute.
Turning the heuristic into a static ordering before
search gave us a further boost and the baseline for
randomization. Measurement showed that solving blank
Sudokus doesn't have a large time variation.

See also:

Birthday Paradox and Sudoku Generation
https://twitter.com/dogelogch/status/1767714755827908991

Birthday Paradox and Sudoku Generation
https://www.facebook.com/groups/dogelog

Re: ANN: Dogelog Player 1.1.6 (HTTP Client)

<utmt7o$1nl0n$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2332&group=comp.lang.prolog#2332

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.prolog
Subject: Re: ANN: Dogelog Player 1.1.6 (HTTP Client)
Date: Sat, 23 Mar 2024 16:41:45 +0100
Message-ID: <utmt7o$1nl0n$1@solani.org>
References: <uscsc2$12mjt$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Mar 2024 15:41:44 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1823767"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:AE3tNIa9g76F7NsgIb7a5Q0HI/k=
X-User-ID: eJwFwQERADEIAzBLLVDYy9kx8C/hE3kyuyKVodW+bMFm/ePSdcXz1RrbMNcGwPMOoJYPXpmMaRPONZ+Cfjd7FE0=
In-Reply-To: <uscsc2$12mjt$1@solani.org>
 by: Mild Shock - Sat, 23 Mar 2024 15:41 UTC

Dogelog Player is a Prolog system that features
a generational garbage collector scheme and a
change_arg/3 primitive built-in. So far the two
didn’t go together and we had to use a cludge.
With the upcoming release we provide a proper
solution based on marking write-barriers.

Our remembered set on the variable binding trail
has the benefit that it can reduce itself during
backtracking. By adopting conductor variables, i.e.
instantiated variables that are not trailed, from
formerly Jekejeke Prolog, we could recreate a
similar benefit for Dogelog Players change_arg/3.

See also:

Marking Write-Barriers for Dogelog Player
https://twitter.com/dogelogch/status/1771559896741192186

Marking Write-Barriers for Dogelog Player
https://www.facebook.com/groups/dogelog

Re: ANN: Dogelog Player 1.1.6 (HTTP Client)

<uuffcs$13pd$2@solani.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2338&group=comp.lang.prolog#2338

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.prolog
Subject: Re: ANN: Dogelog Player 1.1.6 (HTTP Client)
Date: Tue, 2 Apr 2024 01:18:54 +0200
Message-ID: <uuffcs$13pd$2@solani.org>
References: <uscsc2$12mjt$1@solani.org> <utmt7o$1nl0n$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 1 Apr 2024 23:18:52 -0000 (UTC)
Injection-Info: solani.org;
logging-data="36653"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.2
Cancel-Lock: sha1:CjKpqe1L9Nm5yAYjY0xuQPL7oCA=
X-User-ID: eJwNxckRwDAIBLCWwF6ucrwM9F9Coo/sunoH3By2tv+Hy4WXnEQL5KV2DLNKJocyjVImIBOgTpflxn2PbPkARckVlQ==
In-Reply-To: <utmt7o$1nl0n$1@solani.org>
 by: Mild Shock - Mon, 1 Apr 2024 23:18 UTC

Starting with the Sudoku solver we have recently
obtained we developed a Puzzle generator together
with an interactive game play. The result can be
run in a web page by means of Dogelog Player 1.2.0
for JavaScript. Both the Puzzle generator and the
game play were written in 100% Prolog.

Regin Filtering from SWI-Prolog CLP(FD) didn’t
make a dent for generating unique puzzles, all we
could do was provide 34 clues, and our solver takes
in the average 1000 ms. We also implemented valid
move checking by reusing the constraints and an undo
move queue via dynamic facts.

See also:

Game Play of Spock Doku
https://twitter.com/dogelogch/status/1774936304335159561

Game Play of Spock Doku
https://www.facebook.com/groups/dogelog

Mild Shock schrieb:
>
> Dogelog Player is a Prolog system that features
> a generational garbage collector scheme and a
> change_arg/3 primitive built-in. So far the two
> didn’t go together and we had to use a cludge.
> With the upcoming release we provide a proper
> solution based on marking write-barriers.
>
> Our remembered set on the variable binding trail
> has the benefit that it can reduce itself during
> backtracking. By adopting conductor variables, i.e.
> instantiated variables that are not trailed, from
> formerly Jekejeke Prolog, we could recreate a
> similar benefit for Dogelog Players change_arg/3.
>
> See also:
>
> Marking Write-Barriers for Dogelog Player
> https://twitter.com/dogelogch/status/1771559896741192186
>
> Marking Write-Barriers for Dogelog Player
> https://www.facebook.com/groups/dogelog

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor