Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Diplomacy is the art of saying "nice doggy" until you can find a rock.


devel / comp.lang.forth / Re: Modern Forth

SubjectAuthor
* Modern Forthminf...@arcor.de
+* Re: Modern ForthNickolay Kolchin
|`- Re: Modern Forthminf...@arcor.de
+- Re: Modern ForthKerr-Mudd, John
+* Re: Modern ForthMarcel Hendrix
|+* Re: Modern Forthminf...@arcor.de
||+- Re: Modern ForthMarcel Hendrix
||`- Re: Modern ForthMarcel Hendrix
|+* Re: Modern ForthKrishna Myneni
||+* Re: Modern Forthminf...@arcor.de
|||`- Re: Modern ForthKrishna Myneni
||+* Re: Modern ForthNickolay Kolchin
|||+* Re: Modern ForthKrishna Myneni
||||`* Re: Modern ForthNickolay Kolchin
|||| `* Re: Modern ForthKrishna Myneni
||||  +* Re: Modern ForthNickolay Kolchin
||||  |`* Re: Modern ForthKrishna Myneni
||||  | +* Re: Modern Forthdxforth
||||  | |`* Re: Modern Forthminf...@arcor.de
||||  | | `* Re: Modern Forthdxforth
||||  | |  +* Re: Modern ForthKrishna Myneni
||||  | |  |`- Re: Modern Forthdxforth
||||  | |  `* Re: Modern ForthAnton Ertl
||||  | |   `* Re: Modern ForthHugh Aguilar
||||  | |    `- Re: Modern ForthNickolay Kolchin
||||  | `* Re: Modern ForthHugh Aguilar
||||  |  `- Re: Modern Forthminf...@arcor.de
||||  +* Re: Modern ForthAnton Ertl
||||  |`- Re: Modern ForthNickolay Kolchin
||||  `* Re: Modern ForthAndy Valencia
||||   +* Re: Modern Forthdxforth
||||   |+- Re: Modern ForthNickolay Kolchin
||||   |`* Re: Modern ForthAnton Ertl
||||   | `* Re: Modern ForthNickolay Kolchin
||||   |  +* Re: Modern ForthRon AARON
||||   |  |`- Re: Modern ForthNickolay Kolchin
||||   |  +* Re: Modern Forthmeff
||||   |  |`* Re: Modern ForthNickolay Kolchin
||||   |  | `* Re: Modern Forthmeff
||||   |  |  `* Re: Modern Forthminf...@arcor.de
||||   |  |   `* Re: Modern Forthmeff
||||   |  |    `* Re: Modern Forthminf...@arcor.de
||||   |  |     +- Re: Modern Forthminf...@arcor.de
||||   |  |     `- Re: Modern Forthmeff
||||   |  `* Re: Modern ForthAnton Ertl
||||   |   `* Re: Modern ForthNickolay Kolchin
||||   |    `* Re: Modern Forthminf...@arcor.de
||||   |     `- Re: Modern ForthNickolay Kolchin
||||   `- Re: Modern ForthAndy Valencia
|||`* Re: Modern Forthminf...@arcor.de
||| `* Re: Modern ForthNickolay Kolchin
|||  `* Re: Modern ForthPaul Rubin
|||   +- Re: Modern Forthjohn
|||   `* Re: Modern ForthNickolay Kolchin
|||    `* Re: Modern ForthPaul Rubin
|||     `* Re: Modern ForthNickolay Kolchin
|||      `* Re: Modern ForthPaul Rubin
|||       `* Re: Modern ForthNickolay Kolchin
|||        +* Re: Modern Forthdxforth
|||        |`* Re: Modern ForthNickolay Kolchin
|||        | `* Re: Modern Forthminf...@arcor.de
|||        |  `* Re: Modern ForthNickolay Kolchin
|||        |   `* Re: Modern Forthminf...@arcor.de
|||        |    +* Re: Modern ForthMarcel Hendrix
|||        |    |+- Re: Modern ForthNickolay Kolchin
|||        |    |`* Re: Modern ForthAnton Ertl
|||        |    | `* Re: Modern ForthMarcel Hendrix
|||        |    |  +* Re: Modern ForthPaul Rubin
|||        |    |  |+* Re: Modern ForthMarcel Hendrix
|||        |    |  ||+* Re: Modern ForthPaul Rubin
|||        |    |  |||+* Re: Modern ForthNickolay Kolchin
|||        |    |  ||||`* Re: Modern Forthminf...@arcor.de
|||        |    |  |||| `- Re: Modern ForthAnton Ertl
|||        |    |  |||`* Re: Modern ForthMarcel Hendrix
|||        |    |  ||| +* Re: Modern ForthPaul Rubin
|||        |    |  ||| |+* Re: Modern ForthBrian Fox
|||        |    |  ||| ||+- Re: Modern ForthPaul Rubin
|||        |    |  ||| ||`- Re: Modern ForthAnton Ertl
|||        |    |  ||| |`- Re: Modern ForthMarcel Hendrix
|||        |    |  ||| `- Re: Modern ForthAnton Ertl
|||        |    |  ||`* Re: Modern ForthAnton Ertl
|||        |    |  || `* Re: Modern ForthPaul Rubin
|||        |    |  ||  +* Re: Modern Forthminf...@arcor.de
|||        |    |  ||  |`- Re: Modern ForthPaul Rubin
|||        |    |  ||  `- Re: Modern ForthMarcel Hendrix
|||        |    |  |`* Re: Modern ForthMarcel Hendrix
|||        |    |  | `* Re: Modern ForthNickolay Kolchin
|||        |    |  |  `- Re: Modern ForthMarcel Hendrix
|||        |    |  `- Re: Modern ForthAnton Ertl
|||        |    +- Re: Modern ForthNickolay Kolchin
|||        |    `- Re: Modern ForthNickolay Kolchin
|||        `* Re: Modern ForthPaul Rubin
|||         +- Re: Modern ForthNickolay Kolchin
|||         `- Re: Modern ForthAnton Ertl
||`* Re: Modern ForthAndy Valencia
|| +- Re: Modern ForthNickolay Kolchin
|| +* Re: Modern ForthAndy Valencia
|| |`- Re: Modern Forthminf...@arcor.de
|| +- Re: Modern ForthAnton Ertl
|| `* Re: Modern ForthAndy Valencia
||  +- Re: Modern ForthAnton Ertl
||  `- Re: Modern ForthHans Bezemer
|`- Re: Modern ForthAnton Ertl
+* Re: Modern Forthdxforth
+* Re: Modern ForthIlya Tarasov
+* Re: Modern ForthAnton Ertl
`* Re: Modern ForthHans Bezemer

Pages:1234567
Re: Modern Forth

<2022Jan3.160935@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Mon, 03 Jan 2022 15:09:35 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 55
Message-ID: <2022Jan3.160935@mips.complang.tuwien.ac.at>
References: <2021Dec29.162129@mips.complang.tuwien.ac.at> <809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com> <spvc9i$jr$1@dont-email.me> <2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com> <spvgp6$35d$1@dont-email.me> <3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com> <sq0sr6$o41$1@dont-email.me> <164080051826.32574.7415135743381741296@media.vsta.org> <sqj836$kel$1@gioia.aioe.org> <2022Jan2.170933@mips.complang.tuwien.ac.at> <d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="d2ff4cf4d9565f5ed7aa38586fbd14d6";
logging-data="15397"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184wopb+sDn7Ejk3uvxD4HV"
Cancel-Lock: sha1:58IX2+FnbH1kV0BCVuC7feXlftE=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Mon, 3 Jan 2022 15:09 UTC

Nickolay Kolchin <nbkolchin@gmail.com> writes:
>On Sunday, January 2, 2022 at 7:37:33 PM UTC+3, Anton Ertl wrote:
>> dxforth <dxf...@gmail.com> writes:
>> >Also I expect Python isn't a federation of implementers where each wants
>> >to 'have their cake and eat it too'.
>>
>> CPython has a number of implementors who need to agree on what they
>> do, because they all work on the same implementation.
>>
>
>You prefer to forget about Pypy, Jython, Pyston, GraalVM Python,
>MicroPython, etc...

Like the majority of Python users.

>> By contrast, there are many Forth systems, each with their own
>> implementor(s), and they can all go their own way, and do so.
>
>Name Forth system that appears in past 10 years and has evolved to
>something bigger than toy project.

What would be the point? But anyway, mecrisp-0.1.tar.gz was published
in August 2011, so it's slightly older than 10 years. Why would that
make a difference?

>> There
>> is the Forth200x effort to get some commonality among Forth systems,
>> but the difference to the CPython situation is: If the standard
>> stalls, a Forth system implementor can still implement whatever he
>> wants in his system; so there is much less reason for the participants
>> to find agreement in the Forth200x mechanism than in the PEP (Python
>> extension proposal) mechanism, and it's therefore also much slower.
>
>And here comes the biggest reality misunderstanding. Actually, people
>implement basic Forth system, make it compatible with ANS/2012 and
>stop at this step. Cause they treat your papers as current "top level" of
>language.

Do they? JonesForth appears to have been quite well received for a
while, and it had some deviations from the standard which seemed to
cause some confusion. Likewise, eForth deviates from the standard in
some respects.

Anyway, if your claim was true, what would follow from it? If the
standard would be a higher hurdle (as you seem to wish for), would
those who build a Forth system for the joy of it continue after
crossing that hurdle? Or would they stop earlier? Or would they
prefer to contribute to an existing Forth system?

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

Re: Modern Forth

<37337ed4-e938-4ba9-b5b1-4ea6dcbed8a5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:20ec:: with SMTP id 12mr40776734qvk.0.1641227086932;
Mon, 03 Jan 2022 08:24:46 -0800 (PST)
X-Received: by 2002:ad4:5de9:: with SMTP id jn9mr42148077qvb.87.1641227086708;
Mon, 03 Jan 2022 08:24:46 -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.forth
Date: Mon, 3 Jan 2022 08:24:46 -0800 (PST)
In-Reply-To: <2022Jan3.160935@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=213.21.29.203; posting-account=DoM31goAAADuzlbg5XKrMFannjkYS2Lr
NNTP-Posting-Host: 213.21.29.203
References: <2021Dec29.162129@mips.complang.tuwien.ac.at> <809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com>
<spvc9i$jr$1@dont-email.me> <2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com>
<spvgp6$35d$1@dont-email.me> <3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com>
<sq0sr6$o41$1@dont-email.me> <164080051826.32574.7415135743381741296@media.vsta.org>
<sqj836$kel$1@gioia.aioe.org> <2022Jan2.170933@mips.complang.tuwien.ac.at>
<d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com> <2022Jan3.160935@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <37337ed4-e938-4ba9-b5b1-4ea6dcbed8a5n@googlegroups.com>
Subject: Re: Modern Forth
From: nbkolc...@gmail.com (Nickolay Kolchin)
Injection-Date: Mon, 03 Jan 2022 16:24:46 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 15
 by: Nickolay Kolchin - Mon, 3 Jan 2022 16:24 UTC

On Monday, January 3, 2022 at 6:26:51 PM UTC+3, Anton Ertl wrote:
> Nickolay Kolchin <nbko...@gmail.com> writes:
> >And here comes the biggest reality misunderstanding. Actually, people
> >implement basic Forth system, make it compatible with ANS/2012 and
> >stop at this step. Cause they treat your papers as current "top level" of
> >language.
>
> Anyway, if your claim was true, what would follow from it? If the
> standard would be a higher hurdle (as you seem to wish for), would
> those who build a Forth system for the joy of it continue after
> crossing that hurdle? Or would they stop earlier? Or would they
> prefer to contribute to an existing Forth system?

Yes, they would. Cause this is an achievement. Standard must
represent the current topbar of the language. It should define the
future direction. And not be a legacy mess.

Re: Modern Forth

<b97b6c04-84a3-481b-b9d8-dea094571e0dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:bac2:: with SMTP id k185mr32873138qkf.685.1641228454810;
Mon, 03 Jan 2022 08:47:34 -0800 (PST)
X-Received: by 2002:a05:6214:518b:: with SMTP id kl11mr42463294qvb.51.1641228454645;
Mon, 03 Jan 2022 08:47:34 -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.forth
Date: Mon, 3 Jan 2022 08:47:34 -0800 (PST)
In-Reply-To: <37337ed4-e938-4ba9-b5b1-4ea6dcbed8a5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f16:6fa6:1023:7863:1b93:978c;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f16:6fa6:1023:7863:1b93:978c
References: <2021Dec29.162129@mips.complang.tuwien.ac.at> <809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com>
<spvc9i$jr$1@dont-email.me> <2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com>
<spvgp6$35d$1@dont-email.me> <3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com>
<sq0sr6$o41$1@dont-email.me> <164080051826.32574.7415135743381741296@media.vsta.org>
<sqj836$kel$1@gioia.aioe.org> <2022Jan2.170933@mips.complang.tuwien.ac.at>
<d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com> <2022Jan3.160935@mips.complang.tuwien.ac.at>
<37337ed4-e938-4ba9-b5b1-4ea6dcbed8a5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b97b6c04-84a3-481b-b9d8-dea094571e0dn@googlegroups.com>
Subject: Re: Modern Forth
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 03 Jan 2022 16:47:34 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 21
 by: minf...@arcor.de - Mon, 3 Jan 2022 16:47 UTC

Nickolay Kolchin schrieb am Montag, 3. Januar 2022 um 17:24:47 UTC+1:
> On Monday, January 3, 2022 at 6:26:51 PM UTC+3, Anton Ertl wrote:
> > Nickolay Kolchin <nbko...@gmail.com> writes:
> > >And here comes the biggest reality misunderstanding. Actually, people
> > >implement basic Forth system, make it compatible with ANS/2012 and
> > >stop at this step. Cause they treat your papers as current "top level" of
> > >language.
> >
> > Anyway, if your claim was true, what would follow from it? If the
> > standard would be a higher hurdle (as you seem to wish for), would
> > those who build a Forth system for the joy of it continue after
> > crossing that hurdle? Or would they stop earlier? Or would they
> > prefer to contribute to an existing Forth system?
> Yes, they would. Cause this is an achievement. Standard must
> represent the current topbar of the language. It should define the
> future direction. And not be a legacy mess.

Working in industry I have to affirm that standards are important for setting
minimal and uniform functional and quality standards between different
products/services/vendors. They impose also a strong legal product liability burden.

Nowhere there is the idea of "define the future direction".

Re: Modern Forth

<1587d6fd-c82e-4f4d-9f08-da28adaae34fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:4a0e:: with SMTP id x14mr41503465qtq.345.1641229491197;
Mon, 03 Jan 2022 09:04:51 -0800 (PST)
X-Received: by 2002:ac8:7d50:: with SMTP id h16mr42115676qtb.324.1641229491024;
Mon, 03 Jan 2022 09:04:51 -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.forth
Date: Mon, 3 Jan 2022 09:04:50 -0800 (PST)
In-Reply-To: <b97b6c04-84a3-481b-b9d8-dea094571e0dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=213.21.29.203; posting-account=DoM31goAAADuzlbg5XKrMFannjkYS2Lr
NNTP-Posting-Host: 213.21.29.203
References: <2021Dec29.162129@mips.complang.tuwien.ac.at> <809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com>
<spvc9i$jr$1@dont-email.me> <2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com>
<spvgp6$35d$1@dont-email.me> <3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com>
<sq0sr6$o41$1@dont-email.me> <164080051826.32574.7415135743381741296@media.vsta.org>
<sqj836$kel$1@gioia.aioe.org> <2022Jan2.170933@mips.complang.tuwien.ac.at>
<d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com> <2022Jan3.160935@mips.complang.tuwien.ac.at>
<37337ed4-e938-4ba9-b5b1-4ea6dcbed8a5n@googlegroups.com> <b97b6c04-84a3-481b-b9d8-dea094571e0dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1587d6fd-c82e-4f4d-9f08-da28adaae34fn@googlegroups.com>
Subject: Re: Modern Forth
From: nbkolc...@gmail.com (Nickolay Kolchin)
Injection-Date: Mon, 03 Jan 2022 17:04:51 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 30
 by: Nickolay Kolchin - Mon, 3 Jan 2022 17:04 UTC

On Monday, January 3, 2022 at 7:47:35 PM UTC+3, minf...@arcor.de wrote:
> Nickolay Kolchin schrieb am Montag, 3. Januar 2022 um 17:24:47 UTC+1:
> > On Monday, January 3, 2022 at 6:26:51 PM UTC+3, Anton Ertl wrote:
> > > Nickolay Kolchin <nbko...@gmail.com> writes:
> > > >And here comes the biggest reality misunderstanding. Actually, people
> > > >implement basic Forth system, make it compatible with ANS/2012 and
> > > >stop at this step. Cause they treat your papers as current "top level" of
> > > >language.
> > >
> > > Anyway, if your claim was true, what would follow from it? If the
> > > standard would be a higher hurdle (as you seem to wish for), would
> > > those who build a Forth system for the joy of it continue after
> > > crossing that hurdle? Or would they stop earlier? Or would they
> > > prefer to contribute to an existing Forth system?
> > Yes, they would. Cause this is an achievement. Standard must
> > represent the current topbar of the language. It should define the
> > future direction. And not be a legacy mess.
> Working in industry I have to affirm that standards are important for setting
> minimal and uniform functional and quality standards between different
> products/services/vendors. They impose also a strong legal product liability burden.
>
> Nowhere there is the idea of "define the future direction".

Let me disagree with you:

- C++ standard (compilers are almost always behind)
- Any FAA/ARINC standard (they have to look forward, cause they are
mandatory and if they just "fix" current situation, they'll stop the whole
industry evolution. That doesn't prevent them from being ugly mess
though...)
- even W3C standards (browsers lag behind)

Re: Modern Forth

<sqvj3i$713$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ema...@example.com (meff)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Mon, 3 Jan 2022 19:34:10 -0000 (UTC)
Organization: That of fools
Lines: 11
Message-ID: <sqvj3i$713$2@dont-email.me>
References: <2021Dec29.162129@mips.complang.tuwien.ac.at>
<dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com>
<spvc9i$jr$1@dont-email.me>
<2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com>
<spvgp6$35d$1@dont-email.me>
<3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com>
<sq0sr6$o41$1@dont-email.me>
<164080051826.32574.7415135743381741296@media.vsta.org>
<sqj836$kel$1@gioia.aioe.org> <2022Jan2.170933@mips.complang.tuwien.ac.at>
<d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com>
<sqtcge$iau$2@dont-email.me>
<eaa7aeb5-3755-4939-90f8-155438b4851en@googlegroups.com>
<squ6ql$a60$1@dont-email.me>
<4ff31b53-6609-4281-b330-d42b1585ad23n@googlegroups.com>
Injection-Date: Mon, 3 Jan 2022 19:34:10 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a7538ef1012f77512d792b4661a8278e";
logging-data="7203"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19G9HuycjOddOX+uXQvaJmy"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Q/QVSUoOvoTVstj/RFxv4HwPtOM=
 by: meff - Mon, 3 Jan 2022 19:34 UTC

On 2022-01-03, minf...@arcor.de <minforth@arcor.de> wrote:
> I don't think that this is bad per se. It proves that Forth's core idea is sound
> and when you develop for a MCU you don't need much more in addition than
> MCU-specific interfaces, perhaps multitasking.
>
> Things look different for desktop systens though, and when you wish to
> share software with other people.

Bad? No. Annoying? Yeah. The number of MCUs in general practice today
that could get by with a single-tasked Forth is probably vanishingly
small. Most MCUs these days have at least some concept of a HAL.

Re: Modern Forth

<97d4c62e-916d-4476-b613-03430fa8d6b4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:404e:: with SMTP id i14mr33296863qko.111.1641240915469;
Mon, 03 Jan 2022 12:15:15 -0800 (PST)
X-Received: by 2002:a05:6214:518b:: with SMTP id kl11mr43245879qvb.51.1641240915324;
Mon, 03 Jan 2022 12:15:15 -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.forth
Date: Mon, 3 Jan 2022 12:15:15 -0800 (PST)
In-Reply-To: <sqvj3i$713$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f16:6fa6:1023:7863:1b93:978c;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f16:6fa6:1023:7863:1b93:978c
References: <2021Dec29.162129@mips.complang.tuwien.ac.at> <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com> <spvc9i$jr$1@dont-email.me>
<2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com> <spvgp6$35d$1@dont-email.me>
<3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com> <sq0sr6$o41$1@dont-email.me>
<164080051826.32574.7415135743381741296@media.vsta.org> <sqj836$kel$1@gioia.aioe.org>
<2022Jan2.170933@mips.complang.tuwien.ac.at> <d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com>
<sqtcge$iau$2@dont-email.me> <eaa7aeb5-3755-4939-90f8-155438b4851en@googlegroups.com>
<squ6ql$a60$1@dont-email.me> <4ff31b53-6609-4281-b330-d42b1585ad23n@googlegroups.com>
<sqvj3i$713$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <97d4c62e-916d-4476-b613-03430fa8d6b4n@googlegroups.com>
Subject: Re: Modern Forth
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 03 Jan 2022 20:15:15 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: minf...@arcor.de - Mon, 3 Jan 2022 20:15 UTC

meff schrieb am Montag, 3. Januar 2022 um 20:34:12 UTC+1:
> On 2022-01-03, minf...@arcor.de <minf...@arcor.de> wrote:
> > I don't think that this is bad per se. It proves that Forth's core idea is sound
> > and when you develop for a MCU you don't need much more in addition than
> > MCU-specific interfaces, perhaps multitasking.
> >
> > Things look different for desktop systens though, and when you wish to
> > share software with other people.
> Bad? No. Annoying? Yeah. The number of MCUs in general practice today
> that could get by with a single-tasked Forth is probably vanishingly
> small. Most MCUs these days have at least some concept of a HAL.

What's HAL? If you mean HLA, the most prominent high-level assembler there is C.
But C doesn't give you interactivity or on-board interpreter/compiler et cetera.
Micropython is still to fat and serves only a handful of processors.

Re: Modern Forth

<aefeb77e-05b3-48dc-9867-cd8206594040n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:c21:: with SMTP id a1mr43039068qvd.100.1641241141454;
Mon, 03 Jan 2022 12:19:01 -0800 (PST)
X-Received: by 2002:a37:78b:: with SMTP id 133mr30438200qkh.99.1641241141299;
Mon, 03 Jan 2022 12:19: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.forth
Date: Mon, 3 Jan 2022 12:19:01 -0800 (PST)
In-Reply-To: <97d4c62e-916d-4476-b613-03430fa8d6b4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f16:6fa6:1023:7863:1b93:978c;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f16:6fa6:1023:7863:1b93:978c
References: <2021Dec29.162129@mips.complang.tuwien.ac.at> <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com> <spvc9i$jr$1@dont-email.me>
<2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com> <spvgp6$35d$1@dont-email.me>
<3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com> <sq0sr6$o41$1@dont-email.me>
<164080051826.32574.7415135743381741296@media.vsta.org> <sqj836$kel$1@gioia.aioe.org>
<2022Jan2.170933@mips.complang.tuwien.ac.at> <d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com>
<sqtcge$iau$2@dont-email.me> <eaa7aeb5-3755-4939-90f8-155438b4851en@googlegroups.com>
<squ6ql$a60$1@dont-email.me> <4ff31b53-6609-4281-b330-d42b1585ad23n@googlegroups.com>
<sqvj3i$713$2@dont-email.me> <97d4c62e-916d-4476-b613-03430fa8d6b4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aefeb77e-05b3-48dc-9867-cd8206594040n@googlegroups.com>
Subject: Re: Modern Forth
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 03 Jan 2022 20:19:01 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: minf...@arcor.de - Mon, 3 Jan 2022 20:19 UTC

minf...@arcor.de schrieb am Montag, 3. Januar 2022 um 21:15:16 UTC+1:
> meff schrieb am Montag, 3. Januar 2022 um 20:34:12 UTC+1:
> > On 2022-01-03, minf...@arcor.de <minf...@arcor.de> wrote:
> > > I don't think that this is bad per se. It proves that Forth's core idea is sound
> > > and when you develop for a MCU you don't need much more in addition than
> > > MCU-specific interfaces, perhaps multitasking.
> > >
> > > Things look different for desktop systens though, and when you wish to
> > > share software with other people.
> > Bad? No. Annoying? Yeah. The number of MCUs in general practice today
> > that could get by with a single-tasked Forth is probably vanishingly
> > small. Most MCUs these days have at least some concept of a HAL.
> What's HAL? If you mean HLA, the most prominent high-level assembler there is C.
> But C doesn't give you interactivity or on-board interpreter/compiler et cetera.
> Micropython is still to fat and serves only a handful of processors.

Talking about 'fat' languages - I found this article fascinating:
https://justine.lol/sectorlisp2/

Re: Modern Forth

<878rvwr1sf.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Mon, 03 Jan 2022 12:40:16 -0800
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <878rvwr1sf.fsf@nightsong.com>
References: <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<10242c33-34b7-4f3c-8657-b074c73bd6a2n@googlegroups.com>
<724e9ebf-e347-471c-b716-0aa11464e67dn@googlegroups.com>
<c6764b51-bc86-46c0-8258-fb79804e97fbn@googlegroups.com>
<c478cae4-ab53-4d9d-a741-2a05fbcf6155n@googlegroups.com>
<87bl0xrtk9.fsf@nightsong.com>
<2021Dec31.150047@mips.complang.tuwien.ac.at>
<87tuenqblj.fsf@nightsong.com> <87pmpbqbfb.fsf@nightsong.com>
<2022Jan3.153548@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="d45b13061c74602ad499eb565c081554";
logging-data="20638"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Zv0h/B9SnQc8pvQCP2K1O"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:38EhByyiDl+6YHPXt36bUiW0uoE=
sha1:mXMuYbl4WCMdhc2bdOHLDq9ETsU=
 by: Paul Rubin - Mon, 3 Jan 2022 20:40 UTC

anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
> What is a GADT? The Wikipedia page is totally unenlightening.

Generalized Algebraic Data Type. A tagged union where the union members
have different types. You match the tag using a case statement, and the
type checker then knows the type of the selected member. This is a
limited form of dependent types since you can (e.g.) encode numbers in
types, and the type checker can do a limited amount of arithmetic.

Here is an example that I thought was impressive (I linked it a few days
ago too):

https://www.reddit.com/r/haskell/comments/ti5il/redblack_trees_in_haskell_using_gadts_existential/

This encodes the invariants of a red-black tree in the type, so if the
code type checks then the invariants are satisfied. Some later GHC
extensions allow writing the types a little more cleanly, but it is the
same idea.

Re: Modern Forth

<sr2fed$q9g$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ema...@example.com (meff)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Tue, 4 Jan 2022 21:50:05 -0000 (UTC)
Organization: That of fools
Lines: 7
Message-ID: <sr2fed$q9g$1@dont-email.me>
References: <2021Dec29.162129@mips.complang.tuwien.ac.at>
<dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<809f551a-88da-40bb-ab00-77098251f5d7n@googlegroups.com>
<spvc9i$jr$1@dont-email.me>
<2a435786-587a-4a84-8e23-3786b8a5aea7n@googlegroups.com>
<spvgp6$35d$1@dont-email.me>
<3c5fe10c-9fa3-42fd-a2c7-fc0c2917a048n@googlegroups.com>
<sq0sr6$o41$1@dont-email.me>
<164080051826.32574.7415135743381741296@media.vsta.org>
<sqj836$kel$1@gioia.aioe.org> <2022Jan2.170933@mips.complang.tuwien.ac.at>
<d0fe632b-2be5-4cca-8b83-3e0c9381a359n@googlegroups.com>
<sqtcge$iau$2@dont-email.me>
<eaa7aeb5-3755-4939-90f8-155438b4851en@googlegroups.com>
<squ6ql$a60$1@dont-email.me>
<4ff31b53-6609-4281-b330-d42b1585ad23n@googlegroups.com>
<sqvj3i$713$2@dont-email.me>
<97d4c62e-916d-4476-b613-03430fa8d6b4n@googlegroups.com>
Injection-Date: Tue, 4 Jan 2022 21:50:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ba94796e7f86f081840a8be14dad1b97";
logging-data="26928"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HbiZVJ3ipUd5cp2LXmald"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:YseyVFddiA0Mwh3UHdg64Gd5OCs=
 by: meff - Tue, 4 Jan 2022 21:50 UTC

On 2022-01-03, minf...@arcor.de <minforth@arcor.de> wrote:
> What's HAL? If you mean HLA, the most prominent high-level assembler there is C.
> But C doesn't give you interactivity or on-board interpreter/compiler et cetera.
> Micropython is still to fat and serves only a handful of processors.

HAL = Hardware Abstraction Layer. Think STM32Cube's HAL,Android's binder,
or PlatformIO.

Re: Modern Forth

<71ecb4f8-f63f-478a-a0f9-a6e21c533738n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:14c6:: with SMTP id u6mr56745467qtx.195.1641570192160;
Fri, 07 Jan 2022 07:43:12 -0800 (PST)
X-Received: by 2002:a37:d207:: with SMTP id f7mr45244728qkj.272.1641570191969;
Fri, 07 Jan 2022 07:43:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!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.forth
Date: Fri, 7 Jan 2022 07:43:11 -0800 (PST)
In-Reply-To: <878rvwr1sf.fsf@nightsong.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f16:6f3e:d8f:7640:d084:56e5;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f16:6f3e:d8f:7640:d084:56e5
References: <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<10242c33-34b7-4f3c-8657-b074c73bd6a2n@googlegroups.com> <724e9ebf-e347-471c-b716-0aa11464e67dn@googlegroups.com>
<c6764b51-bc86-46c0-8258-fb79804e97fbn@googlegroups.com> <c478cae4-ab53-4d9d-a741-2a05fbcf6155n@googlegroups.com>
<87bl0xrtk9.fsf@nightsong.com> <2021Dec31.150047@mips.complang.tuwien.ac.at>
<87tuenqblj.fsf@nightsong.com> <87pmpbqbfb.fsf@nightsong.com>
<2022Jan3.153548@mips.complang.tuwien.ac.at> <878rvwr1sf.fsf@nightsong.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <71ecb4f8-f63f-478a-a0f9-a6e21c533738n@googlegroups.com>
Subject: Re: Modern Forth
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Fri, 07 Jan 2022 15:43:12 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 20
 by: minf...@arcor.de - Fri, 7 Jan 2022 15:43 UTC

Paul Rubin schrieb am Montag, 3. Januar 2022 um 21:40:18 UTC+1:
> an...@mips.complang.tuwien.ac.at (Anton Ertl) writes:
> > What is a GADT? The Wikipedia page is totally unenlightening.
> Generalized Algebraic Data Type. A tagged union where the union members
> have different types. You match the tag using a case statement, and the
> type checker then knows the type of the selected member. This is a
> limited form of dependent types since you can (e.g.) encode numbers in
> types, and the type checker can do a limited amount of arithmetic.
>
> Here is an example that I thought was impressive (I linked it a few days
> ago too):
>
> https://www.reddit.com/r/haskell/comments/ti5il/redblack_trees_in_haskell_using_gadts_existential/
>
> This encodes the invariants of a red-black tree in the type, so if the
> code type checks then the invariants are satisfied. Some later GHC
> extensions allow writing the types a little more cleanly, but it is the
> same idea.

Perhaps I still don't get it. Where's the difference to a class-based type system?
Or Visual Basic variants?

Re: Modern Forth

<2022Jan8.130814@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Sat, 08 Jan 2022 12:08:14 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 76
Message-ID: <2022Jan8.130814@mips.complang.tuwien.ac.at>
References: <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com> <10242c33-34b7-4f3c-8657-b074c73bd6a2n@googlegroups.com> <sqnok9$h8a$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="eca042e37b89111e037ca1e8c61dc68a";
logging-data="20201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DHb0xt6/Vgz6iOAzmSd+d"
Cancel-Lock: sha1:Qayzd+bUxjX2u0mCb1NCJct80DI=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sat, 8 Jan 2022 12:08 UTC

Gerry Jackson <do-not-use@swldwa.uk> writes:
>ISTM that the problem with libraries is that people have their own
>libraries with different words and names, albeit providing more or less
>the same functionality. Assuming a miracle happens and a string library,
>say, is agreed everybody with their own string library would be
>unwilling to change their existing software to use the new string
>library. The same goes for OO packages.

That's not necessarily a problem. I used to use my own struct library
http://www.complang.tuwien.ac.at/forth/compat/struct.fs; then
Forth200x standardized +FIELD and friends, and since then I have used
the standard words; Some of my existing programs continue to use the
old words, but my new code (and sometimes also updates of existing
code use the standardized words).

The problem I see with strings (and other areas) is that the way
memory management is handled leads to many mutually incompatible
approaches, each of which is good for certain usages and not so great
for different usage patterns [ertl13-strings]. In that environment
the kind of seamless transition that we have seen from struct.fs to
the standardized structure words is not possible.

@InProceedings{ertl13-strings,
author = {M. Anton Ertl},
title = {Standardize Strings Now!},
crossref = {euroforth13},
pages = {39--43},
url = {http://www.complang.tuwien.ac.at/anton/euroforth/ef13/papers/ertl-strings.pdf},
OPTnote = {not refereed},
abstract = {This paper looks at the issues in string words: what
operations may be required, various design options,
and why this has lead to the current state of
standardization of string operations that is
insufficient in the eyes of many.}
} @Proceedings{euroforth13,
title = {29th EuroForth Conference},
booktitle = {29th EuroForth Conference},
year = {2013},
key = {EuroForth'13},
url = {http://www.complang.tuwien.ac.at/anton/euroforth/ef13/papers/proceedings.pdf}
}

>The big mistake in Forth 200X is that it is open to all and sundry to
>comment and vote on whether something is accepted into the standard.
>This invariably results in an outcry from the rabid standard haters who
>object to anything new. Sometimes the 'discussion' is so vicious and
>offensive that potential proposers of a new feature are reluctant to
>write an RfD.

I think that this openness is necessary for a standard. And certainly
for me it's not the standard haters that have discouraged me from
making proposals recently.

>IMHO the best way forward is to do what they claim and form a small
>closed group to develop a new system - don't call it a standard but a
>project. This group should probably have no more than 4 or 5 members and
>keep their work private until they have something significant to
>announce. Perhaps even keep the group membership secret. Also it would
>be best to exclude commercial vendors because they have little incentive
>to change anything for good commercial reasons.

Sounds like Gforth:-). Or actually any other non-commercial system.

But yes, that avenue is open to anyone. And some have taken it and
produced nice systems with nice features. We have yet to see a Forth
system that becomes as dominant as, e.g., CPython is in the Python
landscape, a system that defines what a proper Python implementation
should include.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

Re: Modern Forth

<2022Jan8.192248@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Sat, 08 Jan 2022 18:22:48 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 17
Message-ID: <2022Jan8.192248@mips.complang.tuwien.ac.at>
References: <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com> <724e9ebf-e347-471c-b716-0aa11464e67dn@googlegroups.com> <c6764b51-bc86-46c0-8258-fb79804e97fbn@googlegroups.com> <c478cae4-ab53-4d9d-a741-2a05fbcf6155n@googlegroups.com> <87bl0xrtk9.fsf@nightsong.com> <2021Dec31.150047@mips.complang.tuwien.ac.at> <87tuenqblj.fsf@nightsong.com> <87pmpbqbfb.fsf@nightsong.com> <2022Jan3.153548@mips.complang.tuwien.ac.at> <878rvwr1sf.fsf@nightsong.com>
Injection-Info: reader02.eternal-september.org; posting-host="eca042e37b89111e037ca1e8c61dc68a";
logging-data="7954"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/l0bNhzBXyggM0osvEjysl"
Cancel-Lock: sha1:Mll48r+FGbWun3EF/aHG/VfslgE=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sat, 8 Jan 2022 18:22 UTC

Paul Rubin <no.email@nospam.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>> What is a GADT? The Wikipedia page is totally unenlightening.
>
>Generalized Algebraic Data Type. A tagged union where the union members
>have different types. You match the tag using a case statement, and the
>type checker then knows the type of the selected member.

Seems to be what I have been thinking about in this context, only I
used a different term (type guard).

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

Re: Modern Forth

<srd0d4$nnv$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ema...@example.com (meff)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Sat, 8 Jan 2022 21:40:53 -0000 (UTC)
Organization: That of fools
Lines: 13
Message-ID: <srd0d4$nnv$1@dont-email.me>
References: <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<10242c33-34b7-4f3c-8657-b074c73bd6a2n@googlegroups.com>
<sqnok9$h8a$1@dont-email.me> <2022Jan8.130814@mips.complang.tuwien.ac.at>
Injection-Date: Sat, 8 Jan 2022 21:40:53 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="737d28204ac64c4724b2fb34a516dc8b";
logging-data="24319"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KcirFAPXyy5yRor1LM6gC"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:oOznHccO1DXg8Z6IvvRBREdxB6E=
 by: meff - Sat, 8 Jan 2022 21:40 UTC

On 2022-01-08, Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
> Sounds like Gforth:-). Or actually any other non-commercial system.
>
> But yes, that avenue is open to anyone. And some have taken it and
> produced nice systems with nice features. We have yet to see a Forth
> system that becomes as dominant as, e.g., CPython is in the Python
> landscape, a system that defines what a proper Python implementation
> should include.

I think building a community around an implementation would be a lot
easier if the implementation has good documentation. It's usually the
reason why I point folks interested in Forth to Gforth. The docs are
much better than most other Forths and it has examples to boot.

Re: Modern Forth

<87fspx1s2b.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Sat, 08 Jan 2022 19:55:24 -0800
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <87fspx1s2b.fsf@nightsong.com>
References: <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<724e9ebf-e347-471c-b716-0aa11464e67dn@googlegroups.com>
<c6764b51-bc86-46c0-8258-fb79804e97fbn@googlegroups.com>
<c478cae4-ab53-4d9d-a741-2a05fbcf6155n@googlegroups.com>
<87bl0xrtk9.fsf@nightsong.com>
<2021Dec31.150047@mips.complang.tuwien.ac.at>
<87tuenqblj.fsf@nightsong.com> <87pmpbqbfb.fsf@nightsong.com>
<2022Jan3.153548@mips.complang.tuwien.ac.at>
<878rvwr1sf.fsf@nightsong.com>
<2022Jan8.192248@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="0df76f9e7d74b006453fc41ace66f4ec";
logging-data="27176"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uOusmErgFd0IPU7vEe0Ed"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:ab69uwRHeQpaB2MEXJ9NHRiePCg=
sha1:7tN3wWm5ISEeH1Pq1haiJBOahfQ=
 by: Paul Rubin - Sun, 9 Jan 2022 03:55 UTC

anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>>Generalized Algebraic Data Type.
> Seems to be what I have been thinking about in this context, only I
> used a different term (type guard).
I may not completely understand the type guard idea. I will have to
look at your post again. The GADT allows the program to select on a
runtime value (board state) and enforce at compile time that you can't
make an illegal move (one inconsistent with that state).

What makes GADT's different from ordinary types is a Haskell case
expression (I mis-used the term "case statement" before, but it is
really an expression) can refine its type depending on the value it
examines. A normal case expression (like any expression) must have a
unique type, e.g.

case x of { 1 -> "foo"; 2 -> "bar" }

has type string, which is fine. Its value is one of two different
strings, but both are of the same type. While an expression like

case x of { 1 -> "foo"; 2 -> False }

has an output type that is either string or bool, dependent on the
input. That is called a dependent type and statically enforcing
type-correctness with dependent types turns out to be Turing-complete.
E.g. you can specify a type for prime numbers, then write a program that
does some calculation with an input value and passes the result to a
function expecting a prime. That means the program should only pass the
type checker if the type checker (maybe with programmer assistance) can
mathematically prove that the calculation always ends up with a prime
number. Dependently typed languages are generally used as proof
assistants rather than for programming.

GADT's are a limited form of dependent type that can't do as much as
full-fledged ones, but that can (usually) be type checked automatically.
The red-black tree example I gave was a good example, I thought. It
would be interesting if the type-guard approach could do something
similar. If it can, maybe it can also do full dependent types, in which
case you would need a way to write proof terms through wordlist
manipulation. Maybe it is doable it seems kind of mind boggling.

I've used GADT's but haven't tried real dependent types yet. This book
is supposed to be good and I have been wanting to work through some of
it: https://softwarefoundations.cis.upenn.edu/

Among other things it is an introduction to the dependently typed
language Coq. It looks pretty readable.

Re: Modern Forth

<87bl0l1rq4.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: Modern Forth
Date: Sat, 08 Jan 2022 20:02:43 -0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <87bl0l1rq4.fsf@nightsong.com>
References: <dd0c04e4-c6c3-498b-a051-6711630588d7n@googlegroups.com>
<10242c33-34b7-4f3c-8657-b074c73bd6a2n@googlegroups.com>
<724e9ebf-e347-471c-b716-0aa11464e67dn@googlegroups.com>
<c6764b51-bc86-46c0-8258-fb79804e97fbn@googlegroups.com>
<c478cae4-ab53-4d9d-a741-2a05fbcf6155n@googlegroups.com>
<87bl0xrtk9.fsf@nightsong.com>
<2021Dec31.150047@mips.complang.tuwien.ac.at>
<87tuenqblj.fsf@nightsong.com> <87pmpbqbfb.fsf@nightsong.com>
<2022Jan3.153548@mips.complang.tuwien.ac.at>
<878rvwr1sf.fsf@nightsong.com>
<71ecb4f8-f63f-478a-a0f9-a6e21c533738n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="0df76f9e7d74b006453fc41ace66f4ec";
logging-data="27176"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fIWe7rLm5+kwElmZKqkG5"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:/yFKsWG34cQbxlXm9h5DV4kwgC0=
sha1:wY5HUmbw4Zz9i/OthirKtpL+Qv8=
 by: Paul Rubin - Sun, 9 Jan 2022 04:02 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
> Perhaps I still don't get it. Where's the difference to a class-based
> type system?

Basically the GADT in that example is a datatype for red-black trees (RB
trees) that encodes the rules for RB trees directly in the type
signature: a red node can only have black children, etc. So if you have
a value of that RB type, it must be a valid RB tree. If you look at RB
tree implementations in C or other languages, they are usually full of
assert statements or debug conditionals or unit tests to make sure that
after you do an insert operation, those invariants (conditions) still
all hold. In the Haskell example, it is impossible to for those tests
or assertions to fail on a value of RB type, because if you made a
mistake putting the tree together, you will get a compile time type error.

https://en.wikipedia.org/wiki/Red-black_tree

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor