Article View: comp.lang.forth
Article #18Re: You cannot know how many cells a floating-point number takes?
From: Anton Ertl
Date: Wed, 07 Oct 2026 11:01
Date: Wed, 07 Oct 2026 11:01
30 lines
2630 bytes
2630 bytes
marcel hendrix <mhx@iae.nl> writes:
>On 10/7/2026 8:30 AM, Anton Ertl wrote:
>> marcel hendrix <mhx@iae.nl> writes:
>>> Except for the FFL, I have yet to see the first useful library that
>>> needs to know the size of the FP stack.
>>
>> My code for summing up an array needs an FP stack that is deeper than
>> 8 elements for all but the smalles arrays for SHIFT-REDUCE-SUM; for
>> RECURSIVE-SUM, it checks the stack depth, and if it is small, the
>> higher levels of the evaluation move intermediate results from the FP
>> stack before calling the lower-level SUM<n> words which use up to 8 FP
>> stack items.
>>
>> https://www.complang.tuwien.ac.at/forth/programs/pairwise-sum.4th
>>
>
>Did you check if it speeds up the NORMAL() algorithm in the mm.frt
>benchmark?
No. I did check the performance of summing up arrays
<2025Jul16.132504@mips.complang.tuwien.ac.at>. One can use the
pairwise sum technique for speeding up DDOT, and thus the "normal"
matrix multiplication algorithm.
- 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 2026 CFP: http://www.euroforth.org/ef26/cfp.html
Technical Details
Message-ID:
<2026Oct7.130153@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11a28dj$1nh2c$1@dont-email.me> <11a2ioh$vi58$1@dont-email.me> <11a3873$2444s$1@dont-email.me> <2026Oct6.190644@mips.complang.tuwien.ac.at> <11a3dfa$12p0r$1@dont-email.me> <2026Oct7.083013@mips.complang.tuwien.ac.at> <11a57or$157r7$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.lang.forth Subject: Re: You cannot know how many cells a floating-point number takes? Date: Wed, 07 Oct 2026 11:01:53 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 30 Message-ID: <2026Oct7.130153@mips.complang.tuwien.ac.at> References: <11a28dj$1nh2c$1@dont-email.me> <11a2ioh$vi58$1@dont-email.me> <11a3873$2444s$1@dont-email.me> <2026Oct6.190644@mips.complang.tuwien.ac.at> <11a3dfa$12p0r$1@dont-email.me> <2026Oct7.083013@mips.complang.tuwien.ac.at> <11a57or$157r7$1@dont-email.me> Injection-Date: Wed, 07 Oct 2026 11:08:36 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2914666"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JyUbK8kK/+cQr/TvI5cKl"; posting-host="0d602625e1788155471720f12e357c3f" Cancel-Lock: sha1:fBiTFo35JgydwCV06Nia7cd8Qr8= sha256:nBhF2v6XcGTOAipvIhgBHckz4xVsC0rmMqQwlce5KAs= sha1:RYH1uYzjL9+N4/YmoB+qIccwM6o= sha256:+EM7+vk4M8m1hAMDzaqbzudR3G3bjqbBBZMBBWGUNbg= X-newsreader: xrn 10.11