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


Groups > sci.electronics.design > #466004

Re: Hardware scripting (a better Arduino)

Subject Re: Hardware scripting (a better Arduino)
Newsgroups sci.electronics.design
References <LEt4B.72469$9S6.22388@fx02.iad>
From Tom Gardner <spamjunk@blueyonder.co.uk>
Message-ID <qYP4B.48754$tu4.23113@fx35.am4> (permalink)
Organization virginmedia.com
Date 2017-06-28 16:30 +0100

Show all headers | View raw


On 27/06/17 15:07, bitrex wrote:

> I was thinking that since little uPs are really more like programmable hardware
> rather than general purpose computers, if one's looking to make a
> microcontroller language for the everyman it doesn't really make sense to derive
> it directly from a general purpose systems programming language like C/C++.

There is a general philosophical question: is it better to create
- a domain-specific language or
- a domain-specific library in a standard language

Without exception, all the "let's allow easy scripting"
(before or after product delivery) using our own DSLanguage
have speedily end up being a disgusting mess that even
the /creators/ no longer understand. I've seen two at close
quarters, and narrowly avoided creating one myself.

Even if a DSLanguage isn't an unholy mess, nobody else
will want to work with it, there is zero tool support,
unless you create it yourself, and you'll have to train
people to use and extend it.

OTOH a DSLibrary comes with all the usual tool support,
people /expect/ to use DSLibraries, and the training
and support are the essential minimum.

The exception to DSLanguages being universally crap
is that well-defined /model/ based languages based on
standard concepts can sometimes be beneficial. Classic
examples are those based on FSMs and - particularly
relevant in this case - ladder logic.


> And then the logic for how the external hardware interacts could be written in a
> very abstract stack machine language, similar to Forth or PostScript, or a
> programmable RPN calculator.

Stick to Forth rather than invent a manky DSLanguage.

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


Thread

Hardware scripting (a better Arduino) bitrex <bitrex@de.lete.earthlink.net> - 2017-06-27 10:07 -0400
  Re: Hardware scripting (a better Arduino) Rob <nomail@example.com> - 2017-06-27 16:25 +0000
  Re: Hardware scripting (a better Arduino) Don Y <blockedofcourse@foo.invalid> - 2017-06-27 10:12 -0700
  Re: Hardware scripting (a better Arduino) Clifford Heath <no.spam@please.net> - 2017-06-28 11:01 +1000
    Re: Hardware scripting (a better Arduino) bitrex <bitrex@de.lete.earthlink.net> - 2017-06-28 11:08 -0400
      Re: Hardware scripting (a better Arduino) Don Y <blockedofcourse@foo.invalid> - 2017-06-28 10:51 -0700
        Re: Hardware scripting (a better Arduino) bitrex <bitrex@de.lete.earthlink.net> - 2017-06-28 15:56 -0400
          Re: Hardware scripting (a better Arduino) Don Y <blockedofcourse@foo.invalid> - 2017-06-28 14:04 -0700
            Re: Hardware scripting (a better Arduino) Don Y <blockedofcourse@foo.invalid> - 2017-06-28 22:15 -0700
              Re: Hardware scripting (a better Arduino) Don Y <blockedofcourse@foo.invalid> - 2017-06-30 12:23 -0700
          Re: Hardware scripting (a better Arduino) David Brown <david.brown@hesbynett.no> - 2017-06-30 10:43 +0200
        Re: Hardware scripting (a better Arduino) Clifford Heath <no.spam@please.net> - 2017-06-29 09:52 +1000
          Re: Hardware scripting (a better Arduino) Clifford Heath <no.spam@please.net> - 2017-06-30 16:49 +1000
      Re: Hardware scripting (a better Arduino) Clifford Heath <no.spam@please.net> - 2017-06-29 09:42 +1000
  Re: Hardware scripting (a better Arduino) Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-06-28 16:30 +0100
    Re: Hardware scripting (a better Arduino) Clifford Heath <no.spam@please.net> - 2017-06-29 09:55 +1000
  Re: Hardware scripting (a better Arduino) Les Cargill <lcargill99@comcast.com> - 2017-07-02 12:50 -0500

csiph-web