Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Lua sounds like a good fit.


Lua for embedded is pretty bad. We tried it, and the all options lacked something.

eLua is out of date and tries to be 90%-100% Lua by wanting you to run the VM exclusively and the micro support is cortex M3 at best where they want you to use their headers and peripheral libs.

No one seems to have the concept of a FFI (foreign function interface) worked out correctly that would allow for 90% C and calling C funcs from Lua.

Lua Proper can’t ever agree on Lua VM or JIT. JIT is bad for embedded because bytecode is really what you want for serialization.

Lua overall seems good but find me a 20-30K ROM non- dynamic memory VM that doesn’t include std lib nonsense you wouldn’t want on a micro (time, strings, etc)... because I looked and didn’t see anything close.

Roll your own is for hobbiests or 30+ person teams.

I’d take Lua or Python, but the lightweight scripting VM isn’t ready for embedded yet.

Which is why I have hopes for Python (bringing this full circle) because of its natural relationship to C.


That's a shame. (About Lua. Hope it works out with cython.)


Is Pawn still around?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: