Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Different all twisty a of in maze are you, passages little.


devel / comp.lang.forth / gforth warning: hex. is obsolete

SubjectAuthor
* gforth warning: hex. is obsoleteBuzz McCool
+* Re: gforth warning: hex. is obsoletedxf
|`* Re: gforth warning: hex. is obsoletealbert
| +- Re: gforth warning: hex. is obsoletedxf
| `- Re: gforth warning: hex. is obsoleteAnton Ertl
`* Re: gforth warning: hex. is obsoleteAnton Ertl
 +* Re: gforth warning: hex. is obsoleteAnton Ertl
 |`* Re: gforth warning: hex. is obsoleteminforth
 | `- Re: gforth warning: hex. is obsoleteAnton Ertl
 +* Re: gforth warning: hex. is obsoletePMF
 |+- Re: gforth warning: hex. is obsoletemhx
 |`- Re: gforth warning: hex. is obsoletealbert
 +* Re: gforth warning: hex. is obsoleteBuzz McCool
 |`* Re: gforth warning: hex. is obsoleteAnton Ertl
 | `* Re: gforth warning: hex. is obsoletealbert
 |  `* Re: gforth warning: hex. is obsoleteminforth
 |   `* Re: gforth warning: hex. is obsoletedxf
 |    +- Re: gforth warning: hex. is obsoleteAnton Ertl
 |    `- Re: gforth warning: hex. is obsoleteminforth
 `* Re: gforth warning: hex. is obsoletePaul Rubin
  +- Re: gforth warning: hex. is obsoletedxf
  +- Re: gforth warning: hex. is obsoletealbert
  +- Re: gforth warning: hex. is obsoleteAnton Ertl
  `* Re: gforth warning: hex. is obsoleteBuzz McCool
   +* Re: gforth warning: hex. is obsoletealbert
   |+* Re: gforth warning: hex. is obsoleteminforth
   ||`* Re: gforth warning: hex. is obsoletemhx
   || `- Re: gforth warning: hex. is obsoleteminforth
   |+* Re: gforth warning: hex. is obsoletedxf
   ||`* Re: gforth warning: hex. is obsoletemhx
   || `- Re: gforth warning: hex. is obsoletedxf
   |`- Re: gforth warning: hex. is obsoleteBuzz McCool
   `* Re: gforth warning: hex. is obsoleteAnton Ertl
    `- Re: gforth warning: hex. is obsoleteBuzz McCool

Pages:12
gforth warning: hex. is obsolete

<uti7g8$2eegr$1@dont-email.me>

  copy mid

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

  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: buzz_mccool@yahoo.com (Buzz McCool)
Newsgroups: comp.lang.forth
Subject: gforth warning: hex. is obsolete
Date: Thu, 21 Mar 2024 14:06:14 -0700
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uti7g8$2eegr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 21:06:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2a1136bd946f07f29a5fdf38040ec57d";
logging-data="2570779"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QhGEWn2D6zi2vl+bePv7tw7hsLgkEz70="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VPaYkFrln+HL6dS4CGUDoCQQSRQ=
Content-Language: en-US
 by: Buzz McCool - Thu, 21 Mar 2024 21:06 UTC

I use gforth in a terminal window to type in some quick conversions
between decimal and hexadecimal numbers. After a recent upgrade to a new
gforth version I see:

$ gforth
Gforth 0.7.9_20240104

$ff ok 1
.. 255 ok
255 ok 1
hex.
*terminal*:4:1: warning: hex. is obsolete$FF ok

What am I supposed to be using in place of "hex." to display a number in
hexadecimal? I see some recommendations like "Don’t use hex, use
base-execute instead." in the manual, but I don't understand what that
is trying to tell me. Is there a tutorial on new style gforth number
base conversions somewhere, preferably with lots of examples?

Note that when using a search engine to research this issue, the first
hits that come up are from this site with a very old manual:
https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/
which says "This manual is for Gforth (version 0.7.0, November 2, 2008)".

Further down in the list of search engine suggestions is a recent manual
version https://gforth.org/manual/index.html which says "This manual is
for Gforth (version 0.7.9_20240229, February 29, 2024)".

Re: gforth warning: hex. is obsolete

<65fcd9a8$1@news.ausics.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Date: Fri, 22 Mar 2024 12:06:48 +1100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: gforth warning: hex. is obsolete
Newsgroups: comp.lang.forth
References: <uti7g8$2eegr$1@dont-email.me>
Content-Language: en-GB
From: dxforth@gmail.com (dxf)
In-Reply-To: <uti7g8$2eegr$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: news.ausics.net
Message-ID: <65fcd9a8$1@news.ausics.net>
Organization: Ausics - https://newsgroups.ausics.net
Lines: 22
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: dxf - Fri, 22 Mar 2024 01:06 UTC

On 22/03/2024 8:06 am, Buzz McCool wrote:
> I use gforth in a terminal window to type in some quick conversions between decimal and hexadecimal numbers. After a recent upgrade to a new gforth version I see:
>
>
> $ gforth
> Gforth 0.7.9_20240104
>
> $ff  ok 1
> . 255  ok
> 255  ok 1
> hex.
> *terminal*:4:1: warning: hex. is obsolete$FF  ok
>
>
> What am I supposed to be using in place of "hex." to display a number in hexadecimal?

Did you try h. ?

As for docs 'locate hex.' will point you to the file where it's defined and
alternatives might exist.

Re: gforth warning: hex. is obsolete

<2024Mar22.073342@mips.complang.tuwien.ac.at>

  copy mid

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

  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: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 06:33:42 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 38
Message-ID: <2024Mar22.073342@mips.complang.tuwien.ac.at>
References: <uti7g8$2eegr$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="ba43ef8b663fcd28123aedbe1f6fba78";
logging-data="2918765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vw5FtIyVx8mBOK/+n/oBG"
Cancel-Lock: sha1:/csNMyGHJEqjiAg8eiaSdePz/PA=
X-newsreader: xrn 10.11
 by: Anton Ertl - Fri, 22 Mar 2024 06:33 UTC

Buzz McCool <buzz_mccool@yahoo.com> writes:
>I use gforth in a terminal window to type in some quick conversions
>between decimal and hexadecimal numbers. After a recent upgrade to a new
>gforth version I see:
>
>
>$ gforth
>Gforth 0.7.9_20240104
>
>$ff ok 1
>. 255 ok
>255 ok 1
>hex.
>*terminal*:4:1: warning: hex. is obsolete$FF ok
>
>
>What am I supposed to be using in place of "hex." to display a number in
>hexadecimal?

H.

This is in line with common practice in other Forth systems.

>I see some recommendations like "Don’t use hex, use
>base-execute instead." in the manual, but I don't understand what that
>is trying to tell me.

This is about the standard word "HEX", not the Gforth word "HEX.".
HEX permanently changes BASE, whereas BASE-EXECUTE changes it only for
the word which it EXECUTEs. A permanent change is not appropriate for
use in a generally useful definition.

- 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: gforth warning: hex. is obsolete

<2024Mar22.085828@mips.complang.tuwien.ac.at>

  copy mid

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

  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: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 07:58:28 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 35
Message-ID: <2024Mar22.085828@mips.complang.tuwien.ac.at>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at>
Injection-Info: dont-email.me; posting-host="ba43ef8b663fcd28123aedbe1f6fba78";
logging-data="2958874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18l8+UIobk2XIoHXX5x/uon"
Cancel-Lock: sha1:fOBwu87j5NTnSfrGWVWDAOn1GP4=
X-newsreader: xrn 10.11
 by: Anton Ertl - Fri, 22 Mar 2024 07:58 UTC

anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>Buzz McCool <buzz_mccool@yahoo.com> writes:
>>What am I supposed to be using in place of "hex." to display a number in
>>hexadecimal?
>
>H.

If you build Gforth from he now-current source, and then ask the new
Gforth

help hex.

it will tell you

'hex.' ( u -- ) gforth-obsolete "hex."
Old name for 'h.' ok

For a slightly older Gforth, the answer you get is:

No documentation for hex., LOCATEing source
stuff.fs:677
[...]
synonym hex. h. \ gforth-obsolete
\G Display @i{u} as an unsigned hex number, prefixed with a "$" and
\G followed by a space.
[...]

Here you can see that HEX. is a synonym for H.

- 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: gforth warning: hex. is obsolete

<e9411ca311ccdfe2fbdb64d1706f6395@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: minforth@gmx.net (minforth)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 08:33:02 +0000
Organization: novaBBS
Message-ID: <e9411ca311ccdfe2fbdb64d1706f6395@www.novabbs.com>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <2024Mar22.085828@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="2815510"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: d2a19558f194e2f1f8393b8d9be9ef51734a4da3
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$BC0kmCt4l7G.2FYecilo7.bk7mkBF.WIVyVnfl3BRx69aUTEccOmq
 by: minforth - Fri, 22 Mar 2024 08:33 UTC

BTW (I don't know gforth well enough) is there any formatted output in gforth
e.g. similar to C printf?

Contrived: 12 dup "This is %d in hex: %X" -> This is 12 in hex: C

Re: gforth warning: hex. is obsolete

<2024Mar22.100131@mips.complang.tuwien.ac.at>

  copy mid

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

  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: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 09:01:31 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 32
Message-ID: <2024Mar22.100131@mips.complang.tuwien.ac.at>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <2024Mar22.085828@mips.complang.tuwien.ac.at> <e9411ca311ccdfe2fbdb64d1706f6395@www.novabbs.com>
Injection-Info: dont-email.me; posting-host="ba43ef8b663fcd28123aedbe1f6fba78";
logging-data="2980607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/obq4Rb29wCYiCmxw51/L"
Cancel-Lock: sha1:gvv4u10H31L1E48JzYbfNA/LJsM=
X-newsreader: xrn 10.11
 by: Anton Ertl - Fri, 22 Mar 2024 09:01 UTC

minforth@gmx.net (minforth) writes:
>BTW (I don't know gforth well enough) is there any formatted output in gforth
>e.g. similar to C printf?
>
>Contrived: 12 dup "This is %d in hex: %X" -> This is 12 in hex: C

I would write that as

12 ." This is " dup dec. ." in hex: " h.

Output:

This is 12 in hex: $C

If you insist on output without "$", it would be

12 ." This is " dup dec. ." in hex: " `u. $10 base-execute

Alternatively, you can also use C's printf:

c-library printf-nn-lib
\c #include <stdio.h>
c-function printf-nn printf a n n -- n
end-c-library
"This is %d in hex: %X\000" drop 12 dup printf-nn drop

- 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: gforth warning: hex. is obsolete

<31213aabb674a4c49ae2c68a907b364a@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: peter.m.falth@gmail.com (PMF)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 09:35:19 +0000
Organization: novaBBS
Message-ID: <31213aabb674a4c49ae2c68a907b364a@www.novabbs.com>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@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="2820254"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$SbjSqHFfTNpnPI9x5ud9kOCQSAR.JDaPDXVdFuyC7.rQM3MNw32uq
X-Rslight-Posting-User: cebd54b298ede1ed761148027d3e24747984ff35
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: PMF - Fri, 22 Mar 2024 09:35 UTC

Anton Ertl wrote:

> Buzz McCool <buzz_mccool@yahoo.com> writes:
>>I use gforth in a terminal window to type in some quick conversions
>>between decimal and hexadecimal numbers. After a recent upgrade to a new
>>gforth version I see:
>>
>>
>>$ gforth
>>Gforth 0.7.9_20240104
>>
>>$ff ok 1
>>. 255 ok
>>255 ok 1
>>hex.
>>*terminal*:4:1: warning: hex. is obsolete$FF ok
>>
>>
>>What am I supposed to be using in place of "hex." to display a number in
>>hexadecimal?

> H.

> This is in line with common practice in other Forth systems.

lxf/ntf has had h. from the beginning. It is one of the most used debugging tools!
There is also h.s which show the stack items in hex and .. that dumps and clears the stack

BR
Peter

Re: gforth warning: hex. is obsolete

<1bbac355c5ebf30c54601e4a0c0eaa0b@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: mhx@iae.nl (mhx)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 10:36:38 +0000
Organization: novaBBS
Message-ID: <1bbac355c5ebf30c54601e4a0c0eaa0b@www.novabbs.com>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <31213aabb674a4c49ae2c68a907b364a@www.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="2825573"; 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$PJ0Js/szOViC8D1T0Ru4c.IZMlEe1mBgB3V/9VeaI.akhqnBP/Jqy
X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24
 by: mhx - Fri, 22 Mar 2024 10:36 UTC

PMF wrote:

>>>
>>>What am I supposed to be using in place of "hex." to display a number in
>>>hexadecimal?

>> H.

>> This is in line with common practice in other Forth systems.

> lxf/ntf has had h. from the beginning. It is one of the most used debugging tools!
> There is also h.s which show the stack items in hex and .. that dumps and clears the stack

FORTH> .s
Data: ---
System: ---
Float: --- ok
FORTH> 123 77 >s pi .s
Data: 123 ---
System: 77 ---
Float: 3.1415926535897932385 --- ok
[1]<1>{1}FORTH> -1. .s
Data: 123 -1 -1 ---
System: 77 ---
Float: 3.1415926535897932385 --- ok
[3]<1>{1}FORTH> -s e. d. . 3.141593e0 -1 123 ok
FORTH> hex 123 .s
Data: 123 ---
System: ---
Float: --- ok
[1]FORTH> . 123 ok
FORTH> decimal 123 hex .s
Data: 7B ---
System: ---
Float: --- ok
[1]FORTH> . decimal 7B ok

-marcel

Re: gforth warning: hex. is obsolete

<nnd$3250ae6e$14940037@594c5a00d5a6d633>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
References: <uti7g8$2eegr$1@dont-email.me> <65fcd9a8$1@news.ausics.net>
From: albert@spenarnc.xs4all.nl
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$3250ae6e$14940037@594c5a00d5a6d633>
Organization: KPN B.V.
Date: Fri, 22 Mar 2024 13:44:43 +0100
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 35
Injection-Date: Fri, 22 Mar 2024 13:44:43 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: albert@spenarnc.xs4all.nl - Fri, 22 Mar 2024 12:44 UTC

In article <65fcd9a8$1@news.ausics.net>, dxf <dxforth@gmail.com> wrote:
>On 22/03/2024 8:06 am, Buzz McCool wrote:
>> I use gforth in a terminal window to type in some quick conversions
>between decimal and hexadecimal numbers. After a recent upgrade to a new
>gforth version I see:
>>
>>
>> $ gforth
>> Gforth 0.7.9_20240104
>>
>> $ff  ok 1
>> . 255  ok
>> 255  ok 1
>> hex.
>> *terminal*:4:1: warning: hex. is obsolete$FF  ok
>>
>>
>> What am I supposed to be using in place of "hex." to display a number
>in hexadecimal?
>
>Did you try h. ?
>
>As for docs 'locate hex.' will point you to the file where it's defined and
>alternatives might exist.

Neither will work with 0.7.3 that most people have.
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 purring. - the Wise from Antrim -

Re: gforth warning: hex. is obsolete

<nnd$6776c0df$4e8ba4eb@753e932cb75fff00>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <31213aabb674a4c49ae2c68a907b364a@www.novabbs.com>
From: albert@spenarnc.xs4all.nl
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$6776c0df$4e8ba4eb@753e932cb75fff00>
Organization: KPN B.V.
Date: Fri, 22 Mar 2024 13:55:53 +0100
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 44
Injection-Date: Fri, 22 Mar 2024 13:55:53 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2095
 by: albert@spenarnc.xs4all.nl - Fri, 22 Mar 2024 12:55 UTC

In article <31213aabb674a4c49ae2c68a907b364a@www.novabbs.com>,
PMF <peter.m.falth@gmail.com> wrote:
>Anton Ertl wrote:
>
>> Buzz McCool <buzz_mccool@yahoo.com> writes:
>>>I use gforth in a terminal window to type in some quick conversions
>>>between decimal and hexadecimal numbers. After a recent upgrade to a new
>>>gforth version I see:
>>>
>>>
>>>$ gforth
>>>Gforth 0.7.9_20240104
>>>
>>>$ff ok 1
>>>. 255 ok
>>>255 ok 1
>>>hex.
>>>*terminal*:4:1: warning: hex. is obsolete$FF ok
>>>
>>>
>>>What am I supposed to be using in place of "hex." to display a number in
>>>hexadecimal?
>
>> H.
>
>> This is in line with common practice in other Forth systems.
>
>lxf/ntf has had h. from the beginning. It is one of the most used
>debugging tools!
>There is also h.s which show the stack items in hex and .. that dumps
>and clears the stack

H. is present in almost forth systems originating from the Netherlands.
>
>BR
>Peter

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 purring. - the Wise from Antrim -

Re: gforth warning: hex. is obsolete

<65fd9cfc$1@news.ausics.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Date: Sat, 23 Mar 2024 02:00:13 +1100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: gforth warning: hex. is obsolete
Newsgroups: comp.lang.forth
References: <uti7g8$2eegr$1@dont-email.me> <65fcd9a8$1@news.ausics.net>
<nnd$3250ae6e$14940037@594c5a00d5a6d633>
Content-Language: en-GB
From: dxforth@gmail.com (dxf)
In-Reply-To: <nnd$3250ae6e$14940037@594c5a00d5a6d633>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: news.ausics.net
Message-ID: <65fd9cfc$1@news.ausics.net>
Organization: Ausics - https://newsgroups.ausics.net
Lines: 32
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: dxf - Fri, 22 Mar 2024 15:00 UTC

On 22/03/2024 11:44 pm, albert@spenarnc.xs4all.nl wrote:
> In article <65fcd9a8$1@news.ausics.net>, dxf <dxforth@gmail.com> wrote:
>> On 22/03/2024 8:06 am, Buzz McCool wrote:
>>> I use gforth in a terminal window to type in some quick conversions
>> between decimal and hexadecimal numbers. After a recent upgrade to a new
>> gforth version I see:
>>>
>>>
>>> $ gforth
>>> Gforth 0.7.9_20240104
>>>
>>> $ff  ok 1
>>> . 255  ok
>>> 255  ok 1
>>> hex.
>>> *terminal*:4:1: warning: hex. is obsolete$FF  ok
>>>
>>>
>>> What am I supposed to be using in place of "hex." to display a number
>> in hexadecimal?
>>
>> Did you try h. ?
>>
>> As for docs 'locate hex.' will point you to the file where it's defined and
>> alternatives might exist.
>
> Neither will work with 0.7.3 that most people have.
> Groetjes Albert

Too bad. I assumed it was only Windows users that didn't know to compile from
source and must take what's given them.

Re: gforth warning: hex. is obsolete

<2024Mar22.183127@mips.complang.tuwien.ac.at>

  copy mid

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

  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: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 17:31:27 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 20
Message-ID: <2024Mar22.183127@mips.complang.tuwien.ac.at>
References: <uti7g8$2eegr$1@dont-email.me> <65fcd9a8$1@news.ausics.net> <nnd$3250ae6e$14940037@594c5a00d5a6d633>
Injection-Info: dont-email.me; posting-host="ba43ef8b663fcd28123aedbe1f6fba78";
logging-data="3216930"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GsZo+6OGIX6jdw4rkgZ5+"
Cancel-Lock: sha1:bERfciLPvKuVSdOu2lwLsgAbZZc=
X-newsreader: xrn 10.11
 by: Anton Ertl - Fri, 22 Mar 2024 17:31 UTC

albert@spenarnc.xs4all.nl writes:
>In article <65fcd9a8$1@news.ausics.net>, dxf <dxforth@gmail.com> wrote:
>>On 22/03/2024 8:06 am, Buzz McCool wrote:
>>> *terminal*:4:1: warning: hex. is obsolete$FF  ok
[...]
>>Did you try h. ?
>>
>>As for docs 'locate hex.' will point you to the file where it's defined and
>>alternatives might exist.
>
>Neither will work with 0.7.3 that most people have.

But then, if you use Gforth 0.7.3., you don't get this warning.

- 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: gforth warning: hex. is obsolete

<utkp43$34hd6$1@dont-email.me>

  copy mid

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

  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: buzz_mccool@yahoo.com (Buzz McCool)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Fri, 22 Mar 2024 13:19:13 -0700
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <utkp43$34hd6$1@dont-email.me>
References: <uti7g8$2eegr$1@dont-email.me>
<2024Mar22.073342@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Mar 2024 20:19:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9941992d6a31ced2a2daafcbd16c0b22";
logging-data="3294630"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183c7JdlzOppNjvSgiB1AhecDogQERCcDU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:czylrvzWTvsWp4NrgUbtjy4RTwU=
Content-Language: en-US
In-Reply-To: <2024Mar22.073342@mips.complang.tuwien.ac.at>
 by: Buzz McCool - Fri, 22 Mar 2024 20:19 UTC

> Buzz McCool <buzz_mccool@yahoo.com> writes:
>>
>> What am I supposed to be using in place of "hex." to display a number in
>> hexadecimal?

On 3/21/2024 11:33 PM, Anton Ertl wrote:
> H.
>
> This is in line with common practice in other Forth systems.

I see dec. documented,
https://gforth.org/manual/Word-Index.html#Word-Index_fn_letter-D

but not h.
https://gforth.org/manual/Word-Index.html#Word-Index_fn_letter-H

The older 0.7.0 docs does show hex. (but not h.) in both the word index
and the "Simple-numeric-output" section.

Re: gforth warning: hex. is obsolete

<2024Mar23.075632@mips.complang.tuwien.ac.at>

  copy mid

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

  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: gforth warning: hex. is obsolete
Date: Sat, 23 Mar 2024 06:56:32 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 15
Message-ID: <2024Mar23.075632@mips.complang.tuwien.ac.at>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <utkp43$34hd6$1@dont-email.me>
Injection-Info: dont-email.me; posting-host="fd308f4dda5c73dce81fb5f47d4b4ca8";
logging-data="3681747"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yVH56SHaxmVgEXm6J3JYo"
Cancel-Lock: sha1:XMZgqNY5+u3yS02g9Phjtu+tTFs=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sat, 23 Mar 2024 06:56 UTC

Buzz McCool <buzz_mccool@yahoo.com> writes:
>but not h.
>https://gforth.org/manual/Word-Index.html#Word-Index_fn_letter-H

Yes, I only added H. to the documentation yesterday. In general,
documentation is quite a bit behind development, and the state of the
documentation is why we have not released Gforth 1.0 yet. I document
as I find the time.

- 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: gforth warning: hex. is obsolete

<87frwh75hk.fsf@nightsong.com>

  copy mid

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

  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: no.email@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Sat, 23 Mar 2024 00:49:11 -0700
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <87frwh75hk.fsf@nightsong.com>
References: <uti7g8$2eegr$1@dont-email.me>
<2024Mar22.073342@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="f0c92c27630bc36f74829dc2bed309ff";
logging-data="3702553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eZRiHTh9mWmKqatfKuYeO"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:JeHy/J/azVDizpPPv2pPEvEBUXM=
sha1:40cgdLskTWV8C3az/xmsDk4m14k=
 by: Paul Rubin - Sat, 23 Mar 2024 07:49 UTC

anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
> H.
> This is in line with common practice in other Forth systems.

The warning message about HEX. is annoying in a system that has been
around for so long. IMHO it would be better for HEX. and H. to both
work, without HEX. generating unnecessary warning messages.

Re: gforth warning: hex. is obsolete

<65fe9763$1@news.ausics.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Date: Sat, 23 Mar 2024 19:48:36 +1100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: gforth warning: hex. is obsolete
Newsgroups: comp.lang.forth
References: <uti7g8$2eegr$1@dont-email.me>
<2024Mar22.073342@mips.complang.tuwien.ac.at> <87frwh75hk.fsf@nightsong.com>
Content-Language: en-GB
From: dxforth@gmail.com (dxf)
In-Reply-To: <87frwh75hk.fsf@nightsong.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: news.ausics.net
Message-ID: <65fe9763$1@news.ausics.net>
Organization: Ausics - https://newsgroups.ausics.net
Lines: 17
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: dxf - Sat, 23 Mar 2024 08:48 UTC

On 23/03/2024 6:49 pm, Paul Rubin wrote:
> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>> H.
>> This is in line with common practice in other Forth systems.
>
> The warning message about HEX. is annoying in a system that has been
> around for so long. IMHO it would be better for HEX. and H. to both
> work, without HEX. generating unnecessary warning messages.

Can't say I've felt the need for either given auto stack display:

123 -123 ok 123 -123 <
hex ok 7B FF85 <
decimal ok 123 -123 <

Should I need formatted hex in an app I have library routines for that.

Re: gforth warning: hex. is obsolete

<nnd$01ee13ec$34bd2f20@96b7de71e5510ab3>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <87frwh75hk.fsf@nightsong.com>
From: albert@spenarnc.xs4all.nl
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$01ee13ec$34bd2f20@96b7de71e5510ab3>
Organization: KPN B.V.
Date: Sat, 23 Mar 2024 12:23:48 +0100
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feed.abavia.com!abe006.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 20
Injection-Date: Sat, 23 Mar 2024 12:23:48 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: albert@spenarnc.xs4all.nl - Sat, 23 Mar 2024 11:23 UTC

In article <87frwh75hk.fsf@nightsong.com>,
Paul Rubin <no.email@nospam.invalid> wrote:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>> H.
>> This is in line with common practice in other Forth systems.
>
>The warning message about HEX. is annoying in a system that has been
>around for so long. IMHO it would be better for HEX. and H. to both
>work, without HEX. generating unnecessary warning messages.

It is reasonably absurd that there is a warning about HEX. and that
H. is undocumented at the same time.

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 purring. - the Wise from Antrim -

Re: gforth warning: hex. is obsolete

<2024Mar23.191429@mips.complang.tuwien.ac.at>

  copy mid

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

  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: gforth warning: hex. is obsolete
Date: Sat, 23 Mar 2024 18:14:29 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 25
Message-ID: <2024Mar23.191429@mips.complang.tuwien.ac.at>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <87frwh75hk.fsf@nightsong.com>
Injection-Info: dont-email.me; posting-host="fd308f4dda5c73dce81fb5f47d4b4ca8";
logging-data="3993327"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181Kk+jqaJsGQg/5C7yaYbc"
Cancel-Lock: sha1:p/UH25Ui85gD8SLp4Z7g6E8cFhk=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sat, 23 Mar 2024 18:14 UTC

Paul Rubin <no.email@nospam.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>> H.
>> This is in line with common practice in other Forth systems.
>
>The warning message about HEX. is annoying in a system that has been
>around for so long. IMHO it would be better for HEX. and H. to both
>work,

They both work (for now).

>without HEX. generating unnecessary warning messages.

You can turn off warnings with

WARNINGS OFF

but of course that also turns off all other warnings.

- 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: gforth warning: hex. is obsolete

<nnd$51b246c5$38e49f40@5e9e97105c706495>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <utkp43$34hd6$1@dont-email.me> <2024Mar23.075632@mips.complang.tuwien.ac.at>
From: albert@spenarnc.xs4all.nl
Subject: Re: gforth warning: hex. is obsolete
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$51b246c5$38e49f40@5e9e97105c706495>
Organization: KPN B.V.
Date: Sun, 24 Mar 2024 19:39:27 +0100
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 76
Injection-Date: Sun, 24 Mar 2024 19:39:27 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: albert@spenarnc.xs4all.nl - Sun, 24 Mar 2024 18:39 UTC

In article <2024Mar23.075632@mips.complang.tuwien.ac.at>,
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>Buzz McCool <buzz_mccool@yahoo.com> writes:
>>but not h.
>>https://gforth.org/manual/Word-Index.html#Word-Index_fn_letter-H
>
>Yes, I only added H. to the documentation yesterday. In general,
>documentation is quite a bit behind development, and the state of the
>documentation is why we have not released Gforth 1.0 yet. I document
>as I find the time.

Without further comment I recite the history of adding NIP to ciforth. 1]
I was reluctant to introduce it, as it wasn't present in fig-Forth.
ROT and SWAP are changing the stack order, which is bad and is not to
be obscured. I felt that NIP was hiding a SWAP, but after all NIP
doesn't actually change the stack order. That was the reason that
Chuck Moore uses it, probably.
(New words are not added lightly to the ciforth core.)

---------------
worddoc( {JUGGLING},{NIP},{nip},{n1 n2---n2},{ISO},
{Drop the second number from the stack.},
{{DUP},{DROP},{SWAP},{OVER}},
{{S0 @ DSP! 1 2 3 4 NIP .S},{S[ 1 2 4 ]},
{S0 @ DSP!},{} },
enddoc)
CODE_HEADER({NIP},{NIP})
POP AX
POP BX
PUSH AX
_NEXT
---------------

A new word is to be preceeded by a worddoc macro.
It is explained in the documentation of the generic system cifgen.info.
(this is not the forth itself)
---------------------------------------
The 'worddoc' macro defines a structure with additional information
of a word. Generally it is placed in front of the word. The same word
can be found several times in the input file, but only one is selected
in a particular configuration. The same goes for the corresponding
'worddoc' .
Its fields are:
1. Wordset name.
2. Word name.
3. Pronunciation. This is a pure textual and pronounceable
identification of the word. It is also used in 'texinfo' that
doesn't handle special characters well.
4. Stack effect. The stack effect obeys all the conventions put forth
in the user manual.
5. Properties. Properties are i.a. immediate and such, and the
standards with which this word complies. Again this is described
in the user manual.
6. Description.
7. References. This is a list of names of other Forth words, that can
be studied to better understand this one.
8. Tests. This is a list. The first and all other odd members is a
test, code that can be passed to Forth. The second and all other
even members is the expected outcome of the preceding test.
'worddoc' are such that a structure starts with 'worddoc( ' and end
with a '})' at the end of a line. This means that a worddoc can be
simply skipped if it occurs in Forth code, by defining a word 'worddoc('
that reads and ignores source up to the end sentinel.
--------------------------------------------

1] This is as far as it goes. Of course NIP was present in the library.
>
>- anton

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

Re: gforth warning: hex. is obsolete

<369ff1901c6534dcfbc554a2f99501e8@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: minforth@gmx.net (minforth)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Sun, 24 Mar 2024 19:53:50 +0000
Organization: novaBBS
Message-ID: <369ff1901c6534dcfbc554a2f99501e8@www.novabbs.com>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <utkp43$34hd6$1@dont-email.me> <2024Mar23.075632@mips.complang.tuwien.ac.at> <nnd$51b246c5$38e49f40@5e9e97105c706495>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3095981"; 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$yRZBMwfVk5Y/7mhbf6TRQuu2V47uIaaD5C38cud1pUrpUrZBnumfi
X-Rslight-Posting-User: d2a19558f194e2f1f8393b8d9be9ef51734a4da3
 by: minforth - Sun, 24 Mar 2024 19:53 UTC

I am guessing that NIP came in with TOS caching, because with it
NIP is just a stack pointer in- or decrement

Re: gforth warning: hex. is obsolete

<6600cae5$1@news.ausics.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Date: Mon, 25 Mar 2024 11:52:54 +1100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: gforth warning: hex. is obsolete
Content-Language: en-GB
Newsgroups: comp.lang.forth
References: <uti7g8$2eegr$1@dont-email.me>
<2024Mar22.073342@mips.complang.tuwien.ac.at> <utkp43$34hd6$1@dont-email.me>
<2024Mar23.075632@mips.complang.tuwien.ac.at>
<nnd$51b246c5$38e49f40@5e9e97105c706495>
<369ff1901c6534dcfbc554a2f99501e8@www.novabbs.com>
From: dxforth@gmail.com (dxf)
In-Reply-To: <369ff1901c6534dcfbc554a2f99501e8@www.novabbs.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: news.ausics.net
Message-ID: <6600cae5$1@news.ausics.net>
Organization: Ausics - https://newsgroups.ausics.net
Lines: 8
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: dxf - Mon, 25 Mar 2024 00:52 UTC

On 25/03/2024 6:53 am, minforth wrote:
> I am guessing that NIP came in with TOS caching, because with it
> NIP is just a stack pointer in- or decrement

Likely it was frequency. In the F83 distribution NIP occurs 21 times.
Don't know if it was they who coined it but it seems to have taken off
from there (F83 being the replacement for FigForth).

Re: gforth warning: hex. is obsolete

<2024Mar25.100106@mips.complang.tuwien.ac.at>

  copy mid

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

  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: gforth warning: hex. is obsolete
Date: Mon, 25 Mar 2024 09:01:06 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 16
Message-ID: <2024Mar25.100106@mips.complang.tuwien.ac.at>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <utkp43$34hd6$1@dont-email.me> <2024Mar23.075632@mips.complang.tuwien.ac.at> <nnd$51b246c5$38e49f40@5e9e97105c706495> <369ff1901c6534dcfbc554a2f99501e8@www.novabbs.com> <6600cae5$1@news.ausics.net>
Injection-Date: Mon, 25 Mar 2024 10:02:41 +0100
Injection-Info: dont-email.me; posting-host="dcb0fb0dc265e73eaebdbb7e1ee3f5fd";
logging-data="1052182"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18A018eV2yzev1gUFrgMiMh"
Cancel-Lock: sha1:iTQyXLEqD/oL18MUYGGaJSSzOBI=
X-newsreader: xrn 10.11
 by: Anton Ertl - Mon, 25 Mar 2024 09:01 UTC

dxf <dxforth@gmail.com> writes:
>On 25/03/2024 6:53 am, minforth wrote:
>> I am guessing that NIP came in with TOS caching, because with it
>> NIP is just a stack pointer in- or decrement
>
>Likely it was frequency. In the F83 distribution NIP occurs 21 times.

130 occurences of NIP in the Gforth image (for comparison, 545
occurences of DROP).

- 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: gforth warning: hex. is obsolete

<58f602e892a8fc3b73874d9eb6c2db39@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!.POSTED!not-for-mail
From: minforth@gmx.net (minforth)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Mon, 25 Mar 2024 16:37:22 +0000
Organization: novaBBS
Message-ID: <58f602e892a8fc3b73874d9eb6c2db39@www.novabbs.com>
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <utkp43$34hd6$1@dont-email.me> <2024Mar23.075632@mips.complang.tuwien.ac.at> <nnd$51b246c5$38e49f40@5e9e97105c706495> <369ff1901c6534dcfbc554a2f99501e8@www.novabbs.com> <6600cae5$1@news.ausics.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3193626"; 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: d2a19558f194e2f1f8393b8d9be9ef51734a4da3
X-Rslight-Site: $2y$10$3km9LqBFxMtXpabHYBywHeul7h/Y2z3noVbkH.4Iy2V4PIpoBF.vi
 by: minforth - Mon, 25 Mar 2024 16:37 UTC

dxf wrote:

> (F83 being the replacement for FigForth).

You probably mean Forth-83. It did not comprise NIP.
(F83 was Laxen&Perry although popular)

Re: gforth warning: hex. is obsolete

<utumib$1s4nd$1@dont-email.me>

  copy mid

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

  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: buzz_mccool@yahoo.com (Buzz McCool)
Newsgroups: comp.lang.forth
Subject: Re: gforth warning: hex. is obsolete
Date: Tue, 26 Mar 2024 07:36:59 -0700
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <utumib$1s4nd$1@dont-email.me>
References: <uti7g8$2eegr$1@dont-email.me>
<2024Mar22.073342@mips.complang.tuwien.ac.at> <87frwh75hk.fsf@nightsong.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 26 Mar 2024 15:36:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="4007f0177f0815c99cc7a98471f342d9";
logging-data="1970925"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19k9PnkvAM5PPdJ1TVQ3BDjWhtUmk4zzQk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:k5BChYYH7liJVgGlVGYMGkKfaSM=
Content-Language: en-US
In-Reply-To: <87frwh75hk.fsf@nightsong.com>
 by: Buzz McCool - Tue, 26 Mar 2024 14:36 UTC

On 3/23/2024 12:49 AM, Paul Rubin wrote:
> ... IMHO it would be better for HEX. and H. to both
> work, without HEX. generating unnecessary warning messages.

Given there is a DEC. word, having a HEX. word (that doesn't throw
errors) does seem more intuitive / orthogonal than just the H. found in
other Forth systems.

Re: gforth warning: hex. is obsolete

<nnd$1912abe7$0e04b17e@188caa05314af2d8>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <uti7g8$2eegr$1@dont-email.me> <2024Mar22.073342@mips.complang.tuwien.ac.at> <87frwh75hk.fsf@nightsong.com> <utumib$1s4nd$1@dont-email.me>
From: albert@spenarnc.xs4all.nl
Subject: Re: gforth warning: hex. is obsolete
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$1912abe7$0e04b17e@188caa05314af2d8>
Organization: KPN B.V.
Date: Tue, 26 Mar 2024 17:38:54 +0100
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feed.abavia.com!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 22
Injection-Date: Tue, 26 Mar 2024 17:38:54 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: albert@spenarnc.xs4all.nl - Tue, 26 Mar 2024 16:38 UTC

In article <utumib$1s4nd$1@dont-email.me>,
Buzz McCool <buzz_mccool@yahoo.com> wrote:
>On 3/23/2024 12:49 AM, Paul Rubin wrote:
>> ... IMHO it would be better for HEX. and H. to both
>> work, without HEX. generating unnecessary warning messages.
>
>Given there is a DEC. word, having a HEX. word (that doesn't throw
>errors) does seem more intuitive / orthogonal than just the H. found in
>other Forth systems.

Tradition trumps intuition.

If you design a Forth-like language from scratch that is consistent and
orthogonal, there is a whole bunch more that you have to do.

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 purring. - the Wise from Antrim -

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor