Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 14. Sep 2024, 09:40:53
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <66e54c15$1@news.ausics.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
On 14/09/2024 4:19 pm, Anton Ertl wrote:
dxf <dxforth@gmail.com> writes:
On 14/09/2024 4:07 am, Anton Ertl wrote:
Where can I find claims about better performance? All I have read is
claims about worse performance.
>
'Eliminate stack juggling' sounds like an argument for better performance.
Not to me. To me it sounds like a statement about the ease of writing
and reading the code.
The performance of locals vs. stack juggling depends on the
implementation.
...
Surely you mean locals vs. forth. The easiest way to achieve performance
in forth is making your stack operations efficient. 'Stack juggling' is
a visual cue that it's not. I'm sorry that you feel forth isn't readable.