Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #538553

Re: a couple of LC filter progs

From John Larkin <jjlarkin@highlandtechnology.com>
Newsgroups sci.electronics.design
Subject Re: a couple of LC filter progs
Date 2019-04-07 14:53 -0700
Organization highland technology
Message-ID <3srkaelmkd8brc6i1jbdm3eio9dlcbget6@4ax.com> (permalink)
References (6 earlier) <pnbkaehon75kiil4lngfot8t7i6ugcfajn@4ax.com> <0001HW.225A81ED003A767D70000E6E32EF@news.giganews.com> <q8dijg01967@drn.newsguy.com> <qhmkae1mkr8pfknv186ganulorjdbtti12@4ax.com> <0001HW.225A9E5400411EAC70000E6E32EF@news.giganews.com>

Show all headers | View raw


On Sun, 07 Apr 2019 17:08:36 -0400, Joseph Gwinn
<joegwinn@comcast.net> wrote:

>On Apr 7, 2019, John Larkin wrote
>(in article<qhmkae1mkr8pfknv186ganulorjdbtti12@4ax.com>):
>
>> On 7 Apr 2019 12:21:20 -0700, Winfield Hill<hill@rowland.harvard.edu>
>> wrote:
>>
>> > Joseph Gwinn wrote...
>> > >
>> > > How did you do that? Basic is an interpreted language...
>> >
>> > Microsoft introduced QuickBasic, an excellent compiler
>> > version, with proper compiled-langauge features, in
>> > the mid 80s. In the late 80s they brought out BC, a
>> > Basic Compiler, which was very advanced. Not especially
>> > cheap, but well worth the money. No line numbers and
>> > one would rarely use GOTOs, which went to labeled
>> > statementa if you did use them.
>> >
>> > The Windows version became VisualBasic, which then
>> > combined with the other Microsoft compilers.
>> >
>> > John can tell you about PowerBasic, which took things
>> > a few steps further.
>>
>> It's a serious super-optimized compiler, with many data types and
>> "modern" constructs, like CASE and WHILE and TRY...CATCH. The compiler
>> is written in PowerBasic. I can run non-trivial FOR loops at 100 MHz.
>>
>> The guru was Bob Zale, who authored Turbo Basic but died in 2012. I
>> doubt it will last a lot longer.
>>
>> Python is good (and looks a lot like Basic!) but most versions are
>> still interpreters. I think 1 MHz loops are possible. There are now
>> some Python compilers.
>>
>> Python would be great for embedded systems. We use it in all our
>> automated test stands.
>
>Ahh. Thanks. The Basic of my youth could not be compiled (because it had some 
>dynamic syntax that required access to the executing runtime), but those 
>awkward constructs seem to have withered away, and we now have compiled 
>Basic.
>
>This Basic seems to be evolving towards Fortran.
>
>Hmm. One must be careful of that word "compiled". In this case, does it 
>mean compiled down to machine code, or to some kind of bytecode that is 
>executed by a runtime engine (like Java)?

x86 machine code. You can also insert inline ASM statements, which is
occasionally useful. In asm, you can refer to Basic variables or
labels by name.

>
>> PowerBasic beat it on run speed by over 3:1.
>
>3:1? Something is still amiss. For something as simple as averaging, the same 
>algorithm programmed in a pair of compiled language, ought to yield roughly 
>equal speeds. Unless the algorithm is biased toward one or the other 
>language. In particular, algorithms developed on one language often prove 
>awkward if transliterated into a different language.

The c guy played with code and compiler switches for a day and got
close.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-05 19:55 -0700
  Re: a couple of LC filter progs "John Miles, KE5FX" <jmiles@gmail.com> - 2019-04-06 20:07 -0700
    Re: a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-07 07:47 -0700
      Re: a couple of LC filter progs Winfield Hill <hill@rowland.harvard.edu> - 2019-04-07 08:46 -0700
        Re: a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-07 09:40 -0700
          Re: a couple of LC filter progs Winfield Hill <hill@rowland.harvard.edu> - 2019-04-07 09:49 -0700
            Re: a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-07 10:17 -0700
              Re: a couple of LC filter progs Joseph Gwinn <joegwinn@comcast.net> - 2019-04-07 15:07 -0400
                Re: a couple of LC filter progs Winfield Hill <hill@rowland.harvard.edu> - 2019-04-07 12:21 -0700
                Re: a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-07 13:24 -0700
                Re: a couple of LC filter progs Joseph Gwinn <joegwinn@comcast.net> - 2019-04-07 17:08 -0400
                Re: a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-07 14:53 -0700
                Re: a couple of LC filter progs Joseph Gwinn <joegwinn@comcast.net> - 2019-04-08 22:37 -0400
                Re: a couple of LC filter progs "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-04-09 00:57 -0500
                Re: a couple of LC filter progs Joseph Gwinn <joegwinn@comcast.net> - 2019-04-09 10:44 -0400
                Re: a couple of LC filter progs "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-04-09 14:50 -0500
                Re: a couple of LC filter progs Gerhard Hoffmann <dk4xp@arcor.de> - 2019-04-09 23:02 +0200
                Re: a couple of LC filter progs "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-04-09 19:30 -0500
                Re: a couple of LC filter progs Gerhard Hoffmann <dk4xp@arcor.de> - 2019-04-10 02:55 +0200
                Re: a couple of LC filter progs upsidedown@downunder.com - 2019-04-10 07:40 +0300
                Re: a couple of LC filter progs Gerhard Hoffmann <dk4xp@arcor.de> - 2019-04-10 11:26 +0200
                Re: a couple of LC filter progs upsidedown@downunder.com - 2019-04-10 21:20 +0300
                Re: a couple of LC filter progs Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-04-10 11:50 +0300
                Re: a couple of LC filter progs Joseph Gwinn <joegwinn@comcast.net> - 2019-04-11 09:15 -0400
    Re: a couple of LC filter progs Simon S Aysdie <gwhite@ti.com> - 2019-04-07 10:22 -0700
  Re: a couple of LC filter progs "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-04-07 00:41 -0500
    Re: a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-07 07:54 -0700
  Re: a couple of LC filter progs Clifford Heath <no.spam@please.net> - 2019-04-07 17:56 +1000
    Re: a couple of LC filter progs John Larkin <jjlarkin@highlandtechnology.com> - 2019-04-07 07:55 -0700
      Re: a couple of LC filter progs Clifford Heath <no.spam@please.net> - 2019-04-08 07:59 +1000
        Re: a couple of LC filter progs John Larkin <jjlarkin@highland_snip_technology.com> - 2019-04-08 10:58 -0700
  Re: a couple of LC filter progs Simon S Aysdie <gwhite@ti.com> - 2019-04-07 10:03 -0700

csiph-web