Re: Larkin, Power BASIC cannot be THAT good:



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


.


Quantcast