Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Old age and treachery will beat youth and skill every time." -- a coffee cup


devel / comp.lang.apl / Replicate: NARS2000 vs GNU APL

SubjectAuthor
* Replicate: NARS2000 vs GNU APLBrian McGuinness
+* Re: Replicate: NARS2000 vs GNU APLJ. Clarke
|`- Re: Replicate: NARS2000 vs GNU APLAdám Brudzewsky
`* Re: Replicate: NARS2000 vs GNU APLjoseph turco
 `- Re: Replicate: NARS2000 vs GNU APLBrian McGuinness

1
Replicate: NARS2000 vs GNU APL

<2f74ffbc-1191-4f00-8ca7-22243a2f10afn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.apl
X-Received: by 2002:a05:622a:10c:: with SMTP id u12mr22603373qtw.303.1630355094659;
Mon, 30 Aug 2021 13:24:54 -0700 (PDT)
X-Received: by 2002:a25:4441:: with SMTP id r62mr24750815yba.10.1630355094498;
Mon, 30 Aug 2021 13:24:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!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.apl
Date: Mon, 30 Aug 2021 13:24:54 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=71.172.181.181; posting-account=h3IwYwoAAAAeE2lWQnRSCqcQ0dO-KDvQ
NNTP-Posting-Host: 71.172.181.181
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2f74ffbc-1191-4f00-8ca7-22243a2f10afn@googlegroups.com>
Subject: Replicate: NARS2000 vs GNU APL
From: b.mcguinness747@gmail.com (Brian McGuinness)
Injection-Date: Mon, 30 Aug 2021 20:24:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 22
 by: Brian McGuinness - Mon, 30 Aug 2021 20:24 UTC

NARS2000 requires the left and right arguments to have the same length:

1 ¯2 3 2 / 10 20 30
LENGTH ERROR
1 ¯2 3 2 / 10 20 30

¯2 3 2 / 10 20 30
0 0 20 20 20 30 30

GNU APL requires the number of nonnegative values in the left argument to match the number of items in the right argument:

1 ¯2 3 2 / 10 20 30
10 0 0 20 20 20 30 30
¯2 3 2 / 10 20 30
LENGTH ERROR
¯2 3 2/10 20 30
^ ^

The GNU APL approach seems to agree with the description of replicate in the IBM APL2 manual.

Re: Replicate: NARS2000 vs GNU APL

<mtiqigpe5lke3qtl2ollb41kj709m1afi8@4ax.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.apl
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!feeder3.usenet.farm!feeder2.usenet.farm!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mail
From: jclarke.873638@gmail.com (J. Clarke)
Newsgroups: comp.lang.apl
Subject: Re: Replicate: NARS2000 vs GNU APL
Message-ID: <mtiqigpe5lke3qtl2ollb41kj709m1afi8@4ax.com>
References: <2f74ffbc-1191-4f00-8ca7-22243a2f10afn@googlegroups.com>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Lines: 33
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Mon, 30 Aug 2021 17:44:22 -0400
X-Received-Bytes: 1706
 by: J. Clarke - Mon, 30 Aug 2021 21:44 UTC

On Mon, 30 Aug 2021 13:24:54 -0700 (PDT), Brian McGuinness
<b.mcguinness747@gmail.com> wrote:

>NARS2000 requires the left and right arguments to have the same length:
>
> 1 ¯2 3 2 / 10 20 30
>LENGTH ERROR
> 1 ¯2 3 2 / 10 20 30
> ?
> ¯2 3 2 / 10 20 30
>0 0 20 20 20 30 30
>
>
>GNU APL requires the number of nonnegative values in the left argument to match the number of items in the right argument:
>
> 1 ¯2 3 2 / 10 20 30
>10 0 0 20 20 20 30 30
> ¯2 3 2 / 10 20 30
>LENGTH ERROR
> ¯2 3 2/10 20 30
> ^ ^
>
>
>The GNU APL approach seems to agree with the description of replicate in the IBM APL2 manual.

The following trace is from Dyalog:
1 ¯2 3 2 / 10 20 30
LENGTH ERROR
1 ¯2 3 2/10 20 30
^

I believe emulating Dyalog is a better choice than emulating APL2,
which seems to be starting down the path to abandonware.

Re: Replicate: NARS2000 vs GNU APL

<1e3f7310-b88f-4247-aa92-6d2d8ddabc25n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.apl
X-Received: by 2002:ac8:108a:: with SMTP id a10mr2829371qtj.14.1630417005225;
Tue, 31 Aug 2021 06:36:45 -0700 (PDT)
X-Received: by 2002:a25:2b48:: with SMTP id r69mr32061465ybr.448.1630417004975;
Tue, 31 Aug 2021 06:36:44 -0700 (PDT)
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.apl
Date: Tue, 31 Aug 2021 06:36:44 -0700 (PDT)
In-Reply-To: <mtiqigpe5lke3qtl2ollb41kj709m1afi8@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.102.115.220; posting-account=0j1b7goAAAAUe0KGR2azf4M_cdcLkNAT
NNTP-Posting-Host: 77.102.115.220
References: <2f74ffbc-1191-4f00-8ca7-22243a2f10afn@googlegroups.com> <mtiqigpe5lke3qtl2ollb41kj709m1afi8@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1e3f7310-b88f-4247-aa92-6d2d8ddabc25n@googlegroups.com>
Subject: Re: Replicate: NARS2000 vs GNU APL
From: a.brudz@gmail.com (Adám Brudzewsky)
Injection-Date: Tue, 31 Aug 2021 13:36:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 55
 by: Adám Brudzewsky - Tue, 31 Aug 2021 13:36 UTC

After Dyalog adopted the definition of Replicate used by NARS, APL2 developed another definition, which differs in its handling of negative numbers in the left argument. In APL2, a negative number does not "consume" an element of the right argument, so that instead of (≢⍺)=≢⍵, we have (+/0≤⍺)=≢⍵. Developers of XAPL noticed that both extensions can be supported simultaneously: if the left argument has any negative numbers, the interpreter can tell which one the programmer meant by checking whether the right argument's length is equal to the left (NARS-style) or shorter (APL2-style). In fact, APLX already does this:
```
APLX for Windows
Copyright (C) 2001-2010 MicroAPL Ltd
WS Size = 20.0MB, Version = 5.1.0
CLEAR WS
1 ¯2 3 2 / 10 20 30
10 0 0 20 20 20 30 30
¯2 3 2 / 10 20 30
0 0 20 20 20 30 30
```
On Monday, August 30, 2021 at 10:44:25 PM UTC+1, J. Clarke wrote:
> On Mon, 30 Aug 2021 13:24:54 -0700 (PDT), Brian McGuinness
> <b.mcgui...@gmail.com> wrote:
>
> >NARS2000 requires the left and right arguments to have the same length:
> >
> > 1 ¯2 3 2 / 10 20 30
> >LENGTH ERROR
> > 1 ¯2 3 2 / 10 20 30
> > ?
> > ¯2 3 2 / 10 20 30
> >0 0 20 20 20 30 30
> >
> >
> >GNU APL requires the number of nonnegative values in the left argument to match the number of items in the right argument:
> >
> > 1 ¯2 3 2 / 10 20 30
> >10 0 0 20 20 20 30 30
> > ¯2 3 2 / 10 20 30
> >LENGTH ERROR
> > ¯2 3 2/10 20 30
> > ^ ^
> >
> >
> >The GNU APL approach seems to agree with the description of replicate in the IBM APL2 manual.
> The following trace is from Dyalog:
> 1 ¯2 3 2 / 10 20 30
> LENGTH ERROR
> 1 ¯2 3 2/10 20 30
> ^
>
> I believe emulating Dyalog is a better choice than emulating APL2,
> which seems to be starting down the path to abandonware.

Re: Replicate: NARS2000 vs GNU APL

<5ee5048f-b2dd-49c3-800e-8c67ce869c58n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.apl
X-Received: by 2002:ac8:5fd3:: with SMTP id k19mr261556qta.60.1633544067461;
Wed, 06 Oct 2021 11:14:27 -0700 (PDT)
X-Received: by 2002:a25:854c:: with SMTP id f12mr29503639ybn.95.1633544067094;
Wed, 06 Oct 2021 11:14:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.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.apl
Date: Wed, 6 Oct 2021 11:14:26 -0700 (PDT)
In-Reply-To: <2f74ffbc-1191-4f00-8ca7-22243a2f10afn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=104.158.48.207; posting-account=sVVaiwoAAADxXjJqdGwjWLItuGKaSY8j
NNTP-Posting-Host: 104.158.48.207
References: <2f74ffbc-1191-4f00-8ca7-22243a2f10afn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5ee5048f-b2dd-49c3-800e-8c67ce869c58n@googlegroups.com>
Subject: Re: Replicate: NARS2000 vs GNU APL
From: italian.pepe.32@gmail.com (joseph turco)
Injection-Date: Wed, 06 Oct 2021 18:14:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: joseph turco - Wed, 6 Oct 2021 18:14 UTC

On Monday, August 30, 2021 at 4:24:55 PM UTC-4, b.mcgui...@gmail.com wrote:
> NARS2000 requires the left and right arguments to have the same length:
>
> 1 ¯2 3 2 / 10 20 30
> LENGTH ERROR
> 1 ¯2 3 2 / 10 20 30
> ∧
> ¯2 3 2 / 10 20 30
> 0 0 20 20 20 30 30
>
>
> GNU APL requires the number of nonnegative values in the left argument to match the number of items in the right argument:
>
> 1 ¯2 3 2 / 10 20 30
> 10 0 0 20 20 20 30 30
> ¯2 3 2 / 10 20 30
> LENGTH ERROR
> ¯2 3 2/10 20 30
> ^ ^
>
>
> The GNU APL approach seems to agree with the description of replicate in the IBM APL2 manual.
sorry to hijack this thread, but are you learning GNU APL from the IBM manual? I cant find anything like 'Mastering dyalog APL' for using GNU APL.

Re: Replicate: NARS2000 vs GNU APL

<cecf7eca-5853-4f1a-9654-92d0c29e3ca1n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.apl
X-Received: by 2002:a05:6214:21a5:: with SMTP id t5mr13578715qvc.42.1635126873136;
Sun, 24 Oct 2021 18:54:33 -0700 (PDT)
X-Received: by 2002:a25:3cd:: with SMTP id 196mr14292043ybd.95.1635126872985;
Sun, 24 Oct 2021 18:54:32 -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.apl
Date: Sun, 24 Oct 2021 18:54:32 -0700 (PDT)
In-Reply-To: <5ee5048f-b2dd-49c3-800e-8c67ce869c58n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.250.207.24; posting-account=h3IwYwoAAAAeE2lWQnRSCqcQ0dO-KDvQ
NNTP-Posting-Host: 71.250.207.24
References: <2f74ffbc-1191-4f00-8ca7-22243a2f10afn@googlegroups.com> <5ee5048f-b2dd-49c3-800e-8c67ce869c58n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cecf7eca-5853-4f1a-9654-92d0c29e3ca1n@googlegroups.com>
Subject: Re: Replicate: NARS2000 vs GNU APL
From: b.mcguinness747@gmail.com (Brian McGuinness)
Injection-Date: Mon, 25 Oct 2021 01:54:33 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Brian McGuinness - Mon, 25 Oct 2021 01:54 UTC

I am experimenting with the interpreters and comparing the results with a copy of the IBM APL2 manual.

--- Brian McGuinness

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor