On Thu, Nov 05, 2026 at 04:23:16PM +0200, Elko Tchernev wrote:
> The results are spectacular,the GP system is about 2x to 3x faster in 1.0.1.
> than in 0.7.3., depending on problem.

Good to hear.  If you want to submit a version of this program for the
appbench benchmark suite, I would love to include it.

> Another thing I noticed - why did you change the warnings to warn that e.g.
> 1. or 0.0 are double cell integers? This is standard, there is no need to
> warn about standard behavior, I think.

Mainly for the benefit of those who write, e.g.,

2.0 fsqrt f.

and expect that 2.0 is an FP number, and are then confused by the FP
stack underflow or, worse, the use of a different FP number than
intended.

Concerning the standard, 1. is standard, 0.0 is not (at least not
Forth-94 and Forth-2012).  But making 0.0 an FP number would be
against traditional usage, and it would also be confusing if 1. is a
double number and 1.0 is an FP number.

Maybe in a decade the standardization committee can find consensus
that only *prefixed* numbers with a "." (e.g., #1.) are double-cell
numbers, and declare the practice of interpreting 1. as double-cell
number obsolescent.  Then a standard later this can be
de-standardized, and systems would be free to interpret 1. as FP
number.  I expect that it will take several more decades (if ever) to
standardize 1. as syntax for FP numbers.

- anton



Reply via email to