lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 12/01/15 18:26, John Hind wrote:
The tendency has been to implement a simple command line environment based on lua.exe with libraries to access the hardware essentially forcing the programmer to write a non-terminating polling loop in Lua.

Well, a microcontroller is perhaps the only platform where a polling loop would be at home. If you *need* a polling loop, then use a microcontroller. If on top of a polling loop you have interesting logic, add a SBC for said logic, and make it event-driven with events generated from the microcotroller (say, trough a serial line).

Said this, the urge to cram everything on a microcotroller is strong[1]

Jorge

[1] http://elua-development.2368040.n2.nabble.com/Pure-Lua-multitasking-with-eLua-td7578258.html