Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Everybody needs a little love sometime; stop hacking and fall in love!


devel / comp.lang.prolog / Re: Request for comments, Novacore the sequel to ISO modules

SubjectAuthor
o Request for comments, Novacore the sequel to ISO modulesMostowski Collapse

1
Re: Request for comments, Novacore the sequel to ISO modules

<aa869ef6-7f90-405b-a84a-2c11ac7979a3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ac8:5a55:0:b0:3f5:e8f:47b2 with SMTP id o21-20020ac85a55000000b003f50e8f47b2mr2485582qta.11.1684666481695;
Sun, 21 May 2023 03:54:41 -0700 (PDT)
X-Received: by 2002:a25:aaad:0:b0:ba8:93c3:331a with SMTP id
t42-20020a25aaad000000b00ba893c3331amr4547599ybi.5.1684666481479; Sun, 21 May
2023 03:54:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Sun, 21 May 2023 03:54:41 -0700 (PDT)
In-Reply-To: <db8a6771-3e54-485b-b391-310658dd6f52n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.44; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.44
References: <db8a6771-3e54-485b-b391-310658dd6f52n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aa869ef6-7f90-405b-a84a-2c11ac7979a3n@googlegroups.com>
Subject: Re: Request for comments, Novacore the sequel to ISO modules
From: burse...@gmail.com (Mostowski Collapse)
Injection-Date: Sun, 21 May 2023 10:54:41 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 33
 by: Mostowski Collapse - Sun, 21 May 2023 10:54 UTC

Now I have implemented the new open/4 options method/1,
headers/1 and body/1 also for Dogelog Player. There is a first
take that works in the browser. More platforms to follow.

Its such a thin extension, API wise, want to have it as part of
Novacore. What do other Prolog systems do? Here is what
SWI-Prolog in their offering.

- method/1: Accepts the method name in lower case,
so far I use the option with an upper case value.
- headers/1: Doesn't use our Key-Value pair format,
instead the format is Key(Value). Has separate option
for auth/1 and inside auth/1 for bearer/1.
- body/1: Not available in SWI-Prolog, must use post/1,
and post/1 accepts quite a bulk of formats.

and then I find that Trealla Prolog does something else
Signature wise:

- offers some convenience like http_post/4, http_delete/3,
bootstrapped from http_get/3.
- http_get/3 has options method/1, post/1 and header/2,
quite amazing, mostly written in 100% Prolog!
- might also support HTTPS, depends on client/5.
- this was checked into GitHub 9 months ago

and Scryer Prolog does again something else
Signature wise:

- http_open/3 had a 100% Prolog solution in 2020,
but became something else 12 months ago.
- http_open/3 has options method/1, data/1 and
request_headers/1, goes into CallHttpOpen instruction,
which then uses hyper_tls.


devel / comp.lang.prolog / Re: Request for comments, Novacore the sequel to ISO modules

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor