Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Karl's version of Parkinson's Law: Work expands to exceed the time alloted it.


devel / comp.lang.forth / Eliminating FDUP F*

SubjectAuthor
o Eliminating FDUP F*Krishna Myneni

1
Eliminating FDUP F*

<uk7edo$rq42$1@dont-email.me>

  copy mid

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

  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: krishna.myneni@ccreweb.org (Krishna Myneni)
Newsgroups: comp.lang.forth
Subject: Eliminating FDUP F*
Date: Wed, 29 Nov 2023 07:30:32 -0600
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uk7edo$rq42$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 29 Nov 2023 13:30:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8fce5ed209fefad1e9b2787a09304b45";
logging-data="911490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193uQ3bMRgpjOMk/KvXyuSg"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:+rA2PkVGGgw2UYO6AIzF9fU2kAQ=
Content-Language: en-US
 by: Krishna Myneni - Wed, 29 Nov 2023 13:30 UTC

Use of the sequence "FDUP F*" is ubiquitous in Forth scientific code for
lack of a common word which squares an fp number. This not only is less
readable but does not convey as much meaning to anyone who is reading
the code.

I've updated the FSL modules in kForth (32, Win32, and 64) to remove use
all instances of "FDUP F*" with the (built-in) word FSQUARE. Some FSL
modules provided definitions of FSQR for the same function (by MHX) and
I replaced these instances with FSQUARE which I find more readable and
less error-prone due to the proximity of FSQR to FSQRT.

--
Krishna Myneni

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor