[Haskell-cafe] Embedded haskell?

Mike Meyer mwm at mired.org
Wed Feb 20 20:33:05 CET 2013


I've been working with open source rc aircraft transmitter software,
and in looking at the shortcomings of one of them, started thinking
about embedding a language. There are a number of options that can
work here, like FORTH or a basic. But then I realized that Haskell -
or  similar functional language - could well be a good fit.

The software is meant to let the end user express how the various
inputs - joysticks, switches, trims, knobs - are mapped to values the
radio sends on the various control channels. All the key values are
immutable - you either read them from hardware once in the process of
building a frame to transmit, or you fill them into a frame and
transmit it, then start over for the next frame. You just need to let
the end user express the functions to go from one to the other.

The other restraint is that you need to be able to change the code in
the field, with the only computer available being the embedded one.
You might have a touch-screen, or you might just have cursor  keys.
Either way, actually inputting a program could be interesting.
Similarly, the entire system: compiler, interpreter, whatever - needs
to run on the embedded computer.

A quick google turns up Hume, which seems to be designed for this kind
of thing, though not with the "in the field" restrictions.

Anyone have any other suggestions of software that might fit here?
Experience with any of that software? Other suggestions?

   Thanks,
    <mike



More information about the Haskell-Cafe mailing list