Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Save energy: Drive a smaller shell.


devel / comp.lang.forth / Status display in QUIT ?

SubjectAuthor
* Status display in QUIT ?dxforth
+- Re: Status display in QUIT ?S Jack
+* Re: Status display in QUIT ?Marcel Hendrix
|`* Re: Status display in QUIT ?dxforth
| +* Re: Status display in QUIT ?Marcel Hendrix
| |`- Re: Status display in QUIT ?dxforth
| `- Re: Status display in QUIT ?Doug Hoffman
+* Re: Status display in QUIT ?Anton Ertl
|`* Re: Status display in QUIT ?minf...@arcor.de
| `* Re: Status display in QUIT ?Anton Ertl
|  `* Re: Status display in QUIT ?minf...@arcor.de
|   `- Re: Status display in QUIT ?Anton Ertl
+* Re: Status display in QUIT ?P Falth
|`* Re: Status display in QUIT ?S Jack
| `* Re: Status display in QUIT ?Paul Rubin
|  +- Re: Status display in QUIT ?S Jack
|  +* Re: Status display in QUIT ?dxforth
|  |+* Re: Status display in QUIT ?minf...@arcor.de
|  ||`* Re: Status display in QUIT ?dxforth
|  || +* Re: Status display in QUIT ?Anton Ertl
|  || |+- Re: Status display in QUIT ?dxforth
|  || |`- Re: Status display in QUIT ?none
|  || `- Re: Status display in QUIT ?minf...@arcor.de
|  |`* Re: Status display in QUIT ?none
|  | `- Re: Status display in QUIT ?dxforth
|  `* Re: Status display in QUIT ?none
|   +- Re: Status display in QUIT ?minf...@arcor.de
|   `- Re: Status display in QUIT ?Andy Valencia
+- Re: Status display in QUIT ?none
`* Re: Status display in QUIT ?Hans Bezemer
 +- Re: Status display in QUIT ?minf...@arcor.de
 `- Re: Status display in QUIT ?dxforth

Pages:12
Status display in QUIT ?

<t2r1rb$ni3$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!rocksolid2!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Status display in QUIT ?
Date: Sat, 9 Apr 2022 14:25:14 +1000
Organization: Aioe.org NNTP Server
Message-ID: <t2r1rb$ni3$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="24131"; 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.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Sat, 9 Apr 2022 04:25 UTC

I recently began using a forth which did a .S (among other things) in QUIT.
I previously considered such too verbose but have to say it's grown on me
after intensive debugging involving spurious values on the stack. Some
forths simply display DEPTH if non-zero which is akin to this teaser:

"I've just picked up a fault in the AE35 unit. It's going to go 100% failure
in 72 hours."

No worries, Forth. I think I'll just ignore it :)

Curious to know other forthers experiences/preferences?

Re: Status display in QUIT ?

<d6ce7f07-9b37-4cbf-ae87-818a5a9a5fefn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:28ca:b0:67f:3f2b:c1e0 with SMTP id l10-20020a05620a28ca00b0067f3f2bc1e0mr15687062qkp.111.1649498114800;
Sat, 09 Apr 2022 02:55:14 -0700 (PDT)
X-Received: by 2002:a37:a9d2:0:b0:69a:1420:a3e8 with SMTP id
s201-20020a37a9d2000000b0069a1420a3e8mr6511396qke.56.1649498114624; Sat, 09
Apr 2022 02:55:14 -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: Sat, 9 Apr 2022 02:55:14 -0700 (PDT)
In-Reply-To: <t2r1rb$ni3$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:7576:8059:d41f:2a73;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:7576:8059:d41f:2a73
References: <t2r1rb$ni3$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d6ce7f07-9b37-4cbf-ae87-818a5a9a5fefn@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: sdwjac...@gmail.com (S Jack)
Injection-Date: Sat, 09 Apr 2022 09:55:14 +0000
Content-Type: text/plain; charset="UTF-8"
 by: S Jack - Sat, 9 Apr 2022 09:55 UTC

On Friday, April 8, 2022 at 11:25:20 PM UTC-5, dxforth wrote:
>
> Curious to know other forthers experiences/preferences?
Since VAL Forth days always show stack status on QUIT but now just
show dots. If want to see the values, I'll do .S myself. The
stack display is an option but I have it on most of the time.
Sometimes I enable a fancy display that has a status line at the
screen bottom and then display the stack there. I also have a
mode (option) that upon command entry before its execution the
screen is cleared and the cursor homed. After execution, the
cursor is placed at the command line (4 lines above the bottom
line). Another display option is split screen with the bottom 4
lines a scroll area for command input and the upper area is
painted with a canvas as a backdrop for boxes. The top line is a
title bar and the bottom line of the upper area is a status bar.
Can also switch the scroll area to the upper screen for lengthy
displays that scroll off the top into a buffer that can be viewed
afterwards.
--
me

Re: Status display in QUIT ?

<44c3f260-a413-49cf-b87d-994704d61239n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:107:b0:2e1:d655:cc4c with SMTP id u7-20020a05622a010700b002e1d655cc4cmr19322849qtw.669.1649502408171;
Sat, 09 Apr 2022 04:06:48 -0700 (PDT)
X-Received: by 2002:a37:9b52:0:b0:69a:e26:61aa with SMTP id
d79-20020a379b52000000b0069a0e2661aamr7455238qke.159.1649502408034; Sat, 09
Apr 2022 04:06:48 -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: Sat, 9 Apr 2022 04:06:47 -0700 (PDT)
In-Reply-To: <t2r1rb$ni3$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f14:600:b0ea:25dd:ea3e:7301;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f14:600:b0ea:25dd:ea3e:7301
References: <t2r1rb$ni3$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <44c3f260-a413-49cf-b87d-994704d61239n@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: mhx...@iae.nl (Marcel Hendrix)
Injection-Date: Sat, 09 Apr 2022 11:06:48 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Marcel Hendrix - Sat, 9 Apr 2022 11:06 UTC

On Saturday, April 9, 2022 at 6:25:20 AM UTC+2, dxforth wrote:
> I recently began using a forth which did a .S (among other things) in QUIT.
> I previously considered such too verbose but have to say it's grown on me
> after intensive debugging involving spurious values on the stack. Some
> forths simply display DEPTH if non-zero which is akin to this teaser:
>
> "I've just picked up a fault in the AE35 unit. It's going to go 100% failure
> in 72 hours."
>
> No worries, Forth. I think I'll just ignore it :)
>
> Curious to know other forthers experiences/preferences?

I think it's a question of taste.

FORTH> : test begin 123 56 >S PI QUIT AGAIN ; ok
FORTH> test
[1]<1>{1}FORTH> . -s f. 123 3.141593 ok

-marcel

Re: Status display in QUIT ?

<2022Apr9.135702@mips.complang.tuwien.ac.at>

  copy mid

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

  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: Status display in QUIT ?
Date: Sat, 09 Apr 2022 11:57:02 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 25
Message-ID: <2022Apr9.135702@mips.complang.tuwien.ac.at>
References: <t2r1rb$ni3$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="289dee7f4237e7049a49e8b9e513c292";
logging-data="9750"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+noZaHV/LvddLqGFkMoKs"
Cancel-Lock: sha1:ovyh88TDuNmnojByekVP2jqXAik=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sat, 9 Apr 2022 11:57 UTC

dxforth <dxforth@gmail.com> writes:
>Curious to know other forthers experiences/preferences?

The development version of Gforth diplays the stack depth after ok,
and the stack contents in the bottom line (which is erased when
the next line is text-interpreted).

E.g., inputting

s" foo" 1.23e

results in a line

s" foo" 1.23e ok 2 f:1

(2 is the data stack depth, 1 the FP stack depth), and the bottom line shows:

<2> "foo" |F:<1> 1.230000E0 |o:Forth Forth Root Forth

- 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: Status display in QUIT ?

<325fecb4-8092-4f07-ab17-cc0b02abe3d9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:2293:b0:600:2b7b:2a19 with SMTP id o19-20020a05620a229300b006002b7b2a19mr15924476qkh.408.1649515320638;
Sat, 09 Apr 2022 07:42:00 -0700 (PDT)
X-Received: by 2002:a05:620a:27d3:b0:699:fd2b:8cad with SMTP id
i19-20020a05620a27d300b00699fd2b8cadmr9482397qkp.609.1649515320474; Sat, 09
Apr 2022 07:42:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!45.76.7.193.MISMATCH!3.us.feeder.erje.net!feeder.erje.net!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: Sat, 9 Apr 2022 07:42:00 -0700 (PDT)
In-Reply-To: <2022Apr9.135702@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <t2r1rb$ni3$1@gioia.aioe.org> <2022Apr9.135702@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <325fecb4-8092-4f07-ab17-cc0b02abe3d9n@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Sat, 09 Apr 2022 14:42:00 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 23
 by: minf...@arcor.de - Sat, 9 Apr 2022 14:42 UTC

Anton Ertl schrieb am Samstag, 9. April 2022 um 14:02:28 UTC+2:
> dxforth <dxf...@gmail.com> writes:
> >Curious to know other forthers experiences/preferences?
> The development version of Gforth diplays the stack depth after ok,
> and the stack contents in the bottom line (which is erased when
> the next line is text-interpreted).
>
> E.g., inputting
>
> s" foo" 1.23e
>
> results in a line
>
> s" foo" 1.23e ok 2 f:1
>
> (2 is the data stack depth, 1 the FP stack depth), and the bottom line shows:
>
> <2> "foo" |F:<1> 1.230000E0 |o:Forth Forth Root Forth
>

The <2> "foo" is interesting. I guess that it appears only when the 2nd stack element
points to a stack buffer. Otherwise it would show the numbers.

What happens when you input "foo" at the command line?

Re: Status display in QUIT ?

<8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:6382:0:b0:69b:fbde:42d1 with SMTP id x124-20020a376382000000b0069bfbde42d1mr1435743qkb.48.1649515467798;
Sat, 09 Apr 2022 07:44:27 -0700 (PDT)
X-Received: by 2002:a0c:efc8:0:b0:444:3393:cc4c with SMTP id
a8-20020a0cefc8000000b004443393cc4cmr2082016qvt.46.1649515467608; Sat, 09 Apr
2022 07:44:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!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: Sat, 9 Apr 2022 07:44:27 -0700 (PDT)
In-Reply-To: <t2r1rb$ni3$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=87.8.9.108; posting-account=ryzhhAoAAAAIqf1uqmG9E4uP1Bagd-k2
NNTP-Posting-Host: 87.8.9.108
References: <t2r1rb$ni3$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: peter.m....@gmail.com (P Falth)
Injection-Date: Sat, 09 Apr 2022 14:44:27 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 21
 by: P Falth - Sat, 9 Apr 2022 14:44 UTC

On Saturday, 9 April 2022 at 06:25:20 UTC+2, dxforth wrote:
> I recently began using a forth which did a .S (among other things) in QUIT.
> I previously considered such too verbose but have to say it's grown on me
> after intensive debugging involving spurious values on the stack. Some
> forths simply display DEPTH if non-zero which is akin to this teaser:
>
> "I've just picked up a fault in the AE35 unit. It's going to go 100% failure
> in 72 hours."
>
> No worries, Forth. I think I'll just ignore it :)
>
> Curious to know other forthers experiences/preferences?

I have .OK in QUIT that prints the OK prompt and dots after it depending on the depth
3 items on the stack will look like ok...
the ok prompt is also printed in green. (I use a black background)

As a complement I have : .. .S DEPTH DISCARD ;
This will print the stack items and clear the stack. A very useful tool

BR
Peter

Re: Status display in QUIT ?

<2022Apr9.174244@mips.complang.tuwien.ac.at>

  copy mid

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

  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: Status display in QUIT ?
Date: Sat, 09 Apr 2022 15:42:44 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 31
Message-ID: <2022Apr9.174244@mips.complang.tuwien.ac.at>
References: <t2r1rb$ni3$1@gioia.aioe.org> <2022Apr9.135702@mips.complang.tuwien.ac.at> <325fecb4-8092-4f07-ab17-cc0b02abe3d9n@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="289dee7f4237e7049a49e8b9e513c292";
logging-data="20948"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19enonN5nPWoFZ2KpL/FZQV"
Cancel-Lock: sha1:GOh8TyDCqzp7qEDLdx9Sj1d2tDk=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sat, 9 Apr 2022 15:42 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
>The <2> "foo" is interesting. I guess that it appears only when the 2nd stack element
>points to a stack buffer.

This comes out of "...", the smart brother of ".S"
<2019Apr30.180959@mips.complang.tuwien.ac.at>. It uses some heuritics
to try to guess what the stack items mean. Often it is right,
sometimes it is wrong. I would have to look at the code to find out
what the exact heuristics are, but it's probably something like: the
length part must be not too big, all bytes inside accessible, and they
must not be control characters.

>What happens when you input "foo" at the command line?

"foo" type \ foo ok

The stuff behind \ is the output.

The general principle is that ... outputs stuff in a way that you can
also input. So we have recognizers for these things. E.g.:

create a 10 allot
a 1 + ... \ <1> <a+$1> ok 1
<a+$1> = . \ -1 ok

- 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: Status display in QUIT ?

<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:29cb:b0:699:fee3:265a with SMTP id s11-20020a05620a29cb00b00699fee3265amr9076295qkp.513.1649525002246;
Sat, 09 Apr 2022 10:23:22 -0700 (PDT)
X-Received: by 2002:ad4:5ca3:0:b0:440:f131:a7a4 with SMTP id
q3-20020ad45ca3000000b00440f131a7a4mr20647907qvh.16.1649525002052; Sat, 09
Apr 2022 10:23:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 9 Apr 2022 10:23:21 -0700 (PDT)
In-Reply-To: <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:7576:8059:d41f:2a73;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:7576:8059:d41f:2a73
References: <t2r1rb$ni3$1@gioia.aioe.org> <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: sdwjac...@gmail.com (S Jack)
Injection-Date: Sat, 09 Apr 2022 17:23:22 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: S Jack - Sat, 9 Apr 2022 17:23 UTC

On Saturday, April 9, 2022 at 9:44:28 AM UTC-5, P Falth wrote:
> This will print the stack items and clear the stack. A very useful tool

In Fig days and before Linux it was common and convenient to hit dot twice for an illegal command
to clear the stack. That quickly evolved to the word ".." that would clear the stack without an
error message. But in Linux a double dot is for the parent directory. Although it has no meaning in
my Forth I changed it to double-x, "xx", to avoid confusion.
--
me

Re: Status display in QUIT ?

<87lewe9kfh.fsf@nightsong.com>

  copy mid

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

  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: Status display in QUIT ?
Date: Sat, 09 Apr 2022 11:32:50 -0700
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <87lewe9kfh.fsf@nightsong.com>
References: <t2r1rb$ni3$1@gioia.aioe.org>
<8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="c6ea819e7317eaf8af53c07547815bf1";
logging-data="18106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ccZU8HKXwrNRwpO/xqAsh"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:44zzbgSqokSAQ/OrUqNklvllgh4=
sha1:BeyLowoiRmFzRU/6ZHtW5H3CIbg=
 by: Paul Rubin - Sat, 9 Apr 2022 18:32 UTC

S Jack <sdwjack69@gmail.com> writes:
> In Fig days and before Linux it was common and convenient to hit dot
> twice for an illegal command to clear the stack. That quickly evolved
> to the word ".." that would clear the stack without an error message.

In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
usually alias it to "cs" when testing stuff.

Re: Status display in QUIT ?

<658440a4-d66c-47ed-92a7-bdb7b5f7faeen@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a0c:9a8a:0:b0:443:cfc9:5dae with SMTP id y10-20020a0c9a8a000000b00443cfc95daemr21052828qvd.94.1649529429274;
Sat, 09 Apr 2022 11:37:09 -0700 (PDT)
X-Received: by 2002:a05:622a:1906:b0:2e0:77a7:16c4 with SMTP id
w6-20020a05622a190600b002e077a716c4mr20780724qtc.119.1649529429132; Sat, 09
Apr 2022 11:37:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 9 Apr 2022 11:37:09 -0700 (PDT)
In-Reply-To: <2022Apr9.174244@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <t2r1rb$ni3$1@gioia.aioe.org> <2022Apr9.135702@mips.complang.tuwien.ac.at>
<325fecb4-8092-4f07-ab17-cc0b02abe3d9n@googlegroups.com> <2022Apr9.174244@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <658440a4-d66c-47ed-92a7-bdb7b5f7faeen@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Sat, 09 Apr 2022 18:37:09 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 25
 by: minf...@arcor.de - Sat, 9 Apr 2022 18:37 UTC

Anton Ertl schrieb am Samstag, 9. April 2022 um 18:01:01 UTC+2:
> "minf...@arcor.de" <minf...@arcor.de> writes:
> >The <2> "foo" is interesting. I guess that it appears only when the 2nd stack element
> >points to a stack buffer.
> This comes out of "...", the smart brother of ".S"
> <2019Apr3...@mips.complang.tuwien.ac.at>. It uses some heuritics
> to try to guess what the stack items mean. Often it is right,
> sometimes it is wrong. I would have to look at the code to find out
> what the exact heuristics are, but it's probably something like: the
> length part must be not too big, all bytes inside accessible, and they
> must not be control characters.
> >What happens when you input "foo" at the command line?
> "foo" type \ foo ok
>
> The stuff behind \ is the output.
>
> The general principle is that ... outputs stuff in a way that you can
> also input. So we have recognizers for these things. E.g.:
>
> create a 10 allot
> a 1 + ... \ <1> <a+$1> ok 1
> <a+$1> = . \ -1 ok

So <a+$1> is infix while Forth is postfix ... if it helps debugging, okay.

Re: Status display in QUIT ?

<2022Apr9.234339@mips.complang.tuwien.ac.at>

  copy mid

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

  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: Status display in QUIT ?
Date: Sat, 09 Apr 2022 21:43:39 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 24
Message-ID: <2022Apr9.234339@mips.complang.tuwien.ac.at>
References: <t2r1rb$ni3$1@gioia.aioe.org> <2022Apr9.135702@mips.complang.tuwien.ac.at> <325fecb4-8092-4f07-ab17-cc0b02abe3d9n@googlegroups.com> <2022Apr9.174244@mips.complang.tuwien.ac.at> <658440a4-d66c-47ed-92a7-bdb7b5f7faeen@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="289dee7f4237e7049a49e8b9e513c292";
logging-data="2501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195xmZQjkEY7ugyFl8rF9uO"
Cancel-Lock: sha1:u0amzcTVxMidthNSHDIcuDDBWcU=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sat, 9 Apr 2022 21:43 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
>Anton Ertl schrieb am Samstag, 9. April 2022 um 18:01:01 UTC+2:
>> create a 10 allot
>> a 1 + ... \ <1> <a+$1> ok 1
>> <a+$1> = . \ -1 ok
>
>So <a+$1> is infix while Forth is postfix ... if it helps debugging, okay.

Yes, we could also let "..." output "<a> 1 +" instead (or in this
case, even "a 1 +" would be ok, and it would simplify the
implementation of the body recognizer (the thing that recognizes <a>
and would then not recognize <a+$1>).

But OTOH <a+$1> is one space-delimited thing, which makes it easier to
identify as one stack item; I guess that's the advantage that resulted
in everybody from the Gforth team accept the <word+const> syntax. I
certainly did not think about it as an infix expresson.

- 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: Status display in QUIT ?

<t2tlf0$p6t$1@gioia.aioe.org>

  copy mid

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

  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: Status display in QUIT ?
Date: Sun, 10 Apr 2022 14:12:17 +1000
Organization: Aioe.org NNTP Server
Message-ID: <t2tlf0$p6t$1@gioia.aioe.org>
References: <t2r1rb$ni3$1@gioia.aioe.org>
<44c3f260-a413-49cf-b87d-994704d61239n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="25821"; 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.7.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Sun, 10 Apr 2022 04:12 UTC

On 9/04/2022 21:06, Marcel Hendrix wrote:
> On Saturday, April 9, 2022 at 6:25:20 AM UTC+2, dxforth wrote:
>> I recently began using a forth which did a .S (among other things) in QUIT.
>> I previously considered such too verbose but have to say it's grown on me
>> after intensive debugging involving spurious values on the stack. Some
>> forths simply display DEPTH if non-zero which is akin to this teaser:
>>
>> "I've just picked up a fault in the AE35 unit. It's going to go 100% failure
>> in 72 hours."
>>
>> No worries, Forth. I think I'll just ignore it :)
>>
>> Curious to know other forthers experiences/preferences?
>
> I think it's a question of taste.
>
> FORTH> : test begin 123 56 >S PI QUIT AGAIN ; ok
> FORTH> test
> [1]<1>{1}FORTH> . -s f. 123 3.141593 ok
>
> -marcel

It's beneficial to automatically see the results of operations at each step -
much the same way as a calculator or debugger does:

1 2 3 ok 1 2 3 <
+ ok 1 5 <
- ok -4 <
. -4 ok
pi ok 3.141593E0 <f
2e f* ok 6.283186E0 <f

If one makes an error then bad luck it all vanishes. IIRC 8th doesn't empty
the stack on error. The latter might be acceptable in regular forth provided
stack out-of-bounds continues to be monitored in the QUIT loop.

Re: Status display in QUIT ?

<af5a42b1-d41d-47af-af8c-16489aeec9e2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:2912:b0:680:9c3d:b806 with SMTP id m18-20020a05620a291200b006809c3db806mr18767502qkp.462.1649598299698;
Sun, 10 Apr 2022 06:44:59 -0700 (PDT)
X-Received: by 2002:a05:6214:2386:b0:443:d73d:7bb7 with SMTP id
fw6-20020a056214238600b00443d73d7bb7mr23246574qvb.37.1649598299611; Sun, 10
Apr 2022 06:44:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!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: Sun, 10 Apr 2022 06:44:59 -0700 (PDT)
In-Reply-To: <87lewe9kfh.fsf@nightsong.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:8d59:14b5:e745:597d;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:8d59:14b5:e745:597d
References: <t2r1rb$ni3$1@gioia.aioe.org> <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com> <87lewe9kfh.fsf@nightsong.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <af5a42b1-d41d-47af-af8c-16489aeec9e2n@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: sdwjac...@gmail.com (S Jack)
Injection-Date: Sun, 10 Apr 2022 13:44:59 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: S Jack - Sun, 10 Apr 2022 13:44 UTC

On Saturday, April 9, 2022 at 1:32:52 PM UTC-5, Paul Rubin wrote:
> In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
> usually alias it to "cs" when testing stuff.
That's fine. "cs" is a little more awkward than ".." but will do. For sure ".." is for at the terminal
operating and in test scripts. In programs I use "SP!!"; I don't do Cobol:
I-am-clearing-the-data-stack-now
very-good-there-were-no-errors
--
me

Re: Status display in QUIT ?

<t2v8f0$1h8t$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Status display in QUIT ?
Date: Mon, 11 Apr 2022 04:42:43 +1000
Organization: Aioe.org NNTP Server
Message-ID: <t2v8f0$1h8t$1@gioia.aioe.org>
References: <t2r1rb$ni3$1@gioia.aioe.org>
<8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com>
<87lewe9kfh.fsf@nightsong.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="50461"; 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.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Sun, 10 Apr 2022 18:42 UTC

On 10/04/2022 04:32, Paul Rubin wrote:
> S Jack <sdwjack69@gmail.com> writes:
>> In Fig days and before Linux it was common and convenient to hit dot
>> twice for an illegal command to clear the stack. That quickly evolved
>> to the word ".." that would clear the stack without an error message.
>
> In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
> usually alias it to "cs" when testing stuff.

ABORT clears the stack without an error msg. Error msg or not I'm puzzled
why another word is necessary. It's a rare app that needs it and trivial
enough to define when one does.

Re: Status display in QUIT ?

<3b1e37a1-89b9-47d2-ba62-24b91c0fd8afn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:444a:b0:67d:2087:c1cd with SMTP id w10-20020a05620a444a00b0067d2087c1cdmr19817976qkp.90.1649623585658;
Sun, 10 Apr 2022 13:46:25 -0700 (PDT)
X-Received: by 2002:a05:6214:29e4:b0:444:165c:e3dc with SMTP id
jv4-20020a05621429e400b00444165ce3dcmr14247246qvb.51.1649623585546; Sun, 10
Apr 2022 13:46:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!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: Sun, 10 Apr 2022 13:46:25 -0700 (PDT)
In-Reply-To: <t2v8f0$1h8t$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <t2r1rb$ni3$1@gioia.aioe.org> <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com> <87lewe9kfh.fsf@nightsong.com>
<t2v8f0$1h8t$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3b1e37a1-89b9-47d2-ba62-24b91c0fd8afn@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Sun, 10 Apr 2022 20:46:25 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: minf...@arcor.de - Sun, 10 Apr 2022 20:46 UTC

dxforth schrieb am Sonntag, 10. April 2022 um 20:42:43 UTC+2:
> On 10/04/2022 04:32, Paul Rubin wrote:
> > S Jack <sdwj...@gmail.com> writes:
> >> In Fig days and before Linux it was common and convenient to hit dot
> >> twice for an illegal command to clear the stack. That quickly evolved
> >> to the word ".." that would clear the stack without an error message.
> >
> > In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
> > usually alias it to "cs" when testing stuff.
> ABORT clears the stack without an error msg. Error msg or not I'm puzzled
> why another word is necessary. It's a rare app that needs it and trivial
> enough to define when one does.
"clearstack" is only a factor of ABORT.
They are not equivalent.

Re: Status display in QUIT ?

<t309ji$ch7$1@gioia.aioe.org>

  copy mid

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

  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: Status display in QUIT ?
Date: Mon, 11 Apr 2022 14:08:19 +1000
Organization: Aioe.org NNTP Server
Message-ID: <t309ji$ch7$1@gioia.aioe.org>
References: <t2r1rb$ni3$1@gioia.aioe.org>
<8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com>
<87lewe9kfh.fsf@nightsong.com> <t2v8f0$1h8t$1@gioia.aioe.org>
<3b1e37a1-89b9-47d2-ba62-24b91c0fd8afn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="12839"; 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.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Mon, 11 Apr 2022 04:08 UTC

On 11/04/2022 06:46, minf...@arcor.de wrote:
> dxforth schrieb am Sonntag, 10. April 2022 um 20:42:43 UTC+2:
>> On 10/04/2022 04:32, Paul Rubin wrote:
>> > S Jack <sdwj...@gmail.com> writes:
>> >> In Fig days and before Linux it was common and convenient to hit dot
>> >> twice for an illegal command to clear the stack. That quickly evolved
>> >> to the word ".." that would clear the stack without an error message.
>> >
>> > In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
>> > usually alias it to "cs" when testing stuff.
>> ABORT clears the stack without an error msg. Error msg or not I'm puzzled
>> why another word is necessary. It's a rare app that needs it and trivial
>> enough to define when one does.
>
> "clearstack" is only a factor of ABORT.
> They are not equivalent.

I've been unable to make a case for factoring 'clearstack' - other than
for systems where ABORT doesn't clear the stacks. One could point to
forth standards and say they've not seen fit to distinguish them either.

Re: Status display in QUIT ?

<2022Apr11.085033@mips.complang.tuwien.ac.at>

  copy mid

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

  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: Status display in QUIT ?
Date: Mon, 11 Apr 2022 06:50:33 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 20
Message-ID: <2022Apr11.085033@mips.complang.tuwien.ac.at>
References: <t2r1rb$ni3$1@gioia.aioe.org> <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com> <ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com> <87lewe9kfh.fsf@nightsong.com> <t2v8f0$1h8t$1@gioia.aioe.org> <3b1e37a1-89b9-47d2-ba62-24b91c0fd8afn@googlegroups.com> <t309ji$ch7$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="ce035ca74fd4b146be216bf8e6b1a182";
logging-data="3964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+c204Yw94Eg2zusiLoUrgj"
Cancel-Lock: sha1:trsFQcZ2FcUQZtEWfDV5jSHDK2o=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Mon, 11 Apr 2022 06:50 UTC

dxforth <dxforth@gmail.com> writes:
>I've been unable to make a case for factoring 'clearstack'

Checking this in Gforth:

CLEARSTACK (data stack) is only called from CLEARSTACKS (data and FP
stack) CLEARSTACKS is only called from QUIT. I have also looked at
uses of SP! and FP! to see whether there were additional factoring
opportunities, but there are not.

So it's more a conceptual thing: When I want to clear the stacks, I
write CLEARSTACKS. When I want to abort, I write ABORT (but I never
want to do that; instead, I throw).

- 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: Status display in QUIT ?

<f00961c5-a7e4-4ea0-b4d3-58f66c401eedn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:4104:b0:42c:1db0:da28 with SMTP id kc4-20020a056214410400b0042c1db0da28mr26016498qvb.67.1649661832791;
Mon, 11 Apr 2022 00:23:52 -0700 (PDT)
X-Received: by 2002:ac8:7ca2:0:b0:2eb:db4c:1b53 with SMTP id
z2-20020ac87ca2000000b002ebdb4c1b53mr14252552qtv.307.1649661832646; Mon, 11
Apr 2022 00:23:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 00:23:52 -0700 (PDT)
In-Reply-To: <t309ji$ch7$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <t2r1rb$ni3$1@gioia.aioe.org> <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com> <87lewe9kfh.fsf@nightsong.com>
<t2v8f0$1h8t$1@gioia.aioe.org> <3b1e37a1-89b9-47d2-ba62-24b91c0fd8afn@googlegroups.com>
<t309ji$ch7$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f00961c5-a7e4-4ea0-b4d3-58f66c401eedn@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 11 Apr 2022 07:23:52 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 23
 by: minf...@arcor.de - Mon, 11 Apr 2022 07:23 UTC

dxforth schrieb am Montag, 11. April 2022 um 06:08:21 UTC+2:
> On 11/04/2022 06:46, minf...@arcor.de wrote:
> > dxforth schrieb am Sonntag, 10. April 2022 um 20:42:43 UTC+2:
> >> On 10/04/2022 04:32, Paul Rubin wrote:
> >> > S Jack <sdwj...@gmail.com> writes:
> >> >> In Fig days and before Linux it was common and convenient to hit dot
> >> >> twice for an illegal command to clear the stack. That quickly evolved
> >> >> to the word ".." that would clear the stack without an error message.
> >> >
> >> > In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
> >> > usually alias it to "cs" when testing stuff.
> >> ABORT clears the stack without an error msg. Error msg or not I'm puzzled
> >> why another word is necessary. It's a rare app that needs it and trivial
> >> enough to define when one does.
> >
> > "clearstack" is only a factor of ABORT.
> > They are not equivalent.
> I've been unable to make a case for factoring 'clearstack' - other than
> for systems where ABORT doesn't clear the stacks. One could point to
> forth standards and say they've not seen fit to distinguish them either.

QUIT empties only the return stack.

ABORT empties the data stack(s) and performs QUIT.

Re: Status display in QUIT ?

<t30ll3$gob$1@gioia.aioe.org>

  copy mid

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

  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: Status display in QUIT ?
Date: Mon, 11 Apr 2022 17:33:57 +1000
Organization: Aioe.org NNTP Server
Message-ID: <t30ll3$gob$1@gioia.aioe.org>
References: <t2r1rb$ni3$1@gioia.aioe.org>
<8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com>
<87lewe9kfh.fsf@nightsong.com> <t2v8f0$1h8t$1@gioia.aioe.org>
<3b1e37a1-89b9-47d2-ba62-24b91c0fd8afn@googlegroups.com>
<t309ji$ch7$1@gioia.aioe.org> <2022Apr11.085033@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="17163"; 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.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Mon, 11 Apr 2022 07:33 UTC

On 11/04/2022 16:50, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
>>I've been unable to make a case for factoring 'clearstack'
>
> Checking this in Gforth:
>
> CLEARSTACK (data stack) is only called from CLEARSTACKS (data and FP
> stack) CLEARSTACKS is only called from QUIT. I have also looked at
> uses of SP! and FP! to see whether there were additional factoring
> opportunities, but there are not.
>
> So it's more a conceptual thing: When I want to clear the stacks, I
> write CLEARSTACKS. When I want to abort, I write ABORT (but I never
> want to do that; instead, I throw).

That begs the question of when ABORT wouldn't do. It's less typing.
Besides there's nothing more joyous than typing 'xx' and getting a
reaction from the system - at least I know it's still thinking :)

Re: Status display in QUIT ?

<nnd$601e1e18$11089eb6@d016a980fed92757>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <t2r1rb$ni3$1@gioia.aioe.org>
Subject: Re: Status display in QUIT ?
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$601e1e18$11089eb6@d016a980fed92757>
Organization: KPN B.V.
Date: Mon, 11 Apr 2022 12:11:36 +0200
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abe006.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 34
Injection-Date: Mon, 11 Apr 2022 12:11:36 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1830
 by: none - Mon, 11 Apr 2022 10:11 UTC

In article <t2r1rb$ni3$1@gioia.aioe.org>, dxforth <dxforth@gmail.com> wrote:
>I recently began using a forth which did a .S (among other things) in QUIT.
>I previously considered such too verbose but have to say it's grown on me
>after intensive debugging involving spurious values on the stack. Some
>forths simply display DEPTH if non-zero which is akin to this teaser:
>
> "I've just picked up a fault in the AE35 unit. It's going to go 100% failure
> in 72 hours."
>
>No worries, Forth. I think I'll just ignore it :)
>
>Curious to know other forthers experiences/preferences?

ciforth (lina wina) is nice and clean and don't bother you with
clutter besides OK.

Unless you want to. Issue
WANT DO-DEBUG
and the stack is printed each time before OK.

(Indirect Threaded Forths allow you to revector everything,
including OK).

Nowaday I could use a decorator:
WANT decorated
' .S 'OK decorated

Groetjes Albert
--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: Status display in QUIT ?

<1f75b84a-65e6-4b8c-8f2b-851c5419efc4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:7299:0:b0:2ef:828e:3084 with SMTP id v25-20020ac87299000000b002ef828e3084mr472210qto.265.1649671899674;
Mon, 11 Apr 2022 03:11:39 -0700 (PDT)
X-Received: by 2002:a05:622a:4c:b0:2eb:8c6d:59dc with SMTP id
y12-20020a05622a004c00b002eb8c6d59dcmr24580416qtw.210.1649671899530; Mon, 11
Apr 2022 03:11:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 03:11:39 -0700 (PDT)
In-Reply-To: <t2tlf0$p6t$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=176.74.235.101; posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 176.74.235.101
References: <t2r1rb$ni3$1@gioia.aioe.org> <44c3f260-a413-49cf-b87d-994704d61239n@googlegroups.com>
<t2tlf0$p6t$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1f75b84a-65e6-4b8c-8f2b-851c5419efc4n@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: mhx...@iae.nl (Marcel Hendrix)
Injection-Date: Mon, 11 Apr 2022 10:11:39 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 33
 by: Marcel Hendrix - Mon, 11 Apr 2022 10:11 UTC

On Sunday, April 10, 2022 at 6:12:21 AM UTC+2, dxforth wrote:
> On 9/04/2022 21:06, Marcel Hendrix wrote:
> > On Saturday, April 9, 2022 at 6:25:20 AM UTC+2, dxforth wrote:
[..]
> It's beneficial to automatically see the results of operations at each step -
> much the same way as a calculator or debugger does:

FORTH> : ok .S ; ok
FORTH> 1 2 3 ok
Data: 1 2 3 ---
System: ---
Float: --- ok
[3]FORTH> + ok
Data: 1 5 ---
System: ---
Float: --- ok
[2]FORTH> - ok
Data: -4 ---
System: ---
Float: --- ok
[1]FORTH> . -4 ok
FORTH> pi ok
Data: ---
System: ---
Float: 3.1415926535897932385 --- ok
{1}FORTH> 2e f* ok
Data: ---
System: ---
Float: 6.2831853071795864770 --- ok
{1}FORTH> f. 6.283185 ok

Like this?

-marcel

Re: Status display in QUIT ?

<nnd$58c6cedd$0c5b6abf@d016a980fed92757>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <t2r1rb$ni3$1@gioia.aioe.org> <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com> <ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com> <87lewe9kfh.fsf@nightsong.com>
Subject: Re: Status display in QUIT ?
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$58c6cedd$0c5b6abf@d016a980fed92757>
Organization: KPN B.V.
Date: Mon, 11 Apr 2022 12:15:47 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 21
Injection-Date: Mon, 11 Apr 2022 12:15:47 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1701
 by: none - Mon, 11 Apr 2022 10:15 UTC

In article <87lewe9kfh.fsf@nightsong.com>,
Paul Rubin <no.email@nospam.invalid> wrote:
>S Jack <sdwjack69@gmail.com> writes:
>> In Fig days and before Linux it was common and convenient to hit dot
>> twice for an illegal command to clear the stack. That quickly evolved
>> to the word ".." that would clear the stack without an error message.
>
>In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
>usually alias it to "cs" when testing stuff.

cs is a little bit to terse.
I would like to see CLS make into the standard.
Every Forth is defining a new word with this functionality.
I ought to be in the standard.
Groetjes Albert
--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: Status display in QUIT ?

<nnd$16e1f62b$289f2d5e@609cdbb89bf64331>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <t2r1rb$ni3$1@gioia.aioe.org> <ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com> <87lewe9kfh.fsf@nightsong.com> <t2v8f0$1h8t$1@gioia.aioe.org>
Subject: Re: Status display in QUIT ?
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$16e1f62b$289f2d5e@609cdbb89bf64331>
Organization: KPN B.V.
Date: Mon, 11 Apr 2022 12:26:28 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abe006.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 28
Injection-Date: Mon, 11 Apr 2022 12:26:28 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2029
 by: none - Mon, 11 Apr 2022 10:26 UTC

In article <t2v8f0$1h8t$1@gioia.aioe.org>, dxforth <dxforth@gmail.com> wrote:
>On 10/04/2022 04:32, Paul Rubin wrote:
>> S Jack <sdwjack69@gmail.com> writes:
>>> In Fig days and before Linux it was common and convenient to hit dot
>>> twice for an illegal command to clear the stack. That quickly evolved
>>> to the word ".." that would clear the stack without an error message.
>>
>> In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
>> usually alias it to "cs" when testing stuff.
>
>ABORT clears the stack without an error msg. Error msg or not I'm puzzled
>why another word is necessary. It's a rare app that needs it and trivial
>enough to define when one does.

You must be kidding. Teach a Forth novice to clear the stack by invoking
a scary word like ABORT ? . Better declare ABORT obsolescent because
it lacks clear intent, and the suggestion that it may be equivalent
to a throw makes my head spin.
Also ABORT doesn't work in a definition to clear the stack.

Groetjes Albert

--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: Status display in QUIT ?

<nnd$0f43ed01$276f8f7d@609cdbb89bf64331>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Status display in QUIT ?
References: <t2r1rb$ni3$1@gioia.aioe.org> <3b1e37a1-89b9-47d2-ba62-24b91c0fd8afn@googlegroups.com> <t309ji$ch7$1@gioia.aioe.org> <2022Apr11.085033@mips.complang.tuwien.ac.at>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$0f43ed01$276f8f7d@609cdbb89bf64331>
Organization: KPN B.V.
Date: Mon, 11 Apr 2022 12:30:20 +0200
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 30
Injection-Date: Mon, 11 Apr 2022 12:30:20 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1841
 by: none - Mon, 11 Apr 2022 10:30 UTC

In article <2022Apr11.085033@mips.complang.tuwien.ac.at>,
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>dxforth <dxforth@gmail.com> writes:
>>I've been unable to make a case for factoring 'clearstack'
>
>Checking this in Gforth:
>
>CLEARSTACK (data stack) is only called from CLEARSTACKS (data and FP
>stack) CLEARSTACKS is only called from QUIT. I have also looked at
>uses of SP! and FP! to see whether there were additional factoring
>opportunities, but there are not.
>
>So it's more a conceptual thing: When I want to clear the stacks, I
>write CLEARSTACKS. When I want to abort, I write ABORT (but I never
>want to do that; instead, I throw).

Also it is useful to revector CLS ( CLEARSTACKS ) to a NOOP.
I don't like it that if I make a mistake the bodies are cremated
in a blink.

>
>- anton

--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: Status display in QUIT ?

<f1a1fc19-488e-4d0f-b206-884a44ee696an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:82c7:0:b0:69c:1612:53f9 with SMTP id e190-20020a3782c7000000b0069c161253f9mr3135799qkd.408.1649673050292;
Mon, 11 Apr 2022 03:30:50 -0700 (PDT)
X-Received: by 2002:a05:6214:c65:b0:441:2bcb:5137 with SMTP id
t5-20020a0562140c6500b004412bcb5137mr26473644qvj.38.1649673050092; Mon, 11
Apr 2022 03:30:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 03:30:49 -0700 (PDT)
In-Reply-To: <nnd$58c6cedd$0c5b6abf@d016a980fed92757>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <t2r1rb$ni3$1@gioia.aioe.org> <8f2ae0ab-105e-4b9d-b8cc-33f9d9325207n@googlegroups.com>
<ff85dc4c-c7eb-4375-9367-073ab5500f1bn@googlegroups.com> <87lewe9kfh.fsf@nightsong.com>
<nnd$58c6cedd$0c5b6abf@d016a980fed92757>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f1a1fc19-488e-4d0f-b206-884a44ee696an@googlegroups.com>
Subject: Re: Status display in QUIT ?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 11 Apr 2022 10:30:50 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: minf...@arcor.de - Mon, 11 Apr 2022 10:30 UTC

none albert schrieb am Montag, 11. April 2022 um 12:15:50 UTC+2:
> In article <87lewe9...@nightsong.com>,
> Paul Rubin <no.e...@nospam.invalid> wrote:
> >S Jack <sdwj...@gmail.com> writes:
> >> In Fig days and before Linux it was common and convenient to hit dot
> >> twice for an illegal command to clear the stack. That quickly evolved
> >> to the word ".." that would clear the stack without an error message.
> >
> >In gforth (and maybe it is in ANS) "clearstack" clears the stack, and I
> >usually alias it to "cs" when testing stuff.
> cs is a little bit to terse.
> I would like to see CLS make into the standard.
> Every Forth is defining a new word with this functionality.
> I ought to be in the standard.

For my taste CLS is too close to that old CLearScreen.

I use .. quite often and like it because it is just a quick double-tap
on the keyboard adjacent to the space bar.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor