Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Elliptic paraboloids for sale.


devel / comp.lang.forth / Re: Better WORDS, please!

SubjectAuthor
* Better WORDS, please!LIT
+* Re: Better WORDS, please!JKN
|+- Re: Better WORDS, please!LIT
|`* Re: Better WORDS, please!David N. Williams
| `* Re: Better WORDS, please!Anton Ertl
|  `- Re: Better WORDS, please!David N. Williams
+* Re: Better WORDS, please!dxf
|`* Re: Better WORDS, please!LIT
| `* Re: Better WORDS, please!dxf
|  `* Re: Better WORDS, please!LIT
|   +- Re: Better WORDS, please!dxf
|   `- Re: Better WORDS, please!mhx
+* Re: Better WORDS, please!none
|`* Re: Better WORDS, please!LIT
| +- Re: Better WORDS, please!none
| `- Re: Better WORDS, please!sjack
`* Re: Better WORDS, please!Anton Ertl
 `* Re: Better WORDS, please!dxf
  +* Re: Better WORDS, please!Anton Ertl
  |+- Re: Better WORDS, please!LIT
  |`- Re: Better WORDS, please!dxf
  `- Re: Better WORDS, please!LIT

1
Better WORDS, please!

<980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Better WORDS, please!
Date: Sat, 23 Dec 2023 18:25:24 +0000
Organization: novaBBS
Message-ID: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="923610"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 63063318607af797e83f549ce5239cf03fdbe117
X-Rslight-Site: $2y$10$HMFMEnjTpsB7KzA3WgJq1.ryT/DuSVj2JbhFoeGkwEJwP3tEVIp/y
 by: LIT - Sat, 23 Dec 2023 18:25 UTC

I actually don't understand, why no Forth creator inserts
into his design WORDS, that allow to examine what's actually
„inside”. Perhaps the worst example is FPC Forth — 1500 words
making just „zooooooooooom!” throught the screen, like a thunder,
when one types WORDS.

It doesn't seem to be that difficult to create „paged” WORDS; here's
my simple take (it's fig-Forth):

: WORDS ( -- )
0 OUT C! 22 OUT 1+ C! CR
CONTEXT @ @
BEGIN
DUP ID. SPACE PFA LFA @ DUP 0=
OUT C@ C/L >
IF CR 0 OUT C! OUT 1+ DUP C@ 1- SWAP C! THEN
OUT 1+ C@ 0= DUP
IF DROP 22 OUT 1+ C! ." >>> ENTER to continue -- any other key to end <<<"
CR KEY 13 = 0= 0 OUT C! THEN ( OUT-lo "reset" because of the message )
OR
UNTIL DROP ;

(yes, a few „magic numbers”, but no big deal; 22 is the lines' count)
--
Z.

Re: Better WORDS, please!

<9d366bdd-5dba-40c3-98ca-af533bfe0b63n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:15c5:b0:41c:2d56:bbf5 with SMTP id d5-20020a05622a15c500b0041c2d56bbf5mr105025qty.11.1703361089734;
Sat, 23 Dec 2023 11:51:29 -0800 (PST)
X-Received: by 2002:ac8:7d10:0:b0:423:de53:2681 with SMTP id
g16-20020ac87d10000000b00423de532681mr229102qtb.6.1703361089391; Sat, 23 Dec
2023 11:51:29 -0800 (PST)
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: Sat, 23 Dec 2023 11:51:29 -0800 (PST)
In-Reply-To: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.92.96.37; posting-account=xy4V0QkAAAAoGgkMsSsv6bfFPHkQXvOY
NNTP-Posting-Host: 84.92.96.37
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9d366bdd-5dba-40c3-98ca-af533bfe0b63n@googlegroups.com>
Subject: Re: Better WORDS, please!
From: jkn_gg@nicorp.f9.co.uk (JKN)
Injection-Date: Sat, 23 Dec 2023 19:51:29 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2624
 by: JKN - Sat, 23 Dec 2023 19:51 UTC

On Saturday, December 23, 2023 at 6:26:04 PM UTC, LIT wrote:
> I actually don't understand, why no Forth creator inserts
> into his design WORDS, that allow to examine what's actually
> „inside”. Perhaps the worst example is FPC Forth — 1500 words
> making just „zooooooooooom!” throught the screen, like a thunder,
> when one types WORDS.
>
> It doesn't seem to be that difficult to create „paged” WORDS; here's
> my simple take (it's fig-Forth):
>
> : WORDS ( -- )
> 0 OUT C! 22 OUT 1+ C! CR
> CONTEXT @ @
> BEGIN
> DUP ID. SPACE PFA LFA @ DUP 0=
> OUT C@ C/L >
> IF CR 0 OUT C! OUT 1+ DUP C@ 1- SWAP C! THEN
> OUT 1+ C@ 0= DUP
> IF DROP 22 OUT 1+ C! ." >>> ENTER to continue -- any other key to end <<<"
> CR KEY 13 = 0= 0 OUT C! THEN ( OUT-lo "reset" because of the message )
> OR
> UNTIL DROP ;
>
> (yes, a few „magic numbers”, but no big deal; 22 is the lines' count)
> --
> Z.

possibly because a better way to do it would be to decouple the source of
the character stream (ie WORDS), and the paging mechanism, so that the
latter could be used for any input stream. In a similar way to how in Unix/Linux
you can 'pipe' a stream to 'more' to get paged output.

(I would hope that at least some Forths work like this, but I confess I have
no idea if this is true)

Re: Better WORDS, please!

<26e23a287471610516eb28620c99b445@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sat, 23 Dec 2023 20:07:12 +0000
Organization: novaBBS
Message-ID: <26e23a287471610516eb28620c99b445@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <9d366bdd-5dba-40c3-98ca-af533bfe0b63n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="932944"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$W4rZWdj9mlZySWXHaF/xhObU40EkaguYcPbAJfspEL.FvEnFnJvQ.
X-Rslight-Posting-User: 63063318607af797e83f549ce5239cf03fdbe117
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: LIT - Sat, 23 Dec 2023 20:07 UTC

> possibly because a better way to do it would be to decouple the source of
> the character stream (ie WORDS), and the paging mechanism, so that the
> latter could be used for any input stream. In a similar way to how in Unix/Linux
> you can 'pipe' a stream to 'more' to get paged output.

I'm not opposed; if not the proposed way, then „by decoupling”,
just it should be done — one way, or another
--
Z.

Re: Better WORDS, please!

<um7tka$28im6$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 11:22:35 +1100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <um7tka$28im6$1@dont-email.me>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Dec 2023 00:22:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1e4e803fc43d532f7912fadd8698f74b";
logging-data="2378438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IRGAqsV4cpdrfnQQVvNk6"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:83T8pjwGRS2jr/aktL+kLRJiz+k=
Content-Language: en-GB
In-Reply-To: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
 by: dxf - Sun, 24 Dec 2023 00:22 UTC

On 24/12/2023 5:25 am, LIT wrote:
> I actually don't understand, why no Forth creator inserts
> into his design WORDS, that allow to examine what's actually
> „inside”. Perhaps the worst example is FPC Forth — 1500 words
> making just „zooooooooooom!” throught the screen, like a thunder,
> when one types WORDS.
>
> It doesn't seem to be that difficult to create „paged” WORDS; here's
> my simple take (it's fig-Forth):

Paged mode with msg can be less convenient if one wants to do whole
dumps e.g. for documentation.

p.s. F-PC had no delay/calibration for stuff like WORDS ?

Re: Better WORDS, please!

<957eac3002a7e9c53f706e58859cfbdd@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 07:51:44 +0000
Organization: novaBBS
Message-ID: <957eac3002a7e9c53f706e58859cfbdd@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <um7tka$28im6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="981613"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$A8w2mzdQ5MaSaPMvlV.wq.IXOtoFw7IROPTCjpWlgVj99rKnnOtpW
X-Rslight-Posting-User: 63063318607af797e83f549ce5239cf03fdbe117
 by: LIT - Sun, 24 Dec 2023 07:51 UTC

> Paged mode with msg can be less convenient if one wants to do whole
> dumps e.g. for documentation.

But I mean strictly WORDS, which (I believe) is hardly
ever used for that, and its purpose is rather to allow
„quick view”, interactive way, into „what do we offer”.

> p.s. F-PC had no delay/calibration for stuff like WORDS ?

I didn't actually use FPC that extensively — maybe indeed
I missed something? Even, if it has something like that to
adjust, still its defaults (regarding WORDS) could be more
sane
--
Z.

Re: Better WORDS, please!

<um8q1u$2gf8v$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 19:27:43 +1100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <um8q1u$2gf8v$1@dont-email.me>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
<um7tka$28im6$1@dont-email.me>
<957eac3002a7e9c53f706e58859cfbdd@news.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Dec 2023 08:27:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1e4e803fc43d532f7912fadd8698f74b";
logging-data="2637087"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dkqkQeSoXIosIjfMgEC9J"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UKUuPdf7axfMBSnM86CGWV7rSqU=
In-Reply-To: <957eac3002a7e9c53f706e58859cfbdd@news.novabbs.com>
Content-Language: en-GB
 by: dxf - Sun, 24 Dec 2023 08:27 UTC

On 24/12/2023 6:51 pm, LIT wrote:
>> Paged mode with msg can be less convenient if one wants to do whole
>> dumps e.g. for documentation.
>
> But I mean strictly WORDS, which (I believe) is hardly
> ever used for that, and its purpose is rather to allow
> „quick view”, interactive way, into „what do we offer”.

That too. Every new forth I tried I would dump its words to keep
as a sorted quick reference.

>
>> p.s. F-PC had no delay/calibration for stuff like WORDS ?
>
> I didn't actually use FPC that extensively — maybe indeed
> I missed something? Even, if it has something like that to
> adjust, still its defaults (regarding WORDS) could be more
> sane

Had a quick look and could only find FUDGE which calibrated MS.
Has no effect on WORDS AFAICS. Strange to have MS and not use
it in WORDS.

Re: Better WORDS, please!

<952ac206cb651ebf9ded433b511decd5@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 08:42:03 +0000
Organization: novaBBS
Message-ID: <952ac206cb651ebf9ded433b511decd5@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <um7tka$28im6$1@dont-email.me> <957eac3002a7e9c53f706e58859cfbdd@news.novabbs.com> <um8q1u$2gf8v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="984815"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 63063318607af797e83f549ce5239cf03fdbe117
X-Rslight-Site: $2y$10$190P7/7qZTccZpgPv3HRv.3DR7C4PKvrR6s826khAnCUWP9wAsoUq
 by: LIT - Sun, 24 Dec 2023 08:42 UTC

> That too. Every new forth I tried I would dump its words to keep
> as a sorted quick reference.

But actually paged WORDS will make it easier — one page,
screen-dump, the second page, screen-dump etc.

I mean DOS' environment, of course
--
Z.

Re: Better WORDS, please!

<um8ubr$2gtba$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 20:41:15 +1100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <um8ubr$2gtba$1@dont-email.me>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
<um7tka$28im6$1@dont-email.me>
<957eac3002a7e9c53f706e58859cfbdd@news.novabbs.com>
<um8q1u$2gf8v$1@dont-email.me>
<952ac206cb651ebf9ded433b511decd5@news.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Dec 2023 09:41:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1e4e803fc43d532f7912fadd8698f74b";
logging-data="2651498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+z+eRZ9aF6R7uony1zFuuV"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kWCJYJ2vfv0CQeLayWcKISw/nRI=
In-Reply-To: <952ac206cb651ebf9ded433b511decd5@news.novabbs.com>
Content-Language: en-GB
 by: dxf - Sun, 24 Dec 2023 09:41 UTC

On 24/12/2023 7:42 pm, LIT wrote:
>> That too.  Every new forth I tried I would dump its words to keep
>> as a sorted quick reference.
>
> But actually paged WORDS will make it easier — one page,
> screen-dump, the second page, screen-dump etc.
>
> I mean DOS' environment, of course

Don't know about easier. If one has 'MS' it's cheaper to use that
than to implement paging.

Re: Better WORDS, please!

<9944cdc1c2225ea69e7454babc2eed44@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: mhx@iae.nl (mhx)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 09:38:22 +0000
Organization: novaBBS
Message-ID: <9944cdc1c2225ea69e7454babc2eed44@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <um7tka$28im6$1@dont-email.me> <957eac3002a7e9c53f706e58859cfbdd@news.novabbs.com> <um8q1u$2gf8v$1@dont-email.me> <952ac206cb651ebf9ded433b511decd5@news.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="988547"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 463cbf1a76c808942982a163321348c75477c065
X-Rslight-Site: $2y$10$0MmXTD74h5y.4mGXz0PuiefZilKsd74QQP4D6tK79NNakXeNI8k5.
 by: mhx - Sun, 24 Dec 2023 09:38 UTC

LIT wrote:

>> That too. Every new forth I tried I would dump its words to keep
>> as a sorted quick reference.

The limited usefulness of WORDS has always irritated me, too.
In the old days, the teletype or VDU's baudrate slowed it down to
readable speed.

iForth uses a console window to interact with the user, and this console
can be configured to have any size scrollback buffer. Mark, search, and
moused copy-and-paste (to the line editor) all work on modern consoles.

Then there is WORDS-DELAY :
FORTH> help words-delay
WORDS-DELAY IFORTH
( -- a-addr )
Contains the number of milliseconds to wait per line of output in
WORDS WORDS: and WORDS?
See also: WORDS WORDS: and WORDS?

'WORDS: abc' shows only those words containing substring abc, WORDS?
allows a grep-like pattern like *ape or a?pe.

Old CLF discussions resulted in doWORDS

FORTH> help doWORDS
doWORDS IFORTH
( xt -- count-of-matched-entries )
The wordlist traversing factor of WORDS WORDS: and WORDS?
Supply the xt of a word that can filter ( addr -- bool ) where
addr is the address of a counted string (name of the next word
in the list). For example, to realize a clone of WORDS that only
prints short words you can do:
: SWORDS-XT ( addr -- bool ) C@ 3 < ; ' SWORDS-XT doWORDS DROP .

Further manipulation is possible with HELP <word>, LOCATE <word>, e.g.
FORTH> locate +
File: d:dfwforth/x64/inc/kernel.inc
1834: T: NEGATE NEGATE T; ANS <w> --- <-w>
1835: T: BSWAP BSWAP T; <w1> --- <w2>
1836: T: - - T; ANS <u> <u> --- <u>
1837>> T: + + T; ANS <u> <u> --- <u>
1838: T: CELL+ CELL+ T; ANS <addr> --- <addr+>
1839: T: CELL- CELL- T; <addr-> --- <addr->
1840: T: CELLS CELLS T; ANS <n> --- <n*> ok

-marcel

Re: Better WORDS, please!

<nnd$210b1bb8$3a94f16b@766a8ad657c7b144>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
Subject: Re: Better WORDS, please!
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$210b1bb8$3a94f16b@766a8ad657c7b144>
Organization: KPN B.V.
Date: Sun, 24 Dec 2023 11:04:39 +0100
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.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: 59
Injection-Date: Sun, 24 Dec 2023 11:04:39 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2771
 by: none - Sun, 24 Dec 2023 10:04 UTC

In article <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>,
LIT <zbigniew2011@gmail.com> wrote:
>I actually don't understand, why no Forth creator inserts
>into his design WORDS, that allow to examine what's actually
>„inside”. Perhaps the worst example is FPC Forth — 1500 words
>making just „zooooooooooom!” throught the screen, like a thunder,
>when one types WORDS.

No it isn't. It is supposed to run on a PC that is so slow that
you have plenty of time to hit the space button before the first
screen ;-)

>
>It doesn't seem to be that difficult to create „paged” WORDS; here's
>my simple take (it's fig-Forth):
>
>: WORDS ( -- )
> 0 OUT C! 22 OUT 1+ C! CR
> CONTEXT @ @
> BEGIN
> DUP ID. SPACE PFA LFA @ DUP 0=
> OUT C@ C/L >
> IF CR 0 OUT C! OUT 1+ DUP C@ 1- SWAP C! THEN
> OUT 1+ C@ 0= DUP
> IF DROP 22 OUT 1+ C! ." >>> ENTER to continue -- any other key to end <<<"
> CR KEY 13 = 0= 0 OUT C! THEN ( OUT-lo "reset" because of the message )
> OR
> UNTIL DROP ;
>
>(yes, a few „magic numbers”, but no big deal; 22 is the lines' count)

Nevertheless valuable. I just tried out fpc and was pleasantly surprised
of its interactive quality and its build in documentation.

WORDS should display the words in recent last order such as in ciforth.
You are interested in the words you defined yourself.

It is trivial, leave a sentinel 0 on the stack
: WORDS
0 'NOOP CONTEXT @ FOR-WORDS \ Leave the addresses of all the words
BEGIN DUP WHILE ID. REPEAT DROP \ Now print the id giving its address.
;

I can't believe that nobody has copied this.
Note that it is less code than your solution, and in a system you
can subtract the original code that WORDS occupied for a total
expense of half a dozen WOC and no extra headers.

>--
>Z.

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: Better WORDS, please!

<2232c750331a17c5160fa56c6bc99f2a@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 10:46:09 +0000
Organization: novaBBS
Message-ID: <2232c750331a17c5160fa56c6bc99f2a@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <nnd$210b1bb8$3a94f16b@766a8ad657c7b144>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="993384"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$1x9YDCTES6Vla5TO0hTL5.pcVyvtKO31hmOjJiSvKofBZ93YCkwxy
X-Rslight-Posting-User: 63063318607af797e83f549ce5239cf03fdbe117
 by: LIT - Sun, 24 Dec 2023 10:46 UTC

> WORDS should display the words in recent last order such as in ciforth.
> You are interested in the words you defined yourself.

This has a rationale behind it exactly when WORDS isn't paged. When
it's paged you'll find your just-defined words on the very beginning,
and not running away at light speed.

> It is trivial, leave a sentinel 0 on the stack
> : WORDS
> 0 'NOOP CONTEXT @ FOR-WORDS Leave the addresses of all the words
> BEGIN DUP WHILE ID. REPEAT DROP Now print the id giving its address.
> ;

> I can't believe that nobody has copied this.
> Note that it is less code than your solution, and in a system you
> can subtract the original code that WORDS occupied for a total
> expense of half a dozen WOC and no extra headers.

It's still not paged, unfortunately. What if I want to browse
the „initial” words? In Linux' environment I can use scrollback
buffer (but not always! Kudos to Mark Manning for implementing
his WORDS as „paged”) fortunately — but in MS-DOS (or similar)
there's a problem. The simple solution is: just to split WORDS'
output into separate pages. In such situation the „old” usual
list order is even better: you'll find your words immediately,
without a need to get to the last screen
--
Z.

Re: Better WORDS, please!

<nnd$0a659b90$5b366311@6b4b0b8fa90f504e>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <nnd$210b1bb8$3a94f16b@766a8ad657c7b144> <2232c750331a17c5160fa56c6bc99f2a@news.novabbs.com>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$0a659b90$5b366311@6b4b0b8fa90f504e>
Organization: KPN B.V.
Date: Sun, 24 Dec 2023 12:52:23 +0100
Path: i2pn2.org!rocksolid2!news.neodome.net!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 25
Injection-Date: Sun, 24 Dec 2023 12:52:23 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1876
 by: none - Sun, 24 Dec 2023 11:52 UTC

In article <2232c750331a17c5160fa56c6bc99f2a@news.novabbs.com>,
<SNIP>
>It's still not paged, unfortunately. What if I want to browse
>the „initial” words? In Linux' environment I can use scrollback
>buffer (but not always! Kudos to Mark Manning for implementing
>his WORDS as „paged”) fortunately — but in MS-DOS (or similar)
>there's a problem. The simple solution is: just to split WORDS'
>output into separate pages. In such situation the „old” usual
>list order is even better: you'll find your words immediately,
>without a need to get to the last screen

Of corse you have a separate window with the Forth words ordered
by initial letter, as well as ordered by wordset in html where
you can click on ALSO's if something is not clear.

>--
>Z.

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: Better WORDS, please!

<um9e0b$2jecr$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: williams@umich.edu (David N. Williams)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 09:08:09 -0500
Organization: University of Michigan
Lines: 48
Message-ID: <um9e0b$2jecr$1@dont-email.me>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
<9d366bdd-5dba-40c3-98ca-af533bfe0b63n@googlegroups.com>
Reply-To: williams@umich.edu
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 14:08:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4202b9baa814a1106a526076998f9c53";
logging-data="2734491"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+5P65dEroCSzI/jOgF6kN"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Mh81zYsYaVW5Jl+BO3e9AvcDrZ0=
In-Reply-To: <9d366bdd-5dba-40c3-98ca-af533bfe0b63n@googlegroups.com>
Content-Language: en-US
 by: David N. Williams - Sun, 24 Dec 2023 14:08 UTC

On 12/23/23 2:51 PM, JKN wrote:
> [...]
>
> possibly because a better way to do it would be to decouple the source
> of the character stream (ie WORDS), and the paging mechanism, so that
> the latter could be used for any input stream. In a similar way to how
> in Unix/Linux you can 'pipe' a stream to 'more' to get paged output.
>
> (I would hope that at least some Forths work like this, but I confess
> I have no idea if this is true)

\ Portable Forth Environment 0.33.73w (Aug 21 2021 09:34:46)
Copyright (C) Dirk Uwe Zoller 1993 - 1995.
Copyright (C) Tektronix, Inc. 1998 - 2003.
Copyright (C) Guido U. Draheim 2005 - 2008.
ANS/ffa ITC Forth - Please enter LICENSE and WARRANTY.
Running on x86_64 darwin20.6.0 - to quit say BYE. ok
words
C K-SHIFT-MASK p EKEY>FKEY C K-SHIFT-F10
C K-SHIFT-F9 C K-SHIFT-F8 C K-SHIFT-F7
C K-SHIFT-F6 C K-SHIFT-F5 C K-SHIFT-F4
C K-SHIFT-F3 C K-SHIFT-F2 C K-SHIFT-F1
....
p EXITCODE p ARGV p ARGC
p APPLICATION p EDIT-BLOCKFILE p HELP
p STANDARD-I/O p (TYPE) p (KEY)
p (EXPECT) p (EMIT) p *TYPE*
p *KEY* p *EXPECT* p *EMIT*
more?

Pressing return gets you another line, and the space bar gets you
another page. I don't remember the significance of the C and p
prefixes, which is also not explained by

help words
/usr/local/include/pfe/tools-ext.h:
/** WORDS ( -- )
* uses CONTEXT and lists the words defined in that vocabulary.
* usually the vocabulary to list is named directly in before.
example:
FORTH WORDS or LOADED WORDS
*/
ok

At least the second line hints at which source file to look in to find
that out, namely, tools-ext.c.

-- David W.

Re: Better WORDS, please!

<2023Dec24.162336@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Better WORDS, please!
Date: Sun, 24 Dec 2023 15:23:36 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 33
Message-ID: <2023Dec24.162336@mips.complang.tuwien.ac.at>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <9d366bdd-5dba-40c3-98ca-af533bfe0b63n@googlegroups.com> <um9e0b$2jecr$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="be8de2f947e67be86163dec153fff520";
logging-data="2737603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D7nck9kauYoo1mWo2f++X"
Cancel-Lock: sha1:HGyV5cQnmh+RGoPhd63X6cf+H08=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sun, 24 Dec 2023 15:23 UTC

"David N. Williams" <williams@umich.edu> writes:
>\ Portable Forth Environment 0.33.73w (Aug 21 2021 09:34:46)
>Copyright (C) Dirk Uwe Zoller 1993 - 1995.
>Copyright (C) Tektronix, Inc. 1998 - 2003.
>Copyright (C) Guido U. Draheim 2005 - 2008.
>ANS/ffa ITC Forth - Please enter LICENSE and WARRANTY.
>Running on x86_64 darwin20.6.0 - to quit say BYE. ok
>words
>C K-SHIFT-MASK p EKEY>FKEY C K-SHIFT-F10
>C K-SHIFT-F9 C K-SHIFT-F8 C K-SHIFT-F7
>C K-SHIFT-F6 C K-SHIFT-F5 C K-SHIFT-F4
>C K-SHIFT-F3 C K-SHIFT-F2 C K-SHIFT-F1
>...
>p EXITCODE p ARGV p ARGC
>p APPLICATION p EDIT-BLOCKFILE p HELP
>p STANDARD-I/O p (TYPE) p (KEY)
>p (EXPECT) p (EMIT) p *TYPE*
>p *KEY* p *EXPECT* p *EMIT*
....
>I don't remember the significance of the C and p
>prefixes

Looking at these words, my guess is:

C: constant
p: primitive

- 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: Better WORDS, please!

<3656e98dbeea35d3a92272a12aefd274@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: sdwjack69@gmail.com (sjack)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 15:27:06 +0000
Organization: novaBBS
Message-ID: <3656e98dbeea35d3a92272a12aefd274@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <nnd$210b1bb8$3a94f16b@766a8ad657c7b144> <2232c750331a17c5160fa56c6bc99f2a@news.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1016462"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$Ac08FJ1rVn2WO0oXV2SFle3ZFuuem6vys2D2HDasGcosUgggiy7gy
X-Rslight-Posting-User: 38a45832bc9b44da212ffa4812b707acd0ff1b7c
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: sjack - Sun, 24 Dec 2023 15:27 UTC

I decoupled the paging with switches -PAGE to enable paging and +PAGE to
disable paging anything being writing to the display. Just a matter of having
a CR that counts.
Linux provides the scrollback. If on DOS, would implement plan B.
Cross that bridge when come to it but my first choice would not be to put
paging into words.

Re: Better WORDS, please!

<2023Dec24.162546@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Better WORDS, please!
Date: Sun, 24 Dec 2023 15:25:46 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 20
Message-ID: <2023Dec24.162546@mips.complang.tuwien.ac.at>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
Injection-Info: dont-email.me; posting-host="be8de2f947e67be86163dec153fff520";
logging-data="2737603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/p9UGu6ihkcnAuk83V5wf8"
Cancel-Lock: sha1:2lvOvIsU3yuNSl1owxhY6HsXP2c=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sun, 24 Dec 2023 15:25 UTC

zbigniew2011@gmail.com (LIT) writes:
>It doesn't seem to be that difficult to create "paged" WORDS

In Gforth, if you want the output of words to be paged, you

require more.fs

I find it cool that this can be added in a Forth system without having
to change every word that outputs multiple lines.

One other "better WORDS" is Martin Bitter's MWORDS. This lists all
words that contain a certain string. You can find it on
<http://theforth.net/package/mwords>.

- 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: Better WORDS, please!

<um9lrk$2km73$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Mon, 25 Dec 2023 03:22:13 +1100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <um9lrk$2km73$1@dont-email.me>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
<2023Dec24.162546@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 16:22:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1e4e803fc43d532f7912fadd8698f74b";
logging-data="2775267"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GEiwozevDZ0P3I0MAnn3R"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vDWXEN7ki01tbRZomgiPRwI4JVA=
In-Reply-To: <2023Dec24.162546@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: dxf - Sun, 24 Dec 2023 16:22 UTC

On 25/12/2023 2:25 am, Anton Ertl wrote:
> zbigniew2011@gmail.com (LIT) writes:
>> It doesn't seem to be that difficult to create "paged" WORDS
>
> In Gforth, if you want the output of words to be paged, you
>
> require more.fs
>
> I find it cool that this can be added in a Forth system without having
> to change every word that outputs multiple lines.
> ...

That would get very annoying, very quickly - no? Paging poses a similar
problem in that the user is required to enter a key to progress.

Re: Better WORDS, please!

<2023Dec24.174646@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Better WORDS, please!
Date: Sun, 24 Dec 2023 16:46:46 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 26
Message-ID: <2023Dec24.174646@mips.complang.tuwien.ac.at>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <2023Dec24.162546@mips.complang.tuwien.ac.at> <um9lrk$2km73$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="be8de2f947e67be86163dec153fff520";
logging-data="2779610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rJ7NGmAPY9aTYcYRPKB0x"
Cancel-Lock: sha1:KhiG9hUmg513wszGntPA5hur6nE=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sun, 24 Dec 2023 16:46 UTC

dxf <dxforth@gmail.com> writes:
>On 25/12/2023 2:25 am, Anton Ertl wrote:
>> zbigniew2011@gmail.com (LIT) writes:
>>> It doesn't seem to be that difficult to create "paged" WORDS
>>
>> In Gforth, if you want the output of words to be paged, you
>>
>> require more.fs
>>
>> I find it cool that this can be added in a Forth system without having
>> to change every word that outputs multiple lines.
>> ...
>
>That would get very annoying, very quickly - no? Paging poses a similar
>problem in that the user is required to enter a key to progress.

That's why more.fs is not loaded by default. Some people work in an
environment where it is useful, most have scroll-back support and
don't need it.

- 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: Better WORDS, please!

<6dcc3b5b9c85987ba9a8c9c138e4168e@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 17:59:04 +0000
Organization: novaBBS
Message-ID: <6dcc3b5b9c85987ba9a8c9c138e4168e@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <2023Dec24.162546@mips.complang.tuwien.ac.at> <um9lrk$2km73$1@dont-email.me> <2023Dec24.174646@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1028473"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 63063318607af797e83f549ce5239cf03fdbe117
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$Sc8M5RWQVMDp3zFHeG10tu7Zsl3Gld3ZYRvC2MB9ZqMP/gbeiIRFK
 by: LIT - Sun, 24 Dec 2023 17:59 UTC

>>> I find it cool that this can be added in a Forth system without having
>>> to change every word that outputs multiple lines.

I wrote just about WORDS.

Yes, such universal solution is of advantage.

> That's why more.fs is not loaded by default. Some people work in an
> environment where it is useful, most have scroll-back support and
> don't need it.

The problem with 'more' in Gforth is, that it's asking
a question 'more?' — but ignores my answer, be it 'N', 'Q',
'X', 'Esc' or any other asnwer of the type 'no, thanks'.
It gives me no choice — while the solution I pasted allows
to give up after the first screen is shown (or after any next part)
--
Z.

Re: Better WORDS, please!

<ed79313fec4edadf2fd3126dafff1dba@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 18:29:28 +0000
Organization: novaBBS
Message-ID: <ed79313fec4edadf2fd3126dafff1dba@news.novabbs.com>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com> <2023Dec24.162546@mips.complang.tuwien.ac.at> <um9lrk$2km73$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1030673"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$uGCgqvAro79SwwIU3VMZAORw/a8y4h.KWGo9IyLMLmgMxo.QBnU2u
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 63063318607af797e83f549ce5239cf03fdbe117
 by: LIT - Sun, 24 Dec 2023 18:29 UTC

> That would get very annoying, very quickly - no? Paging poses a similar
> problem in that the user is required to enter a key to progress.

Option like 'C' (for 'continuous output' / no paging
at the moment) would be helpful in case the user wants
to suspend paging switched on by default
--
Z.

Re: Better WORDS, please!

<uma9sn$2nkg4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: williams@umich.edu (David N. Williams)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Sun, 24 Dec 2023 17:04:06 -0500
Organization: University of Michigan
Lines: 33
Message-ID: <uma9sn$2nkg4$1@dont-email.me>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
<9d366bdd-5dba-40c3-98ca-af533bfe0b63n@googlegroups.com>
<um9e0b$2jecr$1@dont-email.me> <2023Dec24.162336@mips.complang.tuwien.ac.at>
Reply-To: williams@umich.edu
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 22:04:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4202b9baa814a1106a526076998f9c53";
logging-data="2871812"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/156HtAhr9yKTO1/VzOgla"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Z5yxuCvevdb39g/EeFeKMwkhk6M=
Content-Language: en-US
In-Reply-To: <2023Dec24.162336@mips.complang.tuwien.ac.at>
 by: David N. Williams - Sun, 24 Dec 2023 22:04 UTC

On 12/24/23 10:23 AM, Anton Ertl wrote:
> "David N. Williams" <williams@umich.edu> writes:
>> \ Portable Forth Environment 0.33.73w (Aug 21 2021 09:34:46)
>> Copyright (C) Dirk Uwe Zoller 1993 - 1995.
>> Copyright (C) Tektronix, Inc. 1998 - 2003.
>> Copyright (C) Guido U. Draheim 2005 - 2008.
>> ANS/ffa ITC Forth - Please enter LICENSE and WARRANTY.
>> Running on x86_64 darwin20.6.0 - to quit say BYE. ok
>> words
>> C K-SHIFT-MASK p EKEY>FKEY C K-SHIFT-F10
>> C K-SHIFT-F9 C K-SHIFT-F8 C K-SHIFT-F7
>> C K-SHIFT-F6 C K-SHIFT-F5 C K-SHIFT-F4
>> C K-SHIFT-F3 C K-SHIFT-F2 C K-SHIFT-F1
>> ...
>> p EXITCODE p ARGV p ARGC
>> p APPLICATION p EDIT-BLOCKFILE p HELP
>> p STANDARD-I/O p (TYPE) p (KEY)
>> p (EXPECT) p (EMIT) p *TYPE*
>> p *KEY* p *EXPECT* p *EMIT*
> ...
>> I don't remember the significance of the C and p
>> prefixes
>
> Looking at these words, my guess is:
>
> C: constant
> p: primitive

That sounds right. Thanks!

-- David W.

Re: Better WORDS, please!

<umaqb0$2pitb$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Better WORDS, please!
Date: Mon, 25 Dec 2023 13:44:48 +1100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <umaqb0$2pitb$2@dont-email.me>
References: <980a047687a8dfd0e2df160ec6e93d93@news.novabbs.com>
<2023Dec24.162546@mips.complang.tuwien.ac.at> <um9lrk$2km73$1@dont-email.me>
<2023Dec24.174646@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 25 Dec 2023 02:44:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="336f120b5bfd83e409601103aa9f8576";
logging-data="2935723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NvQtqVw9Ulo6YScttQfMv"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6c17pAT3b/qNQ7zmhjhaUDePpPg=
Content-Language: en-GB
In-Reply-To: <2023Dec24.174646@mips.complang.tuwien.ac.at>
 by: dxf - Mon, 25 Dec 2023 02:44 UTC

On 25/12/2023 3:46 am, Anton Ertl wrote:
> dxf <dxforth@gmail.com> writes:
>> On 25/12/2023 2:25 am, Anton Ertl wrote:
>>> zbigniew2011@gmail.com (LIT) writes:
>>>> It doesn't seem to be that difficult to create "paged" WORDS
>>>
>>> In Gforth, if you want the output of words to be paged, you
>>>
>>> require more.fs
>>>
>>> I find it cool that this can be added in a Forth system without having
>>> to change every word that outputs multiple lines.
>>> ...
>>
>> That would get very annoying, very quickly - no? Paging poses a similar
>> problem in that the user is required to enter a key to progress.
>
> That's why more.fs is not loaded by default. Some people work in an
> environment where it is useful, most have scroll-back support and
> don't need it.

WRT MORE one should be able to type:

more words

and have it limited to the target. A New Year's challenge?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor