Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Usage: fortune -P [] -a [xsz] [Q: [file]] [rKe9] -v6[+] dataspec ... inputdir


devel / comp.lang.forth / Re: ESP32Forth big bug with FOR..NEXT loop ...???

SubjectAuthor
* ESP32Forth big bug with FOR..NEXT loop ...???Marc Petremann
+- Re: ESP32Forth big bug with FOR..NEXT loop ...???Stephen Pelc
+- Re: ESP32Forth big bug with FOR..NEXT loop ...???dxforth
+- Re: ESP32Forth big bug with FOR..NEXT loop ...???Anton Ertl
+- Re: ESP32Forth big bug with FOR..NEXT loop ...???Hans Bezemer
+* Re: ESP32Forth big bug with FOR..NEXT loop ...???Marcel Hendrix
|`* Re: ESP32Forth big bug with FOR..NEXT loop ...???Rick C
| +* Re: ESP32Forth big bug with FOR..NEXT loop ...???minf...@arcor.de
| |+* Re: ESP32Forth big bug with FOR..NEXT loop ...???Kerr-Mudd, John
| ||`- Re: ESP32Forth big bug with FOR..NEXT loop ...???minf...@arcor.de
| |`- Re: ESP32Forth big bug with FOR..NEXT loop ...???Anton Ertl
| `* Re: ESP32Forth big bug with FOR..NEXT loop ...???dxforth
|  `* Re: ESP32Forth big bug with FOR..NEXT loop ...???Rick C
|   `* Re: ESP32Forth big bug with FOR..NEXT loop ...???dxforth
|    `* Re: ESP32Forth big bug with FOR..NEXT loop ...???Rick C
|     +* Re: ESP32Forth big bug with FOR..NEXT loop ...???minf...@arcor.de
|     |`* Re: ESP32Forth big bug with FOR..NEXT loop ...???dxforth
|     | `- Re: ESP32Forth big bug with FOR..NEXT loop ...???dxforth
|     `* Re: ESP32Forth big bug with FOR..NEXT loop ...???dxforth
|      `* Re: ESP32Forth big bug with FOR..NEXT loop ...???Rick C
|       +* Re: ESP32Forth big bug with FOR..NEXT loop ...???minf...@arcor.de
|       |`- Re: ESP32Forth big bug with FOR..NEXT loop ...???Marcel Hendrix
|       `- Re: ESP32Forth big bug with FOR..NEXT loop ...???dxforth
+- Re: ESP32Forth big bug with FOR..NEXT loop ...???Marc Petremann
`* Re: ESP32Forth big bug with FOR..NEXT loop ...???Mike
 `* Re: ESP32Forth big bug with FOR..NEXT loop ...???Rick C
  `* Re: ESP32Forth big bug with FOR..NEXT loop ...???Mike
   `- Re: ESP32Forth big bug with FOR..NEXT loop ...???Rick C

Pages:12
Re: ESP32Forth big bug with FOR..NEXT loop ...???

<suerq6$ouu$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: ESP32Forth big bug with FOR..NEXT loop ...???
Date: Tue, 15 Feb 2022 11:23:32 +1100
Organization: Aioe.org NNTP Server
Message-ID: <suerq6$ouu$1@gioia.aioe.org>
References: <db2b31b3-f510-408b-beb1-a591d3132299n@googlegroups.com>
<c9dec97f-7159-4e8e-8f35-ecd167451956n@googlegroups.com>
<aefde187-f9c5-489a-954e-42006e3b6b9fn@googlegroups.com>
<suc9a8$klp$1@gioia.aioe.org>
<45936395-77bd-42f6-8cc1-48edb942fc1an@googlegroups.com>
<sud41q$1ba8$1@gioia.aioe.org>
<0d2c8841-190a-4328-8c42-6e38b1d148aen@googlegroups.com>
<sudai2$j8j$1@gioia.aioe.org>
<fb8a22d9-21e5-4905-b839-ab557079c883n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="25566"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Tue, 15 Feb 2022 00:23 UTC

On 14/02/2022 21:46, Rick C wrote:
> On Monday, February 14, 2022 at 5:23:03 AM UTC-5, dxforth wrote:
>> On 14/02/2022 20:40, Rick C wrote:
>> > On Monday, February 14, 2022 at 3:31:58 AM UTC-5, dxforth wrote:
>> >> On 14/02/2022 15:25, Rick C wrote:
>> >> > On Sunday, February 13, 2022 at 7:55:38 PM UTC-5, dxforth wrote:
>> >> >> On 14/02/2022 04:50, Rick C wrote:
>> >> >> >
>> >> >> > I had not seen the FOR AFT THEN NEXT construct. I like it.
>> >> >> Moore accepted FOR NEXT's quirks. Not so others - hence the various attempts
>> >> >> to 'fix it' which made it as complicated as DO LOOP but not as useful.
>> >> >
>> >> > Exactly which quirks where those?
>> >> Loops n+1 times and n=0 isn't a NOOP. Not the behaviour one usually wants.
>> >
>> > That is exactly what DO +LOOP does with a negative index. It works fine for me.
>> Luckily such instances are rare.
>> > Addressing, such as in arrays, works exactly that way. You just need to subtract 1 from N before starting the loop to address n-1 down to 0.
>> >
>> > Considering that FOR NEXT only decrements by 1, it seems logical to me for it to work this way.
>> >
>> Not according to eForth, FlashForth etc who developed workarounds for the behaviour.
>
> So? The thing about Forth is that everyone does what they personally prefer. Writing software is not the same as judging. There's nothing in either of these Forths that says FOR NEXT needs a work around. That's your judgement.
>

My judgement for a Z80/8086 with adequate rstack is DO LOOP. For the AVR FOR NEXT
may be the better choice - but not a bare bones one that shifted the cost to the
programmer to sweat over.

Re: ESP32Forth big bug with FOR..NEXT loop ...???

<suf7a5$dqt$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: ESP32Forth big bug with FOR..NEXT loop ...???
Date: Tue, 15 Feb 2022 14:39:49 +1100
Organization: Aioe.org NNTP Server
Message-ID: <suf7a5$dqt$1@gioia.aioe.org>
References: <db2b31b3-f510-408b-beb1-a591d3132299n@googlegroups.com>
<c9dec97f-7159-4e8e-8f35-ecd167451956n@googlegroups.com>
<aefde187-f9c5-489a-954e-42006e3b6b9fn@googlegroups.com>
<suc9a8$klp$1@gioia.aioe.org>
<45936395-77bd-42f6-8cc1-48edb942fc1an@googlegroups.com>
<sud41q$1ba8$1@gioia.aioe.org>
<0d2c8841-190a-4328-8c42-6e38b1d148aen@googlegroups.com>
<866bc645-bc2c-4151-b554-c995b4c13d5an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="14173"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Tue, 15 Feb 2022 03:39 UTC

On 14/02/2022 21:07, minf...@arcor.de wrote:
>
> FWIW apart from FOR .. NEXT, I use the following array walking words:
> FOR> ( start number elementwidth -- ) walk forward, N yields the element address
> <FOR ( start number elementwidth -- ) walk backwards, N yields the element address

All these appear to be missing in MinForth ?

Re: ESP32Forth big bug with FOR..NEXT loop ...???

<suh7pf$1erh$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: ESP32Forth big bug with FOR..NEXT loop ...???
Date: Wed, 16 Feb 2022 09:00:16 +1100
Organization: Aioe.org NNTP Server
Message-ID: <suh7pf$1erh$1@gioia.aioe.org>
References: <db2b31b3-f510-408b-beb1-a591d3132299n@googlegroups.com>
<c9dec97f-7159-4e8e-8f35-ecd167451956n@googlegroups.com>
<aefde187-f9c5-489a-954e-42006e3b6b9fn@googlegroups.com>
<suc9a8$klp$1@gioia.aioe.org>
<45936395-77bd-42f6-8cc1-48edb942fc1an@googlegroups.com>
<sud41q$1ba8$1@gioia.aioe.org>
<0d2c8841-190a-4328-8c42-6e38b1d148aen@googlegroups.com>
<866bc645-bc2c-4151-b554-c995b4c13d5an@googlegroups.com>
<suf7a5$dqt$1@gioia.aioe.org>
<49d45e38-30a1-4ac0-8505-94ffbb0ccad1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="47985"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Tue, 15 Feb 2022 22:00 UTC

On 16/02/2022 05:11, minf...@arcor.de wrote:
> dxforth schrieb am Dienstag, 15. Februar 2022 um 04:39:52 UTC+1:
>> On 14/02/2022 21:07, minf...@arcor.de wrote:
>> >
>> > FWIW apart from FOR .. NEXT, I use the following array walking words:
>> > FOR> ( start number elementwidth -- ) walk forward, N yields the element address
>> > <FOR ( start number elementwidth -- ) walk backwards, N yields the element address
>> All these appear to be missing in MinForth ?
>
> They are in the transpiler.

That means little to a forth user.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor