Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

21 May, 2024: Computers section is temporarily disabled for maintenance. It will take several days before it's back.


devel / comp.lang.prolog / Re: Web Prolog, Elixir and COBOL

SubjectAuthor
* Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
+- Re: Web Prolog, Elixir and COBOLMostowski Collapse
`* Re: Web Prolog, Elixir and COBOLMostowski Collapse
 `* Re: Web Prolog, Elixir and COBOLMostowski Collapse
  `* Re: Web Prolog, Elixir and COBOLMostowski Collapse
   `* Re: Web Prolog, Elixir and COBOLMostowski Collapse
    `* Re: Web Prolog, Elixir and COBOLMostowski Collapse
     `* Re: Web Prolog, Elixir and COBOLMostowski Collapse
      `* Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       +- Re: Web Prolog, Elixir and COBOLMostowski Collapse
       `- Re: Web Prolog, Elixir and COBOLMostowski Collapse

Pages:123
Re: Web Prolog, Elixir and COBOL

<a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ac8:5892:0:b0:2de:9f1c:2a9 with SMTP id t18-20020ac85892000000b002de9f1c02a9mr5829031qta.268.1645788927291;
Fri, 25 Feb 2022 03:35:27 -0800 (PST)
X-Received: by 2002:a25:844c:0:b0:615:d32:5665 with SMTP id
r12-20020a25844c000000b006150d325665mr6527793ybm.594.1645788927106; Fri, 25
Feb 2022 03:35:27 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.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: Fri, 25 Feb 2022 03:35:26 -0800 (PST)
In-Reply-To: <22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 11:35:27 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 50
 by: Mostowski Collapse - Fri, 25 Feb 2022 11:35 UTC

It is clear that the clown UWN downvotes this feature request, because
UWN opposes a living standard prolog. Scryer Prolog already implements
living standard, since it accepts for example foo(+,-,-) and current_op(X,Y,+).

Why stop half way, and implement living standard prolog only 50%.
SWI-Prolog is much better off, it has a larger stopper set. And therefore
can read TPTP Syntax. Scryer Prolog on the other hand has only implemented

the strategy of the living standard half way.

Feature request , add period to the operator stoppers #1297
https://github.com/mthom/scryer-prolog/issues/1297

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 12:09:46 UTC+1:
> Ok Scryer Prolog already handles this case:
>
> ?- [user].
> foo(+, -, -).
> ^D
>
> It doesn't bark. So what is missing? Why does
> TPTP Syntax not work?
> Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 12:06:05 UTC+1:
> > There is no straight forward way to convert a
> > SWI-Prolog text into a Scryer Prolog text?
> >
> > listing/[0,1] doesn't work:
> >
> > ?- [user].
> > foo(+,-,-).
> > ^D
> > ?- listing(foo/3).
> > foo(+, -, -).
> >
> > On first sight I though listing would work,
> > because SWI-Prolog is notorious for inserting
> >
> > (f), for example I see this here:
> >
> > ?- X = (- - -).
> > X = - - (-).
> >
> > But interestingly it does already not insert
> > (f) in the foo/3 case. Cool.
> > Mostowski Collapse schrieb am Donnerstag, 24. Februar 2022 um 17:17:38 UTC+1:
> > > Being lazy and stupid is no excuse.
> > > Having Scryer Prolog requiring me to write:
> > >
> > > : -mode decomp((+),(-),(-)).
> > >
> > > is the most idiotic thing in Prolog history.

Re: Web Prolog, Elixir and COBOL

<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:622a:14c:b0:2dd:6c76:2e4b with SMTP id v12-20020a05622a014c00b002dd6c762e4bmr6514365qtw.285.1645790573470;
Fri, 25 Feb 2022 04:02:53 -0800 (PST)
X-Received: by 2002:a81:1093:0:b0:2d7:2439:6279 with SMTP id
141-20020a811093000000b002d724396279mr7158332ywq.520.1645790573238; Fri, 25
Feb 2022 04:02:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.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: Fri, 25 Feb 2022 04:02:53 -0800 (PST)
In-Reply-To: <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 12:02:53 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 76
 by: Mostowski Collapse - Fri, 25 Feb 2022 12:02 UTC

Ha Ha, GNU Prolog cant do it either:

?- op(200,fy,!).
yes
?- X = foo(!).
X = foo(!)
?- X = (foo :- !).
uncaught exception: error(syntax_error('user_input:1 (char:80) expression expected or previous operator needs brackets'),read_term/3)

On the other hand TauProlog can do it:

?- op(200,fy,!).
true.
?- X = foo(!).
X = foo(!)
?- X = (foo :- !).
X = (foo:-!).

Was only testing the stopper ')'. It seems the stopper
')' is differently handled in GNU Prolog, depending on whether
the expression is simple as in foo(!) or more complex

as in (foo :- !). This could be the cause of the reduced
flexibility in parsing of GNU Prolog. Possibly Scryer Prolog
adopted the same inflexibility.

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 12:35:28 UTC+1:
> It is clear that the clown UWN downvotes this feature request, because
> UWN opposes a living standard prolog. Scryer Prolog already implements
> living standard, since it accepts for example foo(+,-,-) and current_op(X,Y,+).
>
> Why stop half way, and implement living standard prolog only 50%.
> SWI-Prolog is much better off, it has a larger stopper set. And therefore
> can read TPTP Syntax. Scryer Prolog on the other hand has only implemented
>
> the strategy of the living standard half way.
>
> Feature request , add period to the operator stoppers #1297
> https://github.com/mthom/scryer-prolog/issues/1297
> Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 12:09:46 UTC+1:
> > Ok Scryer Prolog already handles this case:
> >
> > ?- [user].
> > foo(+, -, -).
> > ^D
> >
> > It doesn't bark. So what is missing? Why does
> > TPTP Syntax not work?
> > Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 12:06:05 UTC+1:
> > > There is no straight forward way to convert a
> > > SWI-Prolog text into a Scryer Prolog text?
> > >
> > > listing/[0,1] doesn't work:
> > >
> > > ?- [user].
> > > foo(+,-,-).
> > > ^D
> > > ?- listing(foo/3).
> > > foo(+, -, -).
> > >
> > > On first sight I though listing would work,
> > > because SWI-Prolog is notorious for inserting
> > >
> > > (f), for example I see this here:
> > >
> > > ?- X = (- - -).
> > > X = - - (-).
> > >
> > > But interestingly it does already not insert
> > > (f) in the foo/3 case. Cool.
> > > Mostowski Collapse schrieb am Donnerstag, 24. Februar 2022 um 17:17:38 UTC+1:
> > > > Being lazy and stupid is no excuse.
> > > > Having Scryer Prolog requiring me to write:
> > > >
> > > > : -mode decomp((+),(-),(-)).
> > > >
> > > > is the most idiotic thing in Prolog history.

Re: Web Prolog, Elixir and COBOL

<f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:622a:193:b0:2de:2c0d:e3eb with SMTP id s19-20020a05622a019300b002de2c0de3ebmr6451711qtw.42.1645790663391;
Fri, 25 Feb 2022 04:04:23 -0800 (PST)
X-Received: by 2002:a81:88:0:b0:2d7:3774:c3b4 with SMTP id 130-20020a810088000000b002d73774c3b4mr7317089ywa.433.1645790663187;
Fri, 25 Feb 2022 04:04:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Fri, 25 Feb 2022 04:04:22 -0800 (PST)
In-Reply-To: <395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 12:04:23 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 37
 by: Mostowski Collapse - Fri, 25 Feb 2022 12:04 UTC

BTW: Living standard Prolog is probably the correct name to address
the issue. Scryer Prolog also fails this living standard Prolog test:

$ target/release/scryer-prolog
?- op(200,fy,!).
true.
?- X = foo(!).
X = foo(!).
?- X = (foo :- !).
caught: error(syntax_error(incomplete_reduction),read_term/3:1)

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 13:02:54 UTC+1:
> Ha Ha, GNU Prolog cant do it either:
>
> ?- op(200,fy,!).
> yes
> ?- X = foo(!).
> X = foo(!)
> ?- X = (foo :- !).
> uncaught exception: error(syntax_error('user_input:1 (char:80) expression expected or previous operator needs brackets'),read_term/3)
>
> On the other hand TauProlog can do it:
>
> /* Tau Prolog 0.3.2 (beta) */
> ?- op(200,fy,!).
> true.
> ?- X = foo(!).
> X = foo(!)
> ?- X = (foo :- !).
> X = (foo:-!).
>
> Was only testing the stopper ')'. It seems the stopper
> ')' is differently handled in GNU Prolog, depending on whether
> the expression is simple as in foo(!) or more complex
>
> as in (foo :- !). This could be the cause of the reduced
> flexibility in parsing of GNU Prolog. Possibly Scryer Prolog
> adopted the same inflexibility.

Re: Web Prolog, Elixir and COBOL

<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:622a:101:b0:2dd:4092:d300 with SMTP id u1-20020a05622a010100b002dd4092d300mr7441089qtw.424.1645804516502;
Fri, 25 Feb 2022 07:55:16 -0800 (PST)
X-Received: by 2002:a81:5a45:0:b0:2d7:9723:3e7f with SMTP id
o66-20020a815a45000000b002d797233e7fmr8368160ywb.421.1645804516329; Fri, 25
Feb 2022 07:55:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Fri, 25 Feb 2022 07:55:16 -0800 (PST)
In-Reply-To: <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 15:55:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 71
 by: Mostowski Collapse - Fri, 25 Feb 2022 15:55 UTC

Is the living standard Prolog a bad thing. Rather not,
it rather safeguards to some problems that Prolog
always bugs. For example a pair A-B might be rather

a bad idea, because ‘-’ is infix and prefix. Here it works fine:

?- X = (!-a), write_canonical(X), nl.
-(!,a)
X = !-a.

?- X = (!,a), write_canonical(X), nl.
','(!,a)
X = (!, a).

But it happened that I loaded the TPTP syntax, and things started going wrong:

/* SWI-Prolog */
?- op(200,fy,!).
true.

?- X = (!-a), write_canonical(X), nl.
!(-(a))
X = !-a.

?- X = (!,a), write_canonical(X), nl.
','(!,a)
X = ((!), a).

But at least the stopper ',' helps that the (A,B) pair still works.

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 13:04:24 UTC+1:
> BTW: Living standard Prolog is probably the correct name to address
> the issue. Scryer Prolog also fails this living standard Prolog test:
>
> $ target/release/scryer-prolog
> ?- op(200,fy,!).
> true.
> ?- X = foo(!).
> X = foo(!).
> ?- X = (foo :- !).
> caught: error(syntax_error(incomplete_reduction),read_term/3:1)
> Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 13:02:54 UTC+1:
> > Ha Ha, GNU Prolog cant do it either:
> >
> > ?- op(200,fy,!).
> > yes
> > ?- X = foo(!).
> > X = foo(!)
> > ?- X = (foo :- !).
> > uncaught exception: error(syntax_error('user_input:1 (char:80) expression expected or previous operator needs brackets'),read_term/3)
> >
> > On the other hand TauProlog can do it:
> >
> > /* Tau Prolog 0.3.2 (beta) */
> > ?- op(200,fy,!).
> > true.
> > ?- X = foo(!).
> > X = foo(!)
> > ?- X = (foo :- !).
> > X = (foo:-!).
> >
> > Was only testing the stopper ')'. It seems the stopper
> > ')' is differently handled in GNU Prolog, depending on whether
> > the expression is simple as in foo(!) or more complex
> >
> > as in (foo :- !). This could be the cause of the reduced
> > flexibility in parsing of GNU Prolog. Possibly Scryer Prolog
> > adopted the same inflexibility.

Re: Web Prolog, Elixir and COBOL

<cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:620a:2293:b0:600:2b7b:2a19 with SMTP id o19-20020a05620a229300b006002b7b2a19mr5016985qkh.408.1645804574099;
Fri, 25 Feb 2022 07:56:14 -0800 (PST)
X-Received: by 2002:a81:2f17:0:b0:2ca:9e14:d664 with SMTP id
v23-20020a812f17000000b002ca9e14d664mr8231050ywv.29.1645804573929; Fri, 25
Feb 2022 07:56:13 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Fri, 25 Feb 2022 07:56:13 -0800 (PST)
In-Reply-To: <ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 15:56:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 85
 by: Mostowski Collapse - Fri, 25 Feb 2022 15:56 UTC

In Scryer Prolog I cannot use (A,B) either:

?- op(200,fy,!).
true.

?- X = (!-a), write_canonical(X), nl.
!(-(a))
X = !- a.

?- X = (!,a), write_canonical(X), nl.
caught: error(syntax_error(incomplete_reduction),read_term/3:1)

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 16:55:17 UTC+1:
> Is the living standard Prolog a bad thing. Rather not,
> it rather safeguards to some problems that Prolog
> always bugs. For example a pair A-B might be rather
>
> a bad idea, because ‘-’ is infix and prefix. Here it works fine:
>
> ?- X = (!-a), write_canonical(X), nl.
> -(!,a)
> X = !-a.
>
> ?- X = (!,a), write_canonical(X), nl.
> ','(!,a)
> X = (!, a).
>
> But it happened that I loaded the TPTP syntax, and things started going wrong:
>
> /* SWI-Prolog */
> ?- op(200,fy,!).
> true.
>
> ?- X = (!-a), write_canonical(X), nl.
> !(-(a))
> X = !-a.
>
> ?- X = (!,a), write_canonical(X), nl.
> ','(!,a)
> X = ((!), a).
>
> But at least the stopper ',' helps that the (A,B) pair still works.
> Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 13:04:24 UTC+1:
> > BTW: Living standard Prolog is probably the correct name to address
> > the issue. Scryer Prolog also fails this living standard Prolog test:
> >
> > $ target/release/scryer-prolog
> > ?- op(200,fy,!).
> > true.
> > ?- X = foo(!).
> > X = foo(!).
> > ?- X = (foo :- !).
> > caught: error(syntax_error(incomplete_reduction),read_term/3:1)
> > Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 13:02:54 UTC+1:
> > > Ha Ha, GNU Prolog cant do it either:
> > >
> > > ?- op(200,fy,!).
> > > yes
> > > ?- X = foo(!).
> > > X = foo(!)
> > > ?- X = (foo :- !).
> > > uncaught exception: error(syntax_error('user_input:1 (char:80) expression expected or previous operator needs brackets'),read_term/3)
> > >
> > > On the other hand TauProlog can do it:
> > >
> > > /* Tau Prolog 0.3.2 (beta) */
> > > ?- op(200,fy,!).
> > > true.
> > > ?- X = foo(!).
> > > X = foo(!)
> > > ?- X = (foo :- !).
> > > X = (foo:-!).
> > >
> > > Was only testing the stopper ')'. It seems the stopper
> > > ')' is differently handled in GNU Prolog, depending on whether
> > > the expression is simple as in foo(!) or more complex
> > >
> > > as in (foo :- !). This could be the cause of the reduced
> > > flexibility in parsing of GNU Prolog. Possibly Scryer Prolog
> > > adopted the same inflexibility.

Re: Web Prolog, Elixir and COBOL

<b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:6214:c89:b0:432:c49b:41a5 with SMTP id r9-20020a0562140c8900b00432c49b41a5mr3182702qvr.48.1645818574142;
Fri, 25 Feb 2022 11:49:34 -0800 (PST)
X-Received: by 2002:a25:5906:0:b0:624:5abd:6216 with SMTP id
n6-20020a255906000000b006245abd6216mr9046381ybb.38.1645818573669; Fri, 25 Feb
2022 11:49:33 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Fri, 25 Feb 2022 11:49:33 -0800 (PST)
In-Reply-To: <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com> <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 19:49:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 108
 by: Mostowski Collapse - Fri, 25 Feb 2022 19:49 UTC

So a living standard Prolog has a lot of advantages.
There are much more advantages. I don't think Tau
Prolog should change anything.

It will break TPTP Syntax, like here:

Cannot consult file
https://github.com/mthom/scryer-prolog/issues/1289

So its not a bug. The ISO core standard is nonsense. Its
better to implement a living standard Prolog, than strictly
follow ISO core standard, because there are a lot of

legacy Prolog texts, that need to be also supported. You
have to publish a legacy to ISO converter on your Scryer
Prolog website, if you want to use legay Prolog texts.

But I nowehere find such a utility. Scryer Prolog leaves
their users alone. On the other hand Tau Prolog can use
legacy Prolog texts directly. This is a plus and thumbs up

for TauProlog that it doesn't follow such nonsense!

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 16:56:15 UTC+1:
> In Scryer Prolog I cannot use (A,B) either:
> ?- op(200,fy,!).
> true.
>
> ?- X = (!-a), write_canonical(X), nl.
> !(-(a))
> X = !- a.
> ?- X = (!,a), write_canonical(X), nl.
> caught: error(syntax_error(incomplete_reduction),read_term/3:1)
> Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 16:55:17 UTC+1:
> > Is the living standard Prolog a bad thing. Rather not,
> > it rather safeguards to some problems that Prolog
> > always bugs. For example a pair A-B might be rather
> >
> > a bad idea, because ‘-’ is infix and prefix. Here it works fine:
> >
> > ?- X = (!-a), write_canonical(X), nl.
> > -(!,a)
> > X = !-a.
> >
> > ?- X = (!,a), write_canonical(X), nl.
> > ','(!,a)
> > X = (!, a).
> >
> > But it happened that I loaded the TPTP syntax, and things started going wrong:
> >
> > /* SWI-Prolog */
> > ?- op(200,fy,!).
> > true.
> >
> > ?- X = (!-a), write_canonical(X), nl.
> > !(-(a))
> > X = !-a.
> >
> > ?- X = (!,a), write_canonical(X), nl.
> > ','(!,a)
> > X = ((!), a).
> >
> > But at least the stopper ',' helps that the (A,B) pair still works.
> > Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 13:04:24 UTC+1:
> > > BTW: Living standard Prolog is probably the correct name to address
> > > the issue. Scryer Prolog also fails this living standard Prolog test:
> > >
> > > $ target/release/scryer-prolog
> > > ?- op(200,fy,!).
> > > true.
> > > ?- X = foo(!).
> > > X = foo(!).
> > > ?- X = (foo :- !).
> > > caught: error(syntax_error(incomplete_reduction),read_term/3:1)
> > > Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 13:02:54 UTC+1:
> > > > Ha Ha, GNU Prolog cant do it either:
> > > >
> > > > ?- op(200,fy,!).
> > > > yes
> > > > ?- X = foo(!).
> > > > X = foo(!)
> > > > ?- X = (foo :- !).
> > > > uncaught exception: error(syntax_error('user_input:1 (char:80) expression expected or previous operator needs brackets'),read_term/3)
> > > >
> > > > On the other hand TauProlog can do it:
> > > >
> > > > /* Tau Prolog 0.3.2 (beta) */
> > > > ?- op(200,fy,!).
> > > > true.
> > > > ?- X = foo(!).
> > > > X = foo(!)
> > > > ?- X = (foo :- !).
> > > > X = (foo:-!).
> > > >
> > > > Was only testing the stopper ')'. It seems the stopper
> > > > ')' is differently handled in GNU Prolog, depending on whether
> > > > the expression is simple as in foo(!) or more complex
> > > >
> > > > as in (foo :- !). This could be the cause of the reduced
> > > > flexibility in parsing of GNU Prolog. Possibly Scryer Prolog
> > > > adopted the same inflexibility.

Re: Web Prolog, Elixir and COBOL

<404a4fa6-eda5-4a9b-bc8d-3a4191fd85ban@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ad4:56a8:0:b0:432:5f85:d380 with SMTP id bd8-20020ad456a8000000b004325f85d380mr7087623qvb.71.1645821543854;
Fri, 25 Feb 2022 12:39:03 -0800 (PST)
X-Received: by 2002:a25:aac3:0:b0:624:ab10:49dc with SMTP id
t61-20020a25aac3000000b00624ab1049dcmr9169235ybi.291.1645821543699; Fri, 25
Feb 2022 12:39:03 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Fri, 25 Feb 2022 12:39:03 -0800 (PST)
In-Reply-To: <b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com> <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
<b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <404a4fa6-eda5-4a9b-bc8d-3a4191fd85ban@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 20:39:03 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 36
 by: Mostowski Collapse - Fri, 25 Feb 2022 20:39 UTC

Ok I found a way to convert legacy Prolog text into Scryer Prolog
format. The steps are relatively simple:

1) Consult the Prolog text in SWI-Prolog

2) Call listing/[0,1] in SWI-Prolog

SWI-Prolog puts an additional parenthesis around operators, even
when they were not there during input. So for example I get now:

?- listing(prove2/_).
prove2(?[X]:Fml, UnExp, Lits, FreeV, VarLim) :-
VarLim>0,
(!),
copy_term((X, Fml, FreeV),
(X1, Fml1, FreeV)),
append(UnExp, [?[X]:Fml], UnExp1),
VarLim2 is VarLim+ -1,
prove2(Fml1,
UnExp1,
Lits,
[X1|FreeV],
VarLim2)

The SWI-Prolog output seems to have sufficient quality so that
I can run it with Scryer Prolog, redoing my benchmarks gives me:

?- time((between(1,10,_), test(time, seq), fail; true)).
% CPU time: 0.435s
true.
?- time((between(1,10,_), test(time, tap), fail; true)).
% CPU time: 0.197s
true.

Thanks to this automatic conversion, I am now willingly to test more
TPTP stuff. Like for example to test also leanTap= and leanSeq= as
I did for SWI-Prolog WASM.

Re: Web Prolog, Elixir and COBOL

<0596e23d-5d37-4840-8978-39461f04e98en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:620a:2584:b0:649:4164:54c1 with SMTP id x4-20020a05620a258400b00649416454c1mr6011637qko.493.1645821967716;
Fri, 25 Feb 2022 12:46:07 -0800 (PST)
X-Received: by 2002:a5b:dc8:0:b0:624:a898:dea6 with SMTP id
t8-20020a5b0dc8000000b00624a898dea6mr8789629ybr.600.1645821967566; Fri, 25
Feb 2022 12:46:07 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Fri, 25 Feb 2022 12:46:07 -0800 (PST)
In-Reply-To: <404a4fa6-eda5-4a9b-bc8d-3a4191fd85ban@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com> <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
<b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com> <404a4fa6-eda5-4a9b-bc8d-3a4191fd85ban@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0596e23d-5d37-4840-8978-39461f04e98en@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 20:46:07 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 52
 by: Mostowski Collapse - Fri, 25 Feb 2022 20:46 UTC

Its the most crazy thing I have ever seen, that such
a conversion step is necessary. Every sane person
might ask the following question:

- Why can SWI-Prolog parse it in the first place,
obviously correctly, since the code executes ok?

- And why can't Scryer Prolog parse it in the
first place? What is the ISO core standard worth,

when it cannot read legacy Prolog texts, that
is obviously unambigiously readable?

So many question marks now!!!

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 21:39:04 UTC+1:
> Ok I found a way to convert legacy Prolog text into Scryer Prolog
> format. The steps are relatively simple:
>
> 1) Consult the Prolog text in SWI-Prolog
>
> 2) Call listing/[0,1] in SWI-Prolog
>
> SWI-Prolog puts an additional parenthesis around operators, even
> when they were not there during input. So for example I get now:
>
> ?- listing(prove2/_).
> prove2(?[X]:Fml, UnExp, Lits, FreeV, VarLim) :-
> VarLim>0,
> (!),
> copy_term((X, Fml, FreeV),
> (X1, Fml1, FreeV)),
> append(UnExp, [?[X]:Fml], UnExp1),
> VarLim2 is VarLim+ -1,
> prove2(Fml1,
> UnExp1,
> Lits,
> [X1|FreeV],
> VarLim2)
>
> The SWI-Prolog output seems to have sufficient quality so that
> I can run it with Scryer Prolog, redoing my benchmarks gives me:
> ?- time((between(1,10,_), test(time, seq), fail; true)).
> % CPU time: 0.435s
> true.
> ?- time((between(1,10,_), test(time, tap), fail; true)).
> % CPU time: 0.197s
> true.
>
> Thanks to this automatic conversion, I am now willingly to test more
> TPTP stuff. Like for example to test also leanTap= and leanSeq= as
> I did for SWI-Prolog WASM.

Re: Web Prolog, Elixir and COBOL

<09ec968d-7f34-4922-b3c6-b7f481bbcf77n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:620a:2981:b0:649:68a4:e4ea with SMTP id r1-20020a05620a298100b0064968a4e4eamr5332628qkp.462.1645823041446;
Fri, 25 Feb 2022 13:04:01 -0800 (PST)
X-Received: by 2002:a81:1c6:0:b0:2d6:3628:4b98 with SMTP id
189-20020a8101c6000000b002d636284b98mr9268009ywb.251.1645823041273; Fri, 25
Feb 2022 13:04:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Fri, 25 Feb 2022 13:04:01 -0800 (PST)
In-Reply-To: <0596e23d-5d37-4840-8978-39461f04e98en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com> <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
<b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com> <404a4fa6-eda5-4a9b-bc8d-3a4191fd85ban@googlegroups.com>
<0596e23d-5d37-4840-8978-39461f04e98en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <09ec968d-7f34-4922-b3c6-b7f481bbcf77n@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 25 Feb 2022 21:04:01 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 70
 by: Mostowski Collapse - Fri, 25 Feb 2022 21:04 UTC

It seems I must retract my hands clapping and tend now to
be more agnostic what Tau Prolog does, and wouldn't care less
what Scryer Prolog thinks Tau Prolog should do.

I could relieve myself from this madness!!!! A madness of
different Prolog camps fighting each other. The remaining
question is only whether I should do something for

Dogelog player or formerly Jekejeke Prolog. But if SWI-Prolog
can do the conversion I don't see any need to do it. Maybe
introduce a write option in formerly Jekejeke Prolog in the

short run, and in the long run maybe move also some of these
features to Dogelog player. Dogelog player has anyway not
yet pretty printing. So when introducing pretty printing

this matters can be rethought. Lets see. Not yet sure.
At least this madness has stopped!!! Huray!!! Jippie!!!

Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 21:46:08 UTC+1:
> Its the most crazy thing I have ever seen, that such
> a conversion step is necessary. Every sane person
> might ask the following question:
>
> - Why can SWI-Prolog parse it in the first place,
> obviously correctly, since the code executes ok?
>
> - And why can't Scryer Prolog parse it in the
> first place? What is the ISO core standard worth,
>
> when it cannot read legacy Prolog texts, that
> is obviously unambigiously readable?
>
> So many question marks now!!!
> Mostowski Collapse schrieb am Freitag, 25. Februar 2022 um 21:39:04 UTC+1:
> > Ok I found a way to convert legacy Prolog text into Scryer Prolog
> > format. The steps are relatively simple:
> >
> > 1) Consult the Prolog text in SWI-Prolog
> >
> > 2) Call listing/[0,1] in SWI-Prolog
> >
> > SWI-Prolog puts an additional parenthesis around operators, even
> > when they were not there during input. So for example I get now:
> >
> > ?- listing(prove2/_).
> > prove2(?[X]:Fml, UnExp, Lits, FreeV, VarLim) :-
> > VarLim>0,
> > (!),
> > copy_term((X, Fml, FreeV),
> > (X1, Fml1, FreeV)),
> > append(UnExp, [?[X]:Fml], UnExp1),
> > VarLim2 is VarLim+ -1,
> > prove2(Fml1,
> > UnExp1,
> > Lits,
> > [X1|FreeV],
> > VarLim2)
> >
> > The SWI-Prolog output seems to have sufficient quality so that
> > I can run it with Scryer Prolog, redoing my benchmarks gives me:
> > ?- time((between(1,10,_), test(time, seq), fail; true)).
> > % CPU time: 0.435s
> > true.
> > ?- time((between(1,10,_), test(time, tap), fail; true)).
> > % CPU time: 0.197s
> > true.
> >
> > Thanks to this automatic conversion, I am now willingly to test more
> > TPTP stuff. Like for example to test also leanTap= and leanSeq= as
> > I did for SWI-Prolog WASM.

Re: Web Prolog, Elixir and COBOL

<77577d95-cad1-416b-acfa-ca56247b33a8n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a37:a9c9:0:b0:49b:56e4:1286 with SMTP id s192-20020a37a9c9000000b0049b56e41286mr3153534qke.111.1646413683587;
Fri, 04 Mar 2022 09:08:03 -0800 (PST)
X-Received: by 2002:a25:6082:0:b0:624:778a:6475 with SMTP id
u124-20020a256082000000b00624778a6475mr39057394ybb.94.1646413683369; Fri, 04
Mar 2022 09:08:03 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!45.76.7.193.MISMATCH!3.us.feeder.erje.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.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: Fri, 4 Mar 2022 09:08:03 -0800 (PST)
In-Reply-To: <09ec968d-7f34-4922-b3c6-b7f481bbcf77n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com> <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
<b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com> <404a4fa6-eda5-4a9b-bc8d-3a4191fd85ban@googlegroups.com>
<0596e23d-5d37-4840-8978-39461f04e98en@googlegroups.com> <09ec968d-7f34-4922-b3c6-b7f481bbcf77n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <77577d95-cad1-416b-acfa-ca56247b33a8n@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 04 Mar 2022 17:08:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 25
 by: Mostowski Collapse - Fri, 4 Mar 2022 17:08 UTC

Maybe I should also add this to the latest Dogelog player
milestone. I have this in formerly Jekejeke Prolog.
But I didn't check yet Scryer Prolog nor Tau-Prolog.

Also Dogelog player has not yet call/n and also
not yet predsort/3. There is a little asymmetry in Prolog,
that there is no number_compare/3 for the number

comparison, whereas we have compare/3 for syntactic
comparison. If one use a predicate that adheres to the
argument arrangement and return value of compare/3,

you could use it with predsort/3 of SWI-Prolog provenience:

?- sort([1, 1.0], L).
L = [1.0, 1].

?- predsort(number_compare, [1, 1.0], L).
L = [1].

I used this implementation, but I don’t know whether I
should recommend it:

number_compare(R, X, Y) :- X < Y, !, R = < .
number_compare(R, X, Y) ;- X =:= Y, !, R = = .
number_compare(>, _, _).

Re: Web Prolog, Elixir and COBOL

<78b3db58-dd55-4fcd-a77f-1982f4146b29n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ac8:5751:0:b0:2de:b81:4c00 with SMTP id 17-20020ac85751000000b002de0b814c00mr32534740qtx.190.1646414175816;
Fri, 04 Mar 2022 09:16:15 -0800 (PST)
X-Received: by 2002:a81:4845:0:b0:2db:f403:7d25 with SMTP id
v66-20020a814845000000b002dbf4037d25mr17876156ywa.234.1646414175574; Fri, 04
Mar 2022 09:16:15 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.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: Fri, 4 Mar 2022 09:16:15 -0800 (PST)
In-Reply-To: <77577d95-cad1-416b-acfa-ca56247b33a8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <b04b6198-2f1b-4cd1-99f9-608a603f9eb9@googlegroups.com>
<6d8e038c-5392-474c-9b3d-4959884c8853n@googlegroups.com> <68e7aae5-9c96-416c-a7d2-1ce397546764n@googlegroups.com>
<18fcefb1-3ab1-4633-9849-4025dd8d8e7fn@googlegroups.com> <s7bsul$m48$1@solani.org>
<6f93f399-0279-48a4-bdef-9d517a11fd2dn@googlegroups.com> <4cb72019-7c08-47fc-b82e-a2db96647782n@googlegroups.com>
<98b990f8-20a0-48c9-b318-e9d09b2bae2en@googlegroups.com> <92f5d7cb-fa08-4dc9-8fe6-6696ad6d3c46n@googlegroups.com>
<f0647e13-7f2f-4577-9411-1ad3e0cb2a69n@googlegroups.com> <ee5b6fa2-113b-4839-b39e-29ba12f78d9cn@googlegroups.com>
<809ce279-8112-41ef-a8ee-bad17d096fe2n@googlegroups.com> <f43bd0dc-f378-458e-b6ab-3e7736ab83ffn@googlegroups.com>
<13c9ab20-50d6-465b-8f75-b5c645f0fa23n@googlegroups.com> <985331f8-3f7c-4aa1-8617-be78b1861f89n@googlegroups.com>
<sb37s5$fks$1@solani.org> <sb3852$fqg$1@solani.org> <b8474a12-c816-44cf-9f50-069c51981e1dn@googlegroups.com>
<sb6rto$eug$1@solani.org> <sb6s2u$eug$2@solani.org> <sb9u9e$vh9$1@solani.org>
<a34b7440-e435-4a4f-aa3f-301f2ea81285n@googlegroups.com> <d27c1296-34cd-4b31-a3b4-95d18c07b7b1n@googlegroups.com>
<a914aceb-dbe2-4a5f-8a65-2c2f059cbbabn@googlegroups.com> <ef520978-b11f-40b1-a9cf-4055fe521758n@googlegroups.com>
<d9ca7dac-f413-4049-b574-62c3fb47a284n@googlegroups.com> <a3a788ff-67c7-402f-85a8-2b209bee50f5n@googlegroups.com>
<da423bd9-c83e-4253-8118-3ca0c714025fn@googlegroups.com> <16f4cf50-a2fb-4993-9051-7faa64a20f59n@googlegroups.com>
<b737751a-483f-4bb8-9405-ede1ae33c67dn@googlegroups.com> <47363b0e-5ff5-4a0a-91f6-5f4cd22472ebn@googlegroups.com>
<d7adaff0-c982-4e56-8bfe-a72147bfa002n@googlegroups.com> <47f12c92-dbaf-4da6-8c5a-aae900377b6an@googlegroups.com>
<bab94d2c-ce59-4bcd-9ea8-bd4e491a6f2fn@googlegroups.com> <693937a0-52b9-4289-a56c-1f4b6afcfe11n@googlegroups.com>
<3f7741ed-8e0d-4200-86f8-c310cc748cdan@googlegroups.com> <00e19adb-7cdd-450d-b1aa-9e6c229dde44n@googlegroups.com>
<4d915926-8ca9-4503-9262-52e1f5f6ed35n@googlegroups.com> <ec846e00-1264-4bd2-af85-b4fa368ce534n@googlegroups.com>
<22655c4a-c07f-4eb1-946c-6bb19010fa75n@googlegroups.com> <a3441097-560b-49fa-82ce-c4b6d14e461en@googlegroups.com>
<395bf2cf-94ba-438a-b72a-2848081fea17n@googlegroups.com> <f3d83c43-4a42-45e2-b324-63dfbb3d6f50n@googlegroups.com>
<ea14a390-5324-417d-ad3a-5110fc343624n@googlegroups.com> <cb85f469-d847-49d4-bf7c-ec508716821dn@googlegroups.com>
<b8044b6c-d562-4a04-8a4c-3c457961f39dn@googlegroups.com> <404a4fa6-eda5-4a9b-bc8d-3a4191fd85ban@googlegroups.com>
<0596e23d-5d37-4840-8978-39461f04e98en@googlegroups.com> <09ec968d-7f34-4922-b3c6-b7f481bbcf77n@googlegroups.com>
<77577d95-cad1-416b-acfa-ca56247b33a8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <78b3db58-dd55-4fcd-a77f-1982f4146b29n@googlegroups.com>
Subject: Re: Web Prolog, Elixir and COBOL
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 04 Mar 2022 17:16:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 38
 by: Mostowski Collapse - Fri, 4 Mar 2022 17:16 UTC

Using a comparator round(sign(N1 - N2)) would also work, if predsort/3
would understand -1, 0 and 1. Not sure whether it does. The point would
be that a Prolog systems provides this number_compare/3 natively. The

reason is that evaluating N1 - N2 can be quite expensive, it will create a new
number object. Whereas number comparison can be done more cheaply. Its
also possible to lift number_compare/3 to Prolog terms. So we are in the mist

of chaos, or a proliferation of possible design decisions.

Mostowski Collapse schrieb am Freitag, 4. März 2022 um 18:08:04 UTC+1:
> Maybe I should also add this to the latest Dogelog player
> milestone. I have this in formerly Jekejeke Prolog.
> But I didn't check yet Scryer Prolog nor Tau-Prolog.
>
> Also Dogelog player has not yet call/n and also
> not yet predsort/3. There is a little asymmetry in Prolog,
> that there is no number_compare/3 for the number
>
> comparison, whereas we have compare/3 for syntactic
> comparison. If one use a predicate that adheres to the
> argument arrangement and return value of compare/3,
>
> you could use it with predsort/3 of SWI-Prolog provenience:
>
> ?- sort([1, 1.0], L).
> L = [1.0, 1].
>
> ?- predsort(number_compare, [1, 1.0], L).
> L = [1].
>
> I used this implementation, but I don’t know whether I
> should recommend it:
>
> number_compare(R, X, Y) :- X < Y, !, R = < .
> number_compare(R, X, Y) ;- X =:= Y, !, R = = .
> number_compare(>, _, _).


devel / comp.lang.prolog / Re: Web Prolog, Elixir and COBOL

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor