Skip to content

Comment on PicoC: a very small C interpreter for scriptingparent

Comments

Hey David, what I think it's cool about picoC is that you can use it in places where you need to script at "hardware" level, like in robotics, embedded systems, and alike.

Otherwise it is probably better to use Lua for instance, since I bet it is much faster (I just read part of the PicoC implementation and it is a pretty straightforward interpreter, very cool to read but hardly the faster) and safer.

Lua can and is used in robotics, embedded system and alike. Take a look at: * pbLua, for Lego Mindstorm (http://www.hempeldesigngroup.com/lego/pblua/) * eLua for small MCU (http://www.eluaproject.net/)

Presumably, it wouldn't be that hard to create some Lua functions to interface with memory addresses, I would think.

Yes but it's a pain to write complex code accessing memory when you need high level functions, can't simply cast pointers to C structures and alike.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.