Re: Larkin, Power BASIC cannot be THAT good:
- From: John Larkin <jjSNIPlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 23 May 2009 20:50:09 -0700
On Sat, 23 May 2009 21:26:36 -0500, AZ Nomad
<aznomad.3@xxxxxxxxxxxxxxxxxxx> wrote:
On Sat, 23 May 2009 19:11:42 -0700, John Larkin <jjSNIPlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
There is a fundamental difference between goto and gosub. It is an
important one, subroutine invocation saves time and code space without
the biggest problems of goto.
But GOTO is faster than GOSUB.
You can make a very nice state machine with an ON..GOTO (or equivalent
CASE...GOTO) structure that dispatches to a number of snippets, each
of which does its thing ends with a GOTO back to the top of the state
dispatcher. Works like a trained pig.
Unless you're running a processor running in the single digit megahertz,
programmer development time, code reliability and maintainability are
far more important than raw speed. It hardly matters if a subroutine finishes
in 0.0015ms instead of 0.0012 ms when the process being monitored takes 5ms.
BASIC is a shitty language because no two implementations are compatible.
Everything with named variables, constructs, code blocks, parameter passing,
if/then/else, case statements, etc. required proprietary extensions.
Do I have to give all the money back?
John
.
- Follow-Ups:
- Re: Larkin, Power BASIC cannot be THAT good:
- From: AZ Nomad
- Re: Larkin, Power BASIC cannot be THAT good:
- References:
- Re: Larkin, Power BASIC cannot be THAT good:
- From: John Larkin
- Re: Larkin, Power BASIC cannot be THAT good:
- From: Jan Panteltje
- Re: Larkin, Power BASIC cannot be THAT good:
- From: John Larkin
- Re: Larkin, Power BASIC cannot be THAT good:
- From: Nobody
- Re: Larkin, Power BASIC cannot be THAT good:
- From: Phil Hobbs
- Re: Larkin, Power BASIC cannot be THAT good:
- From: JosephKK
- Re: Larkin, Power BASIC cannot be THAT good:
- From: Tim Williams
- Re: Larkin, Power BASIC cannot be THAT good:
- From: JosephKK
- Re: Larkin, Power BASIC cannot be THAT good:
- From: John Larkin
- Re: Larkin, Power BASIC cannot be THAT good:
- From: AZ Nomad
- Re: Larkin, Power BASIC cannot be THAT good:
- Prev by Date: Re: Breaking news: SCIENCE WINS IN TEXAS!! Barely.
- Next by Date: Re: Breaking news: SCIENCE WINS IN TEXAS!! Barely.
- Previous by thread: Re: Larkin, Power BASIC cannot be THAT good:
- Next by thread: Re: Larkin, Power BASIC cannot be THAT good:
- Index(es):