3 ms·
I use C day in day out for embedded. So you’ll get no complaints from me! What I’ll find interesting is if the CPyrhon idea is ever pushed to embedded. Because
by SlowRobotAhead 8y ago
I use C day in day out for embedded. So you’ll get no complaints from me!
What I’ll find interesting is if the CPyrhon idea is ever pushed to embedded. Because right now the state of microPython or Zerynth trying to be a one stop shops for micros but in Python isn’t attractive.
Then again, I don’t want or need pythons standard libs - what I really want is all C code with an option to ultra lightweight run scripting in Python. So 90% C, 10% Py.
No option exists yet.
- AlexCoventry 8y agoLua sounds like a good fit.
- SlowRobotAhead 8y agoLua 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.
- AlexCoventry 8y agoThat's a shame. (About Lua. Hope it works out with cython.)
- blattimwind 8y agoIs Pawn still around?
- jononor 8y agoMaybe Cython can be compiled to target microcontrollers via LLVM? Right now I'm usually writing embedded application logic as C++ in a pure functional style. Then exposing this to Python using pybind11 and testing/evaluating it in Python. Which is pretty decent