[OT] suggestions for a programmable drone on a budget?
Dmitry Olshansky via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 21 14:35:02 PST 2014
20-Nov-2014 03:08, Mike пишет:
> On Wednesday, 19 November 2014 at 23:31:12 UTC, Adam D. Ruppe wrote:
>
>> But then again, you aren't going to be running a drone on Javascript
>> and Scratch anyway!)
>
> According to this, Javascript looks feasible: http://www.espruino.com/
Well, it's a long shot from full EcmaScript v3. Notably can't extend
built-in objects such as Array etc. Interpretation speed is also not
satisfying. Then of course the question of extending this
interpreter with more low-level drivers is not thrilling (back to C).
I guess LUA would be a better due to its minimalism and it wouldn't have
to be that crippled. On 1$ 32-bit ARMs it would be a perfect fit, on
8-bit micros may be not so much.
In contrast Forth fares way better then others and is able to run
remarkably fast on these 8-bit chips. But then you need Forth programmers ;)
P.S. We actually used Forth to program the flight controller - an 8-bit
micro with ~256Kb (actually used about 40K) of ROM. Interpreter provided
nice development cycle where we basically tuned the thing literally on
the fly.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list