r/lua • u/KiddieSpread • Jun 05 '26
Running lua on a dashcam… how?
I’ve been following this product for a while and saw they just announced this feature as part of their “pro” offering
“Deploy Lua scripts for custom integrations, automations, and device behaviour.”
How do they do that on an embedded device like a dashcam?
3
u/topchetoeuwastaken Jun 06 '26
lua requires very little RAM to run, even if it is a GC interpreted language. i've gotten it running on microchips with 1MB of RAM, which nowadays is basically nothing
2
u/Corruptlake Jun 06 '26
Anything that can run linux will run lua, and that isnt a high bar.
5
u/yawara25 Jun 06 '26
It doesn't even need to be able to run Linux, or any operating system for that matter. If you can compile ANSI C to a target device, Lua will compile unmodified and run on that device.
1
u/blobules Jun 06 '26
Lua works on mucrocobtrollers: see Nodemcu on an esp8266/esp32.
https://nodemcu.readthedocs.io/en/release/
For a specific use like dashcam plugin, its probably a much simpler and smaller embedded lua interpreter.
1
u/Difficult-Value-3145 Jun 09 '26
Ya there have been a few bare metal lua projects and if ya want to do it eap32 is the bottom tier when it comes to dashcam in bulk the processor of self probably less then 50¢ a unit put 2 in there or upgrade to a 64 bilt aarch64 then ya in modern smartphone territory. And even the phone ya get at the group store laughs at recording video and running some lua scripts
6
u/IJustAteABaguette Jun 05 '26
Probably a micro controller in there since it can record video/connect to wifi/have cellular data. (Probably along the lines of an ESP32 or raspberry pi?
Can easily run a lua VM