Re: Parsing timestamps?

Liste des GroupesRevenir à cl forth 
Sujet : Re: Parsing timestamps?
De : zbigniew2011 (at) *nospam* gmail.com (LIT)
Groupes : comp.lang.forth
Date : 10. Jun 2025, 10:52:32
Autres entêtes
Organisation : novaBBS
Message-ID : <c1c7c62cccb06058c89b2a2f5048eb92@www.novabbs.com>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Rocksolid Light
Mr. Fifo - self-proclaimed "Mark Twain of Forth"
- has no idea, that writing Forth code doesn't
mean to move bytes around "Back and Forth"
(where did I see that? Let's see... :D ).
>
Stack jugglery means wasting CPU cycles for
moving the bytes around - it's contrproductive.
Variables have been invented to be used. They're
useful, if you didn't notice, or if they didn't
tell you that in your college, or wherever.
>
First, a stack has been invented to be used as well.
..which doesn't deny use of variables where it's useful.

And a canonical
Forth program uses the stack. Tut mir Leid.
You're sorry that you 'have' (IYO) to use the stack
not quite senseful way? They force you to do so?
Poor you.

If you want to use local variables, there are plenty
of languages that use that stuff. Like Python, the
language of champions.
Contact me with your "recommendation" again when you
become appointed of some kind of 'authority' who'll
decide, who should use what. Until then - I'll use
whatever language I'll decide to use at the moment.

Second, there are CPUs that are stack oriented - and using variables
should be wasteful in that case. There are also plenty of CPUs that have
a stack, like Z80, 8080 and friends. Sorry to say, but using ANY
instruction burns CPU cycles. There is no way around that.
Yes, indeed - these CPUs have a stack, and what you've
presented is pointless stack jugglery. We may 'burn CPU
cycles' to do something useful - or, following you (if
anyone would be keen, which I doubt) we could use that
stack for pointless moving the bytes "Back and Forth".

Third, any statement must come with proof. And in this case that means
extended benchmarking. I can tell you beforehand that I've never seen
significant differences between locals and stack. I'm sorry to say that
- but it's true.
Oh, really? That speaks in favor of the most clean solution.

Finally, you have to know that good software comes with MANY qualities,
speed being only one of them. If I have to choose between correct and
fast, there has to be a very convincing argument for the speed
requirement. They didn't tell you that in your college? Oh dear. I'm so
sorry for you! You must have had a miserable life.
Yes, software comes with many qualities - and one of them,
which you didn't mention (maybe you have no clue), is
clarity of the code. The code filled with strings of that
DUPs, SWAPs and ROTs not only works inefficiently, but also
rather quickly becomes unreadable. And then serves as
another example of 'typical write-only Forth code'.
--

Date Sujet#  Auteur
6 Oct 24 * Parsing timestamps?56dxf
6 Oct 24 +* Re: Parsing timestamps?19mhx
6 Oct 24 i+* Re: Parsing timestamps?3dxf
6 Oct 24 ii`* Re: Parsing timestamps?2dxf
7 Oct 24 ii `- Re: Parsing timestamps?1dxf
7 Jun13:38 i`* Re: Parsing timestamps?15B. Pym
7 Jun15:36 i +* Re: Parsing timestamps?12dxf
7 Jun18:07 i i`* Re: Parsing timestamps?11LIT
8 Jun03:38 i i `* Re: Parsing timestamps?10dxf
9 Jun14:21 i i  `* Re: Parsing timestamps?9Hans Bezemer
9 Jun14:34 i i   `* Re: Parsing timestamps?8LIT
9 Jun20:31 i i    `* Re: Parsing timestamps?7Hans Bezemer
9 Jun21:00 i i     `* Re: Parsing timestamps?6LIT
10 Jun03:31 i i      +* Re: Parsing timestamps?4dxf
10 Jun08:32 i i      i+* Re: Parsing timestamps?2mhx
10 Jun09:30 i i      ii`- Re: Parsing timestamps?1dxf
10 Jun11:10 i i      i`- Re: Parsing timestamps?1LIT
10 Jun10:52 i i      `- Re: Parsing timestamps?1LIT
9 Jun13:34 i +- Re: Parsing timestamps?1B. Pym
10 Jun10:18 i `- Re: Parsing timestamps?1B. Pym
6 Oct 24 +* Re: Parsing timestamps?5Ruvim
6 Oct 24 i`* Re: Parsing timestamps?4dxf
6 Oct 24 i `* Re: Parsing timestamps?3Ruvim
6 Oct 24 i  +- Re: Parsing timestamps?1Ruvim
6 Oct 24 i  `- Re: Parsing timestamps?1Ruvim
6 Oct 24 +* Re: Parsing timestamps?6FFmike
6 Oct 24 i`* Re: Parsing timestamps?5FFmike
7 Oct 24 i `* Re: Parsing timestamps?4dxf
7 Oct 24 i  `* Re: Parsing timestamps?3FFmike
7 Oct 24 i   `* Re: Parsing timestamps?2dxf
7 Oct 24 i    `- Re: Parsing timestamps?1FFmike
6 Oct 24 +* Re: Parsing timestamps?2Anthony Howe
7 Oct 24 i`- Re: Parsing timestamps?1dxf
7 Oct 24 +* Re: Parsing timestamps?9albert
7 Oct 24 i`* Re: Parsing timestamps?8dxf
7 Oct 24 i `* Re: Parsing timestamps?7sjack
8 Oct 24 i  `* Re: Parsing timestamps?6dxf
8 Oct 24 i   +* Re: Parsing timestamps?3Ahmed
8 Oct 24 i   i+- Re: Parsing timestamps?1dxf
8 Oct 24 i   i`- Re: Parsing timestamps?1sjack
8 Oct 24 i   `* Re: Parsing timestamps?2sjack
9 Oct 24 i    `- Re: Parsing timestamps?1dxf
8 Oct 24 +* Re: Parsing timestamps?3albert
8 Oct 24 i`* Re: Parsing timestamps?2dxf
8 Oct 24 i `- Re: Parsing timestamps?1Ahmed
9 Oct 24 +* Re: Parsing timestamps?4alaa
10 Oct 24 i+* Re: Parsing timestamps?2dxf
10 Oct 24 ii`- Re: Parsing timestamps?1alaa
16 Oct 24 i`- Re: Parsing timestamps?1Hans Bezemer
18 Oct 24 `* Re: Parsing timestamps?7Gerry Jackson
19 Oct 24  `* Re: Parsing timestamps?6dxf
28 Oct 24   `* Re: Parsing timestamps?5Hans Bezemer
29 Oct 24    `* Re: Parsing timestamps?4dxf
29 Oct 24     `* Re: Parsing timestamps?3Hans Bezemer
30 Oct 24      `* Re: Parsing timestamps?2dxf
31 Oct 24       `- Re: Parsing timestamps?1dxf

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal