Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I know engineers. They love to change things. -- Dr. McCoy


devel / comp.lang.prolog / Re: Preventing further Brainwash by Logtalk

SubjectAuthor
* Re: Preventing further Brainwash by LogtalkMostowski Collapse
`* Re: Preventing further Brainwash by LogtalkMostowski Collapse
 `* Re: Preventing further Brainwash by LogtalkMostowski Collapse
  `* Re: Preventing further Brainwash by LogtalkMostowski Collapse
   `* Re: Preventing further Brainwash by LogtalkMostowski Collapse
    `- Re: Preventing further Brainwash by LogtalkMostowski Collapse

1
Re: Preventing further Brainwash by Logtalk

<94aaab45-a1b3-4659-b17a-743bb38223b2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:622a:1ba6:b0:3bf:d520:1d59 with SMTP id bp38-20020a05622a1ba600b003bfd5201d59mr496804qtb.1.1680595517637;
Tue, 04 Apr 2023 01:05:17 -0700 (PDT)
X-Received: by 2002:a25:d412:0:b0:b76:3b21:b1dc with SMTP id
m18-20020a25d412000000b00b763b21b1dcmr1276131ybf.0.1680595517303; Tue, 04 Apr
2023 01:05:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 4 Apr 2023 01:05:17 -0700 (PDT)
In-Reply-To: <57db9e9e-bb7c-407b-a448-f5c116cabe53@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: <57db9e9e-bb7c-407b-a448-f5c116cabe53@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <94aaab45-a1b3-4659-b17a-743bb38223b2n@googlegroups.com>
Subject: Re: Preventing further Brainwash by Logtalk
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 04 Apr 2023 08:05:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1483
 by: Mostowski Collapse - Tue, 4 Apr 2023 08:05 UTC

Ha Ha, LogNonsenseTalk at its best:

> Future work
> Arm–twist Prolog implementers for better
> support for rational terms and tabling
> https://logtalk.org/papers/colp2012/coinduction_colp2012_slides.pdf

Ok, here is a suggestion. Propose a (@<)/2 for rational terms.

Then talk again.

Re: Preventing further Brainwash by Logtalk

<1ee23174-ae76-4953-a1b9-b63258602f2fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:6214:a0b:b0:56e:8ebc:a87e with SMTP id dw11-20020a0562140a0b00b0056e8ebca87emr285038qvb.2.1680595855142;
Tue, 04 Apr 2023 01:10:55 -0700 (PDT)
X-Received: by 2002:a81:b619:0:b0:545:5e70:3237 with SMTP id
u25-20020a81b619000000b005455e703237mr985371ywh.2.1680595854832; Tue, 04 Apr
2023 01:10:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 4 Apr 2023 01:10:54 -0700 (PDT)
In-Reply-To: <94aaab45-a1b3-4659-b17a-743bb38223b2n@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: <57db9e9e-bb7c-407b-a448-f5c116cabe53@googlegroups.com> <94aaab45-a1b3-4659-b17a-743bb38223b2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1ee23174-ae76-4953-a1b9-b63258602f2fn@googlegroups.com>
Subject: Re: Preventing further Brainwash by Logtalk
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 04 Apr 2023 08:10:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1925
 by: Mostowski Collapse - Tue, 4 Apr 2023 08:10 UTC

(@<) can be useful for tabling tries. So I guess LogNonsenseTalk
work about co-induction was highly influenced by the following
seminal paper in logic programming dating back to the 70s:

How to Levitate
https://www.youtube.com/watch?v=z2I5J1ArmeM

LMAO!

Mostowski Collapse schrieb am Dienstag, 4. April 2023 um 10:05:18 UTC+2:
> Ha Ha, LogNonsenseTalk at its best:
>
> > Future work
> > Arm–twist Prolog implementers for better
> > support for rational terms and tabling
> > https://logtalk.org/papers/colp2012/coinduction_colp2012_slides.pdf
>
> Ok, here is a suggestion. Propose a (@<)/2 for rational terms.
>
> Then talk again.

Re: Preventing further Brainwash by Logtalk

<379fbe0c-9abc-4be5-99e6-1e2a91dc170en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:6214:4a43:b0:56f:fe44:f257 with SMTP id ph3-20020a0562144a4300b0056ffe44f257mr324139qvb.1.1680596400089;
Tue, 04 Apr 2023 01:20:00 -0700 (PDT)
X-Received: by 2002:a81:cf05:0:b0:541:7f69:aa8b with SMTP id
u5-20020a81cf05000000b005417f69aa8bmr984998ywi.5.1680596399828; Tue, 04 Apr
2023 01:19:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 4 Apr 2023 01:19:59 -0700 (PDT)
In-Reply-To: <1ee23174-ae76-4953-a1b9-b63258602f2fn@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: <57db9e9e-bb7c-407b-a448-f5c116cabe53@googlegroups.com>
<94aaab45-a1b3-4659-b17a-743bb38223b2n@googlegroups.com> <1ee23174-ae76-4953-a1b9-b63258602f2fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <379fbe0c-9abc-4be5-99e6-1e2a91dc170en@googlegroups.com>
Subject: Re: Preventing further Brainwash by Logtalk
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 04 Apr 2023 08:20:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Mostowski Collapse - Tue, 4 Apr 2023 08:19 UTC

Other Levitating experts on the scene: Ulrich Neumerkel
and Markus Triska. It is now the year 2023, and they
still discuss number_chars/3:

number_chars/2 sometimes yields wrong results
https://github.com/mthom/scryer-prolog/issues/1773

Whereas their Scryer Prolog cannot do correctly
(@<) on rational trees aka cyclic terms. It even never
comes to their mind, to apply KISS principle

to the number_chars/3 problem, and instead
read the requirement for what number_chars/3
accepts to read it as "integer" where:

integer (* 6.4 *)
= [ layout text sequence (* 6.4.1 *) ] ,
integer token (* 6.4.4 *) ;

Why not simply strip down the relevant production
requirement for number_chars/3 "integer token" only,
or maybe something even simpler, and forget about

all the layout nonsense? Most programming languages
do it this way. Just checkout parseInteger() or parseFloat()
across languages such as Java, JavaScript, Python etc..

No language designer is so debilated to include in the integer
or float syntax layout or comments. This happens only when
you have Levitating experts on the scene.

LoL

Mostowski Collapse schrieb am Dienstag, 4. April 2023 um 10:10:56 UTC+2:
> (@<) can be useful for tabling tries. So I guess LogNonsenseTalk
> work about co-induction was highly influenced by the following
> seminal paper in logic programming dating back to the 70s:
>
> How to Levitate
> https://www.youtube.com/watch?v=z2I5J1ArmeM
>
> LMAO!
> Mostowski Collapse schrieb am Dienstag, 4. April 2023 um 10:05:18 UTC+2:
> > Ha Ha, LogNonsenseTalk at its best:
> >
> > > Future work
> > > Arm–twist Prolog implementers for better
> > > support for rational terms and tabling
> > > https://logtalk.org/papers/colp2012/coinduction_colp2012_slides.pdf
> >
> > Ok, here is a suggestion. Propose a (@<)/2 for rational terms.
> >
> > Then talk again.

Re: Preventing further Brainwash by Logtalk

<018fc872-5402-4c9d-8b55-07d65b41a721n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:622a:195:b0:3e3:7dd2:47fc with SMTP id s21-20020a05622a019500b003e37dd247fcmr518607qtw.10.1680597223247;
Tue, 04 Apr 2023 01:33:43 -0700 (PDT)
X-Received: by 2002:a81:b207:0:b0:541:8c77:93b1 with SMTP id
q7-20020a81b207000000b005418c7793b1mr1038483ywh.8.1680597222979; Tue, 04 Apr
2023 01:33:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 4 Apr 2023 01:33:42 -0700 (PDT)
In-Reply-To: <379fbe0c-9abc-4be5-99e6-1e2a91dc170en@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: <57db9e9e-bb7c-407b-a448-f5c116cabe53@googlegroups.com>
<94aaab45-a1b3-4659-b17a-743bb38223b2n@googlegroups.com> <1ee23174-ae76-4953-a1b9-b63258602f2fn@googlegroups.com>
<379fbe0c-9abc-4be5-99e6-1e2a91dc170en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <018fc872-5402-4c9d-8b55-07d65b41a721n@googlegroups.com>
Subject: Re: Preventing further Brainwash by Logtalk
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 04 Apr 2023 08:33:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3726
 by: Mostowski Collapse - Tue, 4 Apr 2023 08:33 UTC

About the KISS principle:

KISS, an acronym for "Keep it simple, stupid!",
https://en.wikipedia.org/wiki/KISS_principle

Hope this Helps!

Mostowski Collapse schrieb am Dienstag, 4. April 2023 um 10:20:01 UTC+2:
> Other Levitating experts on the scene: Ulrich Neumerkel
> and Markus Triska. It is now the year 2023, and they
> still discuss number_chars/3:
>
> number_chars/2 sometimes yields wrong results
> https://github.com/mthom/scryer-prolog/issues/1773
>
> Whereas their Scryer Prolog cannot do correctly
> (@<) on rational trees aka cyclic terms. It even never
> comes to their mind, to apply KISS principle
>
> to the number_chars/3 problem, and instead
> read the requirement for what number_chars/3
> accepts to read it as "integer" where:
>
> integer (* 6.4 *)
> = [ layout text sequence (* 6.4.1 *) ] ,
> integer token (* 6.4.4 *) ;
>
> Why not simply strip down the relevant production
> requirement for number_chars/3 "integer token" only,
> or maybe something even simpler, and forget about
>
> all the layout nonsense? Most programming languages
> do it this way. Just checkout parseInteger() or parseFloat()
> across languages such as Java, JavaScript, Python etc..
>
> No language designer is so debilated to include in the integer
> or float syntax layout or comments. This happens only when
> you have Levitating experts on the scene.
>
> LoL
> Mostowski Collapse schrieb am Dienstag, 4. April 2023 um 10:10:56 UTC+2:
> > (@<) can be useful for tabling tries. So I guess LogNonsenseTalk
> > work about co-induction was highly influenced by the following
> > seminal paper in logic programming dating back to the 70s:
> >
> > How to Levitate
> > https://www.youtube.com/watch?v=z2I5J1ArmeM
> >
> > LMAO!
> > Mostowski Collapse schrieb am Dienstag, 4. April 2023 um 10:05:18 UTC+2:
> > > Ha Ha, LogNonsenseTalk at its best:
> > >
> > > > Future work
> > > > Arm–twist Prolog implementers for better
> > > > support for rational terms and tabling
> > > > https://logtalk.org/papers/colp2012/coinduction_colp2012_slides.pdf
> > >
> > > Ok, here is a suggestion. Propose a (@<)/2 for rational terms.
> > >
> > > Then talk again.

Re: Preventing further Brainwash by Logtalk

<238de3ce-26a5-4d77-bb2a-fc2c035a24b6n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ae9:e003:0:b0:74e:f:4339 with SMTP id m3-20020ae9e003000000b0074e000f4339mr1642672qkk.13.1682169978889;
Sat, 22 Apr 2023 06:26:18 -0700 (PDT)
X-Received: by 2002:a25:cf0e:0:b0:b98:d040:d1ed with SMTP id
f14-20020a25cf0e000000b00b98d040d1edmr3805063ybg.0.1682169978622; Sat, 22 Apr
2023 06:26:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Sat, 22 Apr 2023 06:26:18 -0700 (PDT)
In-Reply-To: <018fc872-5402-4c9d-8b55-07d65b41a721n@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: <57db9e9e-bb7c-407b-a448-f5c116cabe53@googlegroups.com>
<94aaab45-a1b3-4659-b17a-743bb38223b2n@googlegroups.com> <1ee23174-ae76-4953-a1b9-b63258602f2fn@googlegroups.com>
<379fbe0c-9abc-4be5-99e6-1e2a91dc170en@googlegroups.com> <018fc872-5402-4c9d-8b55-07d65b41a721n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <238de3ce-26a5-4d77-bb2a-fc2c035a24b6n@googlegroups.com>
Subject: Re: Preventing further Brainwash by Logtalk
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Sat, 22 Apr 2023 13:26:18 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1928
 by: Mostowski Collapse - Sat, 22 Apr 2023 13:26 UTC

This blog post has a nice easter egg at the end.
https://www.philipzucker.com/harrop-checkpoint/
Elaborating on it I get the following:

/* File comvars2.p */
:- op(1200, xfy, =>).
:- op(1150, fx, hypo).

term_expansion((:- hypo(F/N)), (H :- shift(in(H)))) :-
functor(H, F, N).

(A => B) :-
reset(B, in(C), Cont),
(Cont == 0 -> true; (C = A; shift(in(C))), Cont).

Here is test case of embedded implication backtracking:

:- hypo p/1.

?- reset((p(1) => p(2) => p(X)), in(_), Cont), Cont==0.
X = 2,
Cont = 0 ;
X = 1,
Cont = 0 ;
false.

Re: Preventing further Brainwash by Logtalk

<75b2ddd4-7a3a-48c0-8776-e16fb647b783n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ae9:f710:0:b0:74c:4396:89c5 with SMTP id s16-20020ae9f710000000b0074c439689c5mr1308128qkg.15.1682170099731;
Sat, 22 Apr 2023 06:28:19 -0700 (PDT)
X-Received: by 2002:a25:74c5:0:b0:b95:65ad:4399 with SMTP id
p188-20020a2574c5000000b00b9565ad4399mr2584505ybc.8.1682170099385; Sat, 22
Apr 2023 06:28:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Sat, 22 Apr 2023 06:28:19 -0700 (PDT)
In-Reply-To: <238de3ce-26a5-4d77-bb2a-fc2c035a24b6n@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: <57db9e9e-bb7c-407b-a448-f5c116cabe53@googlegroups.com>
<94aaab45-a1b3-4659-b17a-743bb38223b2n@googlegroups.com> <1ee23174-ae76-4953-a1b9-b63258602f2fn@googlegroups.com>
<379fbe0c-9abc-4be5-99e6-1e2a91dc170en@googlegroups.com> <018fc872-5402-4c9d-8b55-07d65b41a721n@googlegroups.com>
<238de3ce-26a5-4d77-bb2a-fc2c035a24b6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <75b2ddd4-7a3a-48c0-8776-e16fb647b783n@googlegroups.com>
Subject: Re: Preventing further Brainwash by Logtalk
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Sat, 22 Apr 2023 13:28:19 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2631
 by: Mostowski Collapse - Sat, 22 Apr 2023 13:28 UTC

When I try the same with Scryer Prolog:

/* File comvars2sc.p */
:- use_module(library(cont)).

:- op(1200, xfy, =>).
:- op(1150, fx, hypo).

term_expansion((:- hypo(F/N)), (H :- shift(in(H)))) :-
functor(H, F, N).

(A => B) :-
reset(B, in(C), Cont),
(Cont = none -> true; Cont = cont(G) -> (C = A; shift(in(C))), G).

I get a segmentation fault during backtracking:

?- reset((p(1) => p(2) => p(X)), in(_), Cont), Cont==none.
X = 2, Cont = none
; Segmentation fault

Mostowski Collapse schrieb am Samstag, 22. April 2023 um 15:26:19 UTC+2:
> This blog post has a nice easter egg at the end.
> https://www.philipzucker.com/harrop-checkpoint/
> Elaborating on it I get the following:
>
> /* File comvars2.p */
> :- op(1200, xfy, =>).
> :- op(1150, fx, hypo).
>
> term_expansion((:- hypo(F/N)), (H :- shift(in(H)))) :-
> functor(H, F, N).
>
> (A => B) :-
> reset(B, in(C), Cont),
> (Cont == 0 -> true; (C = A; shift(in(C))), Cont).
>
> Here is test case of embedded implication backtracking:
>
> :- hypo p/1.
>
> ?- reset((p(1) => p(2) => p(X)), in(_), Cont), Cont==0.
> X = 2,
> Cont = 0 ;
> X = 1,
> Cont = 0 ;
> false.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor