News for hackers. Stuff that matters.
Re:Lua, a Misunderstood Language by jcims on Friday January 15, 2021 @05:24PM (#25797337)
Did you compile to bytecode on or off the device?

I’m thinking about trying to add Lua support to a small motor controller to provide some more advanced capability inside the control loop. But I don’t actually have any experience doing this, and I can’t even decide if I want to try to compile the bytecode on the device or do that off the device and push the blob to the device.

It’s pretty capable microcontroller, STM32G4.

Re:Lua, a Misunderstood Language by lxe on Saturday January 16, 2021 @04:59AM (#25801271)
Off device cross-compilation of the Lua interpreter binary, but no bytecode compilation -- it was interpreted Lua from what I can recall (10 years ago). Can't tell what's possible now, and I feel like a microcontroller might be too much for Lua.
Re:Lua, a Misunderstood Language by contingencies on Friday January 15, 2021 @06:44PM (#25798196)
If anyone wants to be paid for porting https://github.com/nodemcu/nodemcu-firmware firmware to new ARM hardware + ethernet (not wifi) let me know. Other ongoing embedded work available.