Re: Larkin, Power BASIC cannot be THAT good:
- From: Martin Brown <|||newspam|||@nezumi.demon.co.uk>
- Date: Tue, 09 Jun 2009 09:26:44 +0100
John Larkin wrote:
On Mon, 08 Jun 2009 13:32:45 +0200, Fred Bartoli <" "> wrote:
John Larkin a écrit :On Sun, 07 Jun 2009 21:21:53 -0500, AZ NomadWell done!
<aznomad.3@xxxxxxxxxxxxxxxxxxx> wrote:
On Sun, 07 Jun 2009 18:40:47 -0700, John Larkin <jjSNIPlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:.NET is hardly a universal, portable platform. If all you write isOn Sun, 07 Jun 2009 19:44:45 -0500, AZ NomadThat's fine if you never reuse code. Just wonderful if you write
<aznomad.3@xxxxxxxxxxxxxxxxxxx> wrote:
On Sun, 7 Jun 2009 17:29:50 -0500, Tim Williams <tmoranwms@xxxxxxxxxxx> wrote:And what's wrong with "proprietary extensions" if they get work done?"AZ Nomad" <aznomad.3@xxxxxxxxxxxxxxxxxxx> wrote in message news:slrnh2oa19.46c.aznomad.3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxYes, but there's been some progress made in the last forty years.Hah. Interpreters rule. Unbeaten for debugging, especially for the range of constructs you can reconstruct on-the-fly.PowerBasic (the console compiler version) has a couple of niceSheesh. It's a phone call for you. The 70's want their interpreted
built-in PARSE commands.
language technology back.
BASIC is a piece of *** and utterly unuseable unless stacked to the
gills with proprietary extensions.
everything from scratch and never use third party code libraries.
text-mode ANSI C, sure, it's fairly portable... as long as you keep
your ints and longs and stuff under control.
I've got better things to do than write a doubly linked list package for
the hundreth time. I'd rather have a language where I can use
libraries to do the work use use code examples from others.
As an engineer, I'm more interested in number crunching, simulation,
graphics, generating embedded code images, stuff like that. There are
a few nice collections of Basic subroutines around - curve fitting,
FFTs, stuff like that - so I don't always write everything from
scratch. And I do often reuse code.
I haven't used a linked list in decades. PCs are so fast these days
you can waste enormous numbers of cycles on brute-force methods, like
linear searching, to save programming time.
You've just got your ticket for a hiring interview at M$ ;-)
Yes. I expect someone just like Larkin is responsible for the glacially slow graphics and charting in XL2007 (and also for degrading the chart trend line polynomial fit to give the same wrong answer as LINEST).
But my linear searches are 50x as fast as whatever nonsense they are
doing.
Even if that were true then a decent Shell sort worst case O(N^1.5) algorithm would beat your poxy O(N^2) algorithm when N > 2500. In a real example with random unsorted data as input Shell's sort would be more like O(N^1.3).
And an O(Nlog2N) sort would beat it hollow at N > ~500
You really are clueless about algorithms and their relative speeds.
Linear search or sort by straight insertion is typically only faster for N<50. Hardware engineers tend to code the even slower Bubble sort. It may be fast enough for your small datasets but it doesn't scale well.
Regards,
Martin Brown
.
- Follow-Ups:
- Re: Larkin, Power BASIC cannot be THAT good:
- From: Nobody
- Re: Larkin, Power BASIC cannot be THAT good:
- From: John Larkin
- Re: Larkin, Power BASIC cannot be THAT good:
- References:
- Re: Larkin, Power BASIC cannot be THAT good:
- From: Nobody
- Re: Larkin, Power BASIC cannot be THAT good:
- From: Tim Williams
- 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:
- From: Tim Williams
- Re: Larkin, Power BASIC cannot be THAT good:
- From: AZ Nomad
- 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:
- From: John Larkin
- Re: Larkin, Power BASIC cannot be THAT good:
- From: John Larkin
- Re: Larkin, Power BASIC cannot be THAT good:
- Prev by Date: Re: OT: We need a Sanity Clause...
- Next by Date: Re: Archie Plonked Me
- Previous by thread: Re: Larkin, Power BASIC cannot be THAT good:
- Next by thread: Re: Larkin, Power BASIC cannot be THAT good:
- Index(es):