Sujet : Re: Parsing timestamps?
De : stephen (at) *nospam* vfxforth.com (Stephen Pelc)
Groupes : comp.lang.forthDate : 11. Jun 2025, 12:39:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <102bpu4$1uut1$1@dont-email.me>
References : 1 2 3 4
User-Agent : Usenapp for MacOS
On 10 Jun 2025 at 22:56:28 CEST, "LIT" <LIT> wrote:
3. As Mr. Pelc remarked, stack operators are faster.
This is what Mr. Pelc remarked, regarding such style
of programming - yes, many years ago I was guilty of
that too - already 15 years ago:
https://groups.google.com/g/comp.lang.forth/c/m9xy5k5BfkY/m/FFmH9GE5UJAJ
"Although the code is compilable and can be made efficient,
the source code is a maintenance nightmare!"
Maybe he changed his mind since that time - well, since
he's here, you may want to ask him a question.
I take the last paragraph as a sort of passive-aggressive asking
of some indirectly
asked question. Hence I don't really know what your/the question
is. Never mind,
you opened the box.
Of course I change my mind in 15 years. I'm a human being and so
am entitled to
do so and will do so.
Working code beats all. Clear maintainable code that is easy to
understand is
best. I am stil maintaining 40 year old code and my brain is not
as fast as it used
to be. Keep it simple. Poking around in a Forth source tree of 1.4
million lines
of source code is not what I want to do.
Once twp implementation techniques provide performance within
(say) a factor of
1.5 or 2 of each other, I stop worrying. Short words are better
than long ones.
The locals or Forth stack discussions between Anton and myself
show up a design
flaw I made 30 years or more ago when the VFX native code
generator was new.
The use of ADDR <local> to return the address of the local is a
mistake that can
be replaced by a LOCAL[ size ] buffer. When this is done, code
generation of
locals can become significantly better. However, I'm not going to
wreck client
code for it. My successors can argue about it.
On Usenet, I take people who use their real names more seriously
than those who
do not. Just get a better flame-proof suit and stop being so
precious.
Stephen
-- Stephen Pelc, stephen@vfxforth.comWodni & Pelc GmbHVienna, AustriaTel: +44 (0)7803 903612, +34 649 662 974http://www.vfxforth.com/downloads/VfxCommunity/ free VFX Forth downloads