Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"What I've done, of course, is total garbage." -- R. Willard, Pure Math 430a


devel / comp.lang.forth / Re: Why I Don't Use Else When Programming

SubjectAuthor
* Why I Don't Use Else When Programmingdxf
+* Re: Why I Don't Use Else When Programmingjan Coombs
|`- Re: Why I Don't Use Else When Programmingdxf
+* Re: Why I Don't Use Else When ProgrammingZbig
|`- Re: Why I Don't Use Else When Programmingdxf
+- Re: Why I Don't Use Else When ProgrammingBrian Fox
+* Re: Why I Don't Use Else When ProgrammingHans Bezemer
|+- Re: Why I Don't Use Else When Programmingdxf
|`* Re: Why I Don't Use Else When ProgrammingS Jack
| +* Re: Why I Don't Use Else When ProgrammingS Jack
| |`* Re: Why I Don't Use Else When Programmingdxf
| | `* Re: Why I Don't Use Else When ProgrammingS Jack
| |  `- Re: Why I Don't Use Else When Programmingnone
| `- Re: Why I Don't Use Else When Programmingnone
+* Re: Why I Don't Use Else When ProgrammingNN
|+* Re: Why I Don't Use Else When ProgrammingMarcel Hendrix
||+* Re: Why I Don't Use Else When ProgrammingAnton Ertl
|||`- Re: Why I Don't Use Else When Programmingnone
||`* Re: Why I Don't Use Else When ProgrammingRuvim
|| `* Re: Why I Don't Use Else When ProgrammingMarcel Hendrix
||  `- Re: Why I Don't Use Else When ProgrammingRuvim
|`- Re: Why I Don't Use Else When Programmingdxf
`* Re: Why I Don't Use Else When ProgrammingMarcel Hendrix
 `- Re: Why I Don't Use Else When Programmingdxf

1
Why I Don't Use Else When Programming

<uembch$nuvs$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24656&group=comp.lang.forth#24656

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Why I Don't Use Else When Programming
Date: Sat, 23 Sep 2023 19:33:05 +1000
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uembch$nuvs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 23 Sep 2023 09:33:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="860c320479140bd4dae4e0b2c1253332";
logging-data="785404"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++SwkTB0XlOa0OF94a5zTp"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Mi+MMJ9O55yh3v6nLOjV7HELcCw=
Content-Language: en-GB
 by: dxf - Sat, 23 Sep 2023 09:33 UTC

YouTube offered this to me. Perhaps the world is catching on.

https://youtu.be/EumXak7TyQ0

So what shall we do with ANS CASE :)

Re: Why I Don't Use Else When Programming

<20230923110933.5cc36e51@t530>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24657&group=comp.lang.forth#24657

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jan4comp.lang.forth@murray-microft.co.uk (jan Coombs)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sat, 23 Sep 2023 11:09:33 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <20230923110933.5cc36e51@t530>
References: <uembch$nuvs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="0f094b530ce645bb9fd9be4c921003f7";
logging-data="788552"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cSEHN3pGEs3S1UKxYhGzNh3QbY32UtAc="
Cancel-Lock: sha1:ij/ID0ks+a7V77DCIXT5YWeNeu0=
X-Newsreader: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: jan Coombs - Sat, 23 Sep 2023 10:09 UTC

On Sat, 23 Sep 2023 19:33:05 +1000
dxf <dxforth@gmail.com> wrote:

> So what shall we do with ANS CASE :)

Ideally, ignore if you do not need CASE, else
conform with ANS, else use a different name.

Jan Coombs
--

Re: Why I Don't Use Else When Programming

<8fc60302-7ee2-4ed9-997b-15b01f5f2e08n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24658&group=comp.lang.forth#24658

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:100d:b0:412:288:8941 with SMTP id d13-20020a05622a100d00b0041202888941mr13241qte.6.1695464156193;
Sat, 23 Sep 2023 03:15:56 -0700 (PDT)
X-Received: by 2002:a05:6808:2120:b0:3ad:f6ad:b9c8 with SMTP id
r32-20020a056808212000b003adf6adb9c8mr1149314oiw.9.1695464155961; Sat, 23 Sep
2023 03:15:55 -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.forth
Date: Sat, 23 Sep 2023 03:15:55 -0700 (PDT)
In-Reply-To: <uembch$nuvs$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=83.22.127.152; posting-account=cxuXKwoAAABQpPOMD55A9IPz7pPrw6ml
NNTP-Posting-Host: 83.22.127.152
References: <uembch$nuvs$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8fc60302-7ee2-4ed9-997b-15b01f5f2e08n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: zbigniew2011@gmail.com (Zbig)
Injection-Date: Sat, 23 Sep 2023 10:15:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1354
 by: Zbig - Sat, 23 Sep 2023 10:15 UTC

> YouTube offered this to me. Perhaps the world is catching on.
>
> https://youtu.be/EumXak7TyQ0

This has been already described years ago in „Thinking Forth”
(„ATM example”, chapter 8).

Re: Why I Don't Use Else When Programming

<721be882-57f2-43b0-a082-9cff268f7eean@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24660&group=comp.lang.forth#24660

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:458f:0:b0:655:bc95:943d with SMTP id x15-20020ad4458f000000b00655bc95943dmr70212qvu.4.1695476643611;
Sat, 23 Sep 2023 06:44:03 -0700 (PDT)
X-Received: by 2002:a05:6870:b7b0:b0:1d1:37f4:aeff with SMTP id
ed48-20020a056870b7b000b001d137f4aeffmr958602oab.9.1695476643434; Sat, 23 Sep
2023 06:44:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!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.forth
Date: Sat, 23 Sep 2023 06:44:03 -0700 (PDT)
In-Reply-To: <uembch$nuvs$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=99.242.210.36; posting-account=2z7GawoAAADc70p5SM5AbaCyzjLblS3g
NNTP-Posting-Host: 99.242.210.36
References: <uembch$nuvs$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <721be882-57f2-43b0-a082-9cff268f7eean@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: brian.fox@brianfox.ca (Brian Fox)
Injection-Date: Sat, 23 Sep 2023 13:44:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Brian Fox - Sat, 23 Sep 2023 13:44 UTC

On Saturday, September 23, 2023 at 5:33:09 AM UTC-4, dxf wrote:
> YouTube offered this to me. Perhaps the world is catching on.

We must have similar profiles. I saw it yesterday as well.

Re: Why I Don't Use Else When Programming

<ueon8j$18apa$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24665&group=comp.lang.forth#24665

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sun, 24 Sep 2023 17:08:02 +1000
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ueon8j$18apa$1@dont-email.me>
References: <uembch$nuvs$1@dont-email.me> <20230923110933.5cc36e51@t530>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Sep 2023 07:08:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="14bb1b803295db68ac242764269d6ce1";
logging-data="1321770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5/CbEWmiG2J6qSkAGc7j8"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tC8KfcxTI/5xWcqOpYMNqmu523U=
Content-Language: en-GB
In-Reply-To: <20230923110933.5cc36e51@t530>
 by: dxf - Sun, 24 Sep 2023 07:08 UTC

On 23/09/2023 8:09 pm, jan Coombs wrote:
> On Sat, 23 Sep 2023 19:33:05 +1000
> dxf <dxforth@gmail.com> wrote:
>
>> So what shall we do with ANS CASE :)
>
> Ideally, ignore if you do not need CASE, else
> conform with ANS, else use a different name.

I suspect most find 'case' too useful to ignore. I provide
ANS as a compatibility add-on.

Mostly OF suffices (applying the don't use ELSE paradigm).
Should I need a common-exit case, I have is COND CONT.
From the latter I define the compatibility words:

AKA COND CASE
AKA ELSE ENDOF
: ENDCASE POSTPONE DROP POSTPONE CONT ; IMMEDIATE

Re: Why I Don't Use Else When Programming

<ueoo06$18apa$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24666&group=comp.lang.forth#24666

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sun, 24 Sep 2023 17:20:38 +1000
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ueoo06$18apa$2@dont-email.me>
References: <uembch$nuvs$1@dont-email.me>
<8fc60302-7ee2-4ed9-997b-15b01f5f2e08n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Sep 2023 07:20:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="14bb1b803295db68ac242764269d6ce1";
logging-data="1321770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8Z2NiMFl/hmtaXgJ/+0Wh"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yVYcWsTrVX3DgyBozwVg22Nu1oU=
Content-Language: en-GB
In-Reply-To: <8fc60302-7ee2-4ed9-997b-15b01f5f2e08n@googlegroups.com>
 by: dxf - Sun, 24 Sep 2023 07:20 UTC

On 23/09/2023 8:15 pm, Zbig wrote:
>> YouTube offered this to me. Perhaps the world is catching on.
>>
>> https://youtu.be/EumXak7TyQ0
>
> This has been already described years ago in „Thinking Forth”
> („ATM example”, chapter 8).

Yes - and little has changed since :)

Re: Why I Don't Use Else When Programming

<7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24672&group=comp.lang.forth#24672

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:1998:b0:770:93fb:a60e with SMTP id bm24-20020a05620a199800b0077093fba60emr38049qkb.15.1695566902624;
Sun, 24 Sep 2023 07:48:22 -0700 (PDT)
X-Received: by 2002:a05:6870:1982:b0:1d6:899d:6ed9 with SMTP id
v2-20020a056870198200b001d6899d6ed9mr1822143oam.9.1695566901966; Sun, 24 Sep
2023 07:48:21 -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.forth
Date: Sun, 24 Sep 2023 07:48:21 -0700 (PDT)
In-Reply-To: <uembch$nuvs$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <uembch$nuvs$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: the.beez.speaks@gmail.com (Hans Bezemer)
Injection-Date: Sun, 24 Sep 2023 14:48:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3137
 by: Hans Bezemer - Sun, 24 Sep 2023 14:48 UTC

On Saturday, September 23, 2023 at 11:33:09 AM UTC+2, dxf wrote:
> YouTube offered this to me. Perhaps the world is catching on.
> So what shall we do with ANS CASE :)

It's nothing new - but note it's also a paradigm shift. In the old days the world wanted
a single return from a function - which was logical in a sense, because long functions
were still very much a reality. Using too many exit points was waiting for an accident to
happen. Maybe it was also fashionable to write long functions to minimize function call
overhead. Especially on older processors it's not insignificant - building a stack frame,
discarding it on exit.. you catch my drift.

I quickly found out all that is not much of an issue with Forth, because small functions
(words) were the paradigm there (read "Thinking Forth"). So I quickly switched to multiple
exits.

On 4tH this was amplified by the introduction of the optimizer. Using ;THEN instead of
ELSE provided much tighter code, because it discarded superfluous jumps. So if there
was nothing after a THEN to execute, ELSE could be replaced by a ;THEN quite easily.

BTW, if you got an ELSE clause and the IF requires a 0= you can further simplify by
switching the IF and ELSE clauses, so there is no need for 0= anymore.

Anyways, you see that the C-like world is moving to shorter functions, because they're
much easier to control. Of course, there are still exceptions - e.g. when speed is the prime
directive. I wouldn't like to break up my VM code in smaller chunks, for example. Worse,
I'm inlining a *lot* there for the same reason.

I don't know how other Forths are in this regard, but on smaller tables CASE..ENDCASE is
significantly faster than any other technique - with the exception of direct indexed access.
On smaller tables it even easily beats a binary search. So for that reason - and that reason
alone - I'm keeping that construct in.

Hans Bezemer

Re: Why I Don't Use Else When Programming

<ueqsf7$1nvj9$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24677&group=comp.lang.forth#24677

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Mon, 25 Sep 2023 12:49:09 +1000
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <ueqsf7$1nvj9$1@dont-email.me>
References: <uembch$nuvs$1@dont-email.me>
<7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 25 Sep 2023 02:49:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6869593329abb6db3396075a9edcfbce";
logging-data="1834601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BRSplamnlSA3GWwE4TR7a"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:etRlcsYc50SC7XKIO4dKcdvtYMg=
In-Reply-To: <7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
Content-Language: en-GB
 by: dxf - Mon, 25 Sep 2023 02:49 UTC

On 25/09/2023 12:48 am, Hans Bezemer wrote:
> On Saturday, September 23, 2023 at 11:33:09 AM UTC+2, dxf wrote:
>> YouTube offered this to me. Perhaps the world is catching on.
>> So what shall we do with ANS CASE :)
>
> It's nothing new - but note it's also a paradigm shift. In the old days the world wanted
> a single return from a function - which was logical in a sense, because long functions
> were still very much a reality. Using too many exit points was waiting for an accident to
> happen. Maybe it was also fashionable to write long functions to minimize function call
> overhead. Especially on older processors it's not insignificant - building a stack frame,
> discarding it on exit.. you catch my drift.

There are reasons for continuing to use ELSE but how did we get ELSE ? ELSE is a
logical complement to IF and I suspect that's why every language has it. Having
ELSE, it has become a habit - one whose cost we've not really considered before.

> I quickly found out all that is not much of an issue with Forth, because small functions
> (words) were the paradigm there (read "Thinking Forth"). So I quickly switched to multiple
> exits.
>
> On 4tH this was amplified by the introduction of the optimizer. Using ;THEN instead of
> ELSE provided much tighter code, because it discarded superfluous jumps. So if there
> was nothing after a THEN to execute, ELSE could be replaced by a ;THEN quite easily.
>
> BTW, if you got an ELSE clause and the IF requires a 0= you can further simplify by
> switching the IF and ELSE clauses, so there is no need for 0= anymore.
>
> Anyways, you see that the C-like world is moving to shorter functions, because they're
> much easier to control. Of course, there are still exceptions - e.g. when speed is the prime
> directive. I wouldn't like to break up my VM code in smaller chunks, for example. Worse,
> I'm inlining a *lot* there for the same reason.
>
> I don't know how other Forths are in this regard, but on smaller tables CASE..ENDCASE is
> significantly faster than any other technique - with the exception of direct indexed access.
> On smaller tables it even easily beats a binary search. So for that reason - and that reason
> alone - I'm keeping that construct in.

I agree. For me it's the syntax rather than the mechanism that irritates.
ELSE (aka ENDOF) is built into the syntax and the user is stuck with it.

Re: Why I Don't Use Else When Programming

<bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24726&group=comp.lang.forth#24726

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:2611:b0:773:a789:cd07 with SMTP id z17-20020a05620a261100b00773a789cd07mr51266qko.4.1695999687815;
Fri, 29 Sep 2023 08:01:27 -0700 (PDT)
X-Received: by 2002:a05:6871:4504:b0:1e1:2a5f:4160 with SMTP id
nj4-20020a056871450400b001e12a5f4160mr1088438oab.11.1695999687326; Fri, 29
Sep 2023 08:01:27 -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.forth
Date: Fri, 29 Sep 2023 08:01:26 -0700 (PDT)
In-Reply-To: <uembch$nuvs$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c5:6f05:3a01:f695:4fa8:9966:247e;
posting-account=9A5f7goAAAD_QfJPZnlK3Xq_UhzYjdP-
NNTP-Posting-Host: 2a00:23c5:6f05:3a01:f695:4fa8:9966:247e
References: <uembch$nuvs$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: november.nihal@gmail.com (NN)
Injection-Date: Fri, 29 Sep 2023 15:01:27 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1678
 by: NN - Fri, 29 Sep 2023 15:01 UTC

On Saturday, 23 September 2023 at 10:33:09 UTC+1, dxf wrote:
> YouTube offered this to me. Perhaps the world is catching on.
>
> https://youtu.be/EumXak7TyQ0
>
> So what shall we do with ANS CASE :)

https://youtu.be/SFv8Wm2HdNM?si=Xxcw7yy1zZEg_aUk

You can skip to 'the nesting structure' if you dont want to watch the whole video

Its a shame we never get to hear back from the youtubers if they continued to believe and practice what they preached or whether they went back to their old ways after say 5 years or 10 years.

Re: Why I Don't Use Else When Programming

<df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24727&group=comp.lang.forth#24727

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:2b84:b0:775:7eb3:87bf with SMTP id dz4-20020a05620a2b8400b007757eb387bfmr61230qkb.0.1696015738991;
Fri, 29 Sep 2023 12:28:58 -0700 (PDT)
X-Received: by 2002:a05:6808:1891:b0:3a3:d677:9a8d with SMTP id
bi17-20020a056808189100b003a3d6779a8dmr2315422oib.0.1696015738787; Fri, 29
Sep 2023 12:28:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 29 Sep 2023 12:28:58 -0700 (PDT)
In-Reply-To: <bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:8f9f:1384:8637:5260;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:8f9f:1384:8637:5260
References: <uembch$nuvs$1@dont-email.me> <bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: mhx@iae.nl (Marcel Hendrix)
Injection-Date: Fri, 29 Sep 2023 19:28:58 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: Marcel Hendrix - Fri, 29 Sep 2023 19:28 UTC

Statistics from the iForth distribution.

Searching for: IF ( examples, 6908 files )
Found 37736 occurrence(s) in 1300 file(s), 957 ms
Searching for: ELSE ( examples, 6908 files )
Found 7010 occurrence(s) in 1028 file(s), 962 ms

Searching for: IF ( include, 1183 files )
Found 8241 occurrence(s) in 324 file(s), 233 ms
Searching for: ELSE ( include, 1183 files )
Found 2393 occurrence(s) in 296 file(s), 240 ms

An IF-THEN statement contains and ELSE in 20 - 25% of cases.

-marcel

Re: Why I Don't Use Else When Programming

<uf7t76$gvpe$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24734&group=comp.lang.forth#24734

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sat, 30 Sep 2023 11:21:42 +1000
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uf7t76$gvpe$1@dont-email.me>
References: <uembch$nuvs$1@dont-email.me>
<bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Sep 2023 01:21:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="837c40b2d091cc96a3c31d05a08d4a93";
logging-data="556846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/q4k0H9/VevGBJNSc6WHBz"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zFmUnL56zQI5/cVQVpnKHLyBTiU=
Content-Language: en-GB
In-Reply-To: <bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
 by: dxf - Sat, 30 Sep 2023 01:21 UTC

On 30/09/2023 1:01 am, NN wrote:
> On Saturday, 23 September 2023 at 10:33:09 UTC+1, dxf wrote:
>> YouTube offered this to me. Perhaps the world is catching on.
>>
>> https://youtu.be/EumXak7TyQ0
>>
>> So what shall we do with ANS CASE :)
>
>
> https://youtu.be/SFv8Wm2HdNM?si=Xxcw7yy1zZEg_aUk
>
> You can skip to 'the nesting structure' if you dont want to watch the whole video
>
> Its a shame we never get to hear back from the youtubers if they continued to believe and practice what they preached or whether they went back to their old ways after say 5 years or 10 years.

If a serial youtuber, it may be more about the presentation than conviction?

Among the 'conviction' topics I've written about:

http://dxforth.mirrors.minimaltype.com/forth.html

REPRESENT/FPOUT, BETWEEN, ALLOT, UNNEST, END I still embrace.

The most problematic of which was ALLOT as it breaks standard code.

Extended control-flow I never had much use for again and is now a
loadable extension.

Re: Why I Don't Use Else When Programming

<31b43a4d-814d-4138-94f7-5c017e575f12n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24738&group=comp.lang.forth#24738

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:580e:0:b0:400:9629:cfad with SMTP id g14-20020ac8580e000000b004009629cfadmr99884qtg.13.1696054583327;
Fri, 29 Sep 2023 23:16:23 -0700 (PDT)
X-Received: by 2002:a05:6870:b7b5:b0:1dd:7381:e05 with SMTP id
ed53-20020a056870b7b500b001dd73810e05mr2314081oab.3.1696054583093; Fri, 29
Sep 2023 23:16:23 -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.forth
Date: Fri, 29 Sep 2023 23:16:22 -0700 (PDT)
In-Reply-To: <uembch$nuvs$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:8f9f:1384:8637:5260;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:8f9f:1384:8637:5260
References: <uembch$nuvs$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <31b43a4d-814d-4138-94f7-5c017e575f12n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: mhx@iae.nl (Marcel Hendrix)
Injection-Date: Sat, 30 Sep 2023 06:16:23 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Marcel Hendrix - Sat, 30 Sep 2023 06:16 UTC

Statistics from the iForth distribution.

Searching for: IF ( examples, 6908 files )
Found 37736 occurrence(s) in 1300 file(s), 957 ms
Searching for: ELSE ( examples, 6908 files )
Found 7010 occurrence(s) in 1028 file(s), 962 ms

Searching for: IF ( include, 1183 files )
Found 8241 occurrence(s) in 324 file(s), 233 ms
Searching for: ELSE ( include, 1183 files )
Found 2393 occurrence(s) in 296 file(s), 240 ms

An IF-THEN statement contains an ELSE in only
20 - 25% of cases, while an IF is used in roughly
one out of four programs.

-marcel

Re: Why I Don't Use Else When Programming

<2023Sep30.090048@mips.complang.tuwien.ac.at>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24739&group=comp.lang.forth#24739

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sat, 30 Sep 2023 07:00:48 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 23
Message-ID: <2023Sep30.090048@mips.complang.tuwien.ac.at>
References: <uembch$nuvs$1@dont-email.me> <bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com> <df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>
Injection-Info: dont-email.me; posting-host="600a6c76e14b8d8276fffe88f4e8507e";
logging-data="799380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19u9r2kvGfJL6lIhMPaD6K5"
Cancel-Lock: sha1:28SQKXEOjEMMb4DutqVCotKFJW8=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sat, 30 Sep 2023 07:00 UTC

Marcel Hendrix <mhx@iae.nl> writes:
>Statistics from the iForth distribution.
>
>Searching for: IF ( examples, 6908 files )
>Found 37736 occurrence(s) in 1300 file(s), 957 ms
>Searching for: ELSE ( examples, 6908 files )
>Found 7010 occurrence(s) in 1028 file(s), 962 ms
>
>Searching for: IF ( include, 1183 files )
>Found 8241 occurrence(s) in 324 file(s), 233 ms
>Searching for: ELSE ( include, 1183 files )
>Found 2393 occurrence(s) in 296 file(s), 240 ms
>
>An IF-THEN statement contains and ELSE in 20 - 25% of cases.

In the Gforth image there are 917 IFs and 347 ELSEs (38%).

- 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: https://forth-standard.org/
EuroForth 2023: https://euro.theforth.net/2023

Re: Why I Don't Use Else When Programming

<uf8lje$ohka$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24741&group=comp.lang.forth#24741

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sat, 30 Sep 2023 18:17:50 +1000
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uf8lje$ohka$2@dont-email.me>
References: <uembch$nuvs$1@dont-email.me>
<31b43a4d-814d-4138-94f7-5c017e575f12n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Sep 2023 08:17:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="837c40b2d091cc96a3c31d05a08d4a93";
logging-data="804490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RHBx8ghHpruPxUZNVMELl"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ujuw/iaHDHtOLa+7y0CM8uCHWyk=
Content-Language: en-GB
In-Reply-To: <31b43a4d-814d-4138-94f7-5c017e575f12n@googlegroups.com>
 by: dxf - Sat, 30 Sep 2023 08:17 UTC

On 30/09/2023 4:16 pm, Marcel Hendrix wrote:
> ...
> An IF-THEN statement contains an ELSE in only
> 20 - 25% of cases

Only? It seems you went out of your way :)

Re: Why I Don't Use Else When Programming

<nnd$7272e43d$0e81b810@15614718d98f7cae>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24743&group=comp.lang.forth#24743

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
References: <uembch$nuvs$1@dont-email.me> <bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com> <df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com> <2023Sep30.090048@mips.complang.tuwien.ac.at>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$7272e43d$0e81b810@15614718d98f7cae>
Organization: KPN B.V.
Date: Sat, 30 Sep 2023 11:54:23 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr2.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 31
Injection-Date: Sat, 30 Sep 2023 11:54:23 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: none - Sat, 30 Sep 2023 09:54 UTC

In article <2023Sep30.090048@mips.complang.tuwien.ac.at>,
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>Marcel Hendrix <mhx@iae.nl> writes:
>>Statistics from the iForth distribution.
>>
>>Searching for: IF ( examples, 6908 files )
>>Found 37736 occurrence(s) in 1300 file(s), 957 ms
>>Searching for: ELSE ( examples, 6908 files )
>>Found 7010 occurrence(s) in 1028 file(s), 962 ms
>>
>>Searching for: IF ( include, 1183 files )
>>Found 8241 occurrence(s) in 324 file(s), 233 ms
>>Searching for: ELSE ( include, 1183 files )
>>Found 2393 occurrence(s) in 296 file(s), 240 ms
>>
>>An IF-THEN statement contains and ELSE in 20 - 25% of cases.
>
>In the Gforth image there are 917 IFs and 347 ELSEs (38%).

To complete the statistics ciforth 44 IF and 14 ELSE.

>
>- anton

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Why I Don't Use Else When Programming

<uf8t4r$qjng$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24745&group=comp.lang.forth#24745

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pinka@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sat, 30 Sep 2023 10:26:32 +0000
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uf8t4r$qjng$1@dont-email.me>
References: <uembch$nuvs$1@dont-email.me>
<bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
<df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Sep 2023 10:26:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="765f6ca22d7a9e145f683c0f83bbf502";
logging-data="872176"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193QHMm24ybi/Baxe/cPOAx"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:xLQ4Yw72uWv9dBhixlNB3btq8kY=
Content-Language: en-US
In-Reply-To: <df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>
 by: Ruvim - Sat, 30 Sep 2023 10:26 UTC

On 2023-09-29 19:28, Marcel Hendrix wrote:
> Statistics from the iForth distribution.
>
> Searching for: IF ( examples, 6908 files )
> Found 37736 occurrence(s) in 1300 file(s), 957 ms
> Searching for: ELSE ( examples, 6908 files )
> Found 7010 occurrence(s) in 1028 file(s), 962 ms
>
> Searching for: IF ( include, 1183 files )
> Found 8241 occurrence(s) in 324 file(s), 233 ms
> Searching for: ELSE ( include, 1183 files )
> Found 2393 occurrence(s) in 296 file(s), 240 ms
>
> An IF-THEN statement contains and ELSE in 20 - 25% of cases.
>

In the SP-Forth/4 distribution (all the repository, many authors):
Search for " IF\b"
11205 matches
1263 files contained matches
2421 files searched
Search for " ELSE\b"
3868 matches
853 files contained matches
2421 files searched
-- 35%

In the sources of SP-Forth/4 only
Search for " IF\b"
1301 matches
51 files contained matches
85 files searched
Search for " ELSE\b"
184 matches
40 files contained matches
85 files searched
-- 14%

--
Ruvim

Re: Why I Don't Use Else When Programming

<39328a36-7e32-45d8-8ad1-edcaed682d5cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24748&group=comp.lang.forth#24748

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5b47:0:b0:417:b906:1c03 with SMTP id n7-20020ac85b47000000b00417b9061c03mr104896qtw.7.1696074386945;
Sat, 30 Sep 2023 04:46:26 -0700 (PDT)
X-Received: by 2002:a05:6808:1527:b0:3ad:f4b5:3ad with SMTP id
u39-20020a056808152700b003adf4b503admr3123294oiw.8.1696074386668; Sat, 30 Sep
2023 04:46:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!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.forth
Date: Sat, 30 Sep 2023 04:46:26 -0700 (PDT)
In-Reply-To: <uf8t4r$qjng$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:8f9f:1384:8637:5260;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:8f9f:1384:8637:5260
References: <uembch$nuvs$1@dont-email.me> <bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
<df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com> <uf8t4r$qjng$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <39328a36-7e32-45d8-8ad1-edcaed682d5cn@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: mhx@iae.nl (Marcel Hendrix)
Injection-Date: Sat, 30 Sep 2023 11:46:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1936
 by: Marcel Hendrix - Sat, 30 Sep 2023 11:46 UTC

On Saturday, September 30, 2023 at 12:26:39 PM UTC+2, Ruvim wrote:
[..]
> In the SP-Forth/4 distribution (all the repository, many authors):
> Search for " IF\b"
> 11205 matches
> 1263 files contained matches
> 2421 files searched
> Search for " ELSE\b"
> 3868 matches
> 853 files contained matches
> 2421 files searched
> -- 35%
>
> In the sources of SP-Forth/4 only
> Search for " IF\b"
> 1301 matches
> 51 files contained matches
> 85 files searched
> Search for " ELSE\b"
> 184 matches
> 40 files contained matches
> 85 files searched
> -- 14%

Shouldn't that be 65% and 86% ?

-marcel

Re: Why I Don't Use Else When Programming

<ufa3qa$14lgn$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24754&group=comp.lang.forth#24754

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pinka@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sat, 30 Sep 2023 21:26:33 +0000
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <ufa3qa$14lgn$1@dont-email.me>
References: <uembch$nuvs$1@dont-email.me>
<bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com>
<df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>
<uf8t4r$qjng$1@dont-email.me>
<39328a36-7e32-45d8-8ad1-edcaed682d5cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Sep 2023 21:26:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="765f6ca22d7a9e145f683c0f83bbf502";
logging-data="1201687"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XIRReMmocnLAyYptDo0rs"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:/EleZx3kNSXXOwu+sZD7yFR/NFo=
Content-Language: en-US
In-Reply-To: <39328a36-7e32-45d8-8ad1-edcaed682d5cn@googlegroups.com>
 by: Ruvim - Sat, 30 Sep 2023 21:26 UTC

On 2023-09-30 11:46, Marcel Hendrix wrote:
> On Saturday, September 30, 2023 at 12:26:39 PM UTC+2, Ruvim wrote:
> [..]
>> In the SP-Forth/4 distribution (all the repository, many authors):
>> Search for " IF\b"
>> 11205 matches
>> 1263 files contained matches
>> 2421 files searched
>> Search for " ELSE\b"
>> 3868 matches
>> 853 files contained matches
>> 2421 files searched
>> -- 35%
>>
>> In the sources of SP-Forth/4 only
>> Search for " IF\b"
>> 1301 matches
>> 51 files contained matches
>> 85 files searched
>> Search for " ELSE\b"
>> 184 matches
>> 40 files contained matches
>> 85 files searched
>> -- 14%
>
> Shouldn't that be 65% and 86% ?

I consider the number of matches (not the number of files) in each of
two groups of files. The second group (85 files) is a subset of the
first group (2421 files). The number of files are left for reference only.

Also, I assume that when "ELSE" is used, "IF" is used too.
Thus, the percentage shows the fraction of IF THEN that is used with ELSE.

3868/11205 = 0.35 (in the first group)
184/1301 = 0.14 (in the second group)

--
Ruvim

Re: Why I Don't Use Else When Programming

<30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24756&group=comp.lang.forth#24756

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:ef0d:0:b0:775:78bb:5e8e with SMTP id j13-20020a37ef0d000000b0077578bb5e8emr120460qkk.5.1696113903318;
Sat, 30 Sep 2023 15:45:03 -0700 (PDT)
X-Received: by 2002:a05:6808:2219:b0:3ad:aeed:7eeb with SMTP id
bd25-20020a056808221900b003adaeed7eebmr3967236oib.6.1696113903026; Sat, 30
Sep 2023 15:45:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!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.forth
Date: Sat, 30 Sep 2023 15:45:02 -0700 (PDT)
In-Reply-To: <7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:fd6b:4431:81c7:2098;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:fd6b:4431:81c7:2098
References: <uembch$nuvs$1@dont-email.me> <7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: sdwjack69@gmail.com (S Jack)
Injection-Date: Sat, 30 Sep 2023 22:45:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: S Jack - Sat, 30 Sep 2023 22:45 UTC

On Sunday, September 24, 2023 at 9:48:24 AM UTC-5, Hans Bezemer wrote:
> It's nothing new - but note it's also a paradigm shift. In the old days the world wanted
> a single return from a function - which was logical in a sense, because long functions

A single exit helps if a breakpoint or some analysis routine
is wanted to decorate a word's ending.
--
me

Re: Why I Don't Use Else When Programming

<509c9080-3003-4c6e-8bc8-704d7366b49cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24757&group=comp.lang.forth#24757

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5bc8:0:b0:40f:e0dd:8050 with SMTP id b8-20020ac85bc8000000b0040fe0dd8050mr150619qtb.5.1696117402045;
Sat, 30 Sep 2023 16:43:22 -0700 (PDT)
X-Received: by 2002:a05:6870:5aad:b0:1c0:e7d3:3b2d with SMTP id
dt45-20020a0568705aad00b001c0e7d33b2dmr3268099oab.7.1696117401889; Sat, 30
Sep 2023 16:43:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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.forth
Date: Sat, 30 Sep 2023 16:43:21 -0700 (PDT)
In-Reply-To: <30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:fd6b:4431:81c7:2098;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:fd6b:4431:81c7:2098
References: <uembch$nuvs$1@dont-email.me> <7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
<30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <509c9080-3003-4c6e-8bc8-704d7366b49cn@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: sdwjack69@gmail.com (S Jack)
Injection-Date: Sat, 30 Sep 2023 23:43:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1625
 by: S Jack - Sat, 30 Sep 2023 23:43 UTC

On Saturday, September 30, 2023 at 5:45:04 PM UTC-5, S Jack wrote:

I put exits in routines that don't need them, e.g. ABORT,
and I have a redundant exit for use with shortcuts.
Redundant and superfluous code, what horrors!
Well, the de-compiler knows to keep going until SEMIS is
found.
--
me

Re: Why I Don't Use Else When Programming

<nnd$0d0eb9a8$1fef9022@6d32a7d85bbab1bb>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24758&group=comp.lang.forth#24758

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <uembch$nuvs$1@dont-email.me> <7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com> <30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$0d0eb9a8$1fef9022@6d32a7d85bbab1bb>
Organization: KPN B.V.
Date: Sun, 01 Oct 2023 02:11:07 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 28
Injection-Date: Sun, 01 Oct 2023 02:11:07 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1686
 by: none - Sun, 1 Oct 2023 00:11 UTC

In article <30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com>,
S Jack <sdwjack69@gmail.com> wrote:
>On Sunday, September 24, 2023 at 9:48:24 AM UTC-5, Hans Bezemer wrote:
>> It's nothing new - but note it's also a paradigm shift. In the old days
>the world wanted
>> a single return from a function - which was logical in a sense, because
>long functions
>
>A single exit helps if a breakpoint or some analysis routine
>is wanted to decorate a word's ending.

The decorator in ciforth doesn't need a single exit for `example.

WANT { decorated CO
{ .S CO .S } 'example decorated

This prints the stack before and after example.

>--
>me

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Why I Don't Use Else When Programming

<ufama3$1c60n$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24760&group=comp.lang.forth#24760

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Why I Don't Use Else When Programming
Date: Sun, 1 Oct 2023 13:42:12 +1100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <ufama3$1c60n$1@dont-email.me>
References: <uembch$nuvs$1@dont-email.me>
<7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
<30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com>
<509c9080-3003-4c6e-8bc8-704d7366b49cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 1 Oct 2023 02:42:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="098b48228a53840288ce25e2699a9d73";
logging-data="1447959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DjP1UnQk8xsqtwNxynjpV"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8VRpsHAuRkPinn7CdUpAU5tfltI=
In-Reply-To: <509c9080-3003-4c6e-8bc8-704d7366b49cn@googlegroups.com>
Content-Language: en-GB
 by: dxf - Sun, 1 Oct 2023 02:42 UTC

On 1/10/2023 10:43 am, S Jack wrote:
> On Saturday, September 30, 2023 at 5:45:04 PM UTC-5, S Jack wrote:
>
> I put exits in routines that don't need them, e.g. ABORT,
> and I have a redundant exit for use with shortcuts.
> Redundant and superfluous code, what horrors!
> Well, the de-compiler knows to keep going until SEMIS is
> found.

If Forth is as 'close to the metal' as we like to claim, there
should be no need to seek assurances from de-compilers.

Re: Why I Don't Use Else When Programming

<20e3626c-b571-4be6-a002-5002517bcd18n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24769&group=comp.lang.forth#24769

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:27cc:b0:65b:323:b8d4 with SMTP id ge12-20020a05621427cc00b0065b0323b8d4mr212390qvb.1.1696176146316;
Sun, 01 Oct 2023 09:02:26 -0700 (PDT)
X-Received: by 2002:a4a:4544:0:b0:573:540a:fe3b with SMTP id
y65-20020a4a4544000000b00573540afe3bmr3375621ooa.0.1696176146005; Sun, 01 Oct
2023 09:02:26 -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.forth
Date: Sun, 1 Oct 2023 09:02:25 -0700 (PDT)
In-Reply-To: <ufama3$1c60n$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:fd6b:4431:81c7:2098;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:fd6b:4431:81c7:2098
References: <uembch$nuvs$1@dont-email.me> <7d6e2f3b-4e68-41f8-82c2-6f7723c88858n@googlegroups.com>
<30e85f38-df81-477a-91db-96304b5f81b7n@googlegroups.com> <509c9080-3003-4c6e-8bc8-704d7366b49cn@googlegroups.com>
<ufama3$1c60n$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <20e3626c-b571-4be6-a002-5002517bcd18n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
From: sdwjack69@gmail.com (S Jack)
Injection-Date: Sun, 01 Oct 2023 16:02:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: S Jack - Sun, 1 Oct 2023 16:02 UTC

On Saturday, September 30, 2023 at 9:42:15 PM UTC-5, dxf wrote:

> If Forth is as 'close to the metal' as we like to claim, there
> should be no need to seek assurances from de-compilers.

Seem to recall that it also helped with compiling words that move pre-compiled
code into a definition instead of compiling source into the definition.
--
me

Re: Why I Don't Use Else When Programming

<nnd$2ee9758c$0bae6753@b82fc47b9908d167>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24779&group=comp.lang.forth#24779

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <uembch$nuvs$1@dont-email.me> <509c9080-3003-4c6e-8bc8-704d7366b49cn@googlegroups.com> <ufama3$1c60n$1@dont-email.me> <20e3626c-b571-4be6-a002-5002517bcd18n@googlegroups.com>
Subject: Re: Why I Don't Use Else When Programming
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$2ee9758c$0bae6753@b82fc47b9908d167>
Organization: KPN B.V.
Date: Mon, 02 Oct 2023 11:55:15 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 29
Injection-Date: Mon, 02 Oct 2023 11:55:15 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1859
 by: none - Mon, 2 Oct 2023 09:55 UTC

In article <20e3626c-b571-4be6-a002-5002517bcd18n@googlegroups.com>,
S Jack <sdwjack69@gmail.com> wrote:
>On Saturday, September 30, 2023 at 9:42:15 PM UTC-5, dxf wrote:
>
>> If Forth is as 'close to the metal' as we like to claim, there
>> should be no need to seek assurances from de-compilers.
>
>Seem to recall that it also helped with compiling words that move pre-compiled
>code into a definition instead of compiling source into the definition.

No need to be categoric about this. de-compilers come in handy for
a lot of purposes.

Remember the macro solution for the magic hexagon?
It is interesting to look at the decompilation that finally comes out.

I use the decompilation of my ciforth to compare with previous version,
an extra precaution to detect mistakes.

>--
>me

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor