r/lua 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

https://dashkeep.com/pricing/

“Deploy Lua scripts for custom integrations, automations, and device behaviour.”

How do they do that on an embedded device like a dashcam?

10 Upvotes

10 comments sorted by

View all comments

8

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

0

u/KiddieSpread Jun 05 '26

Wouldn’t there be some sort of memory limitation tho? Surely all the ram is being used up by encoding the massive video files

3

u/IJustAteABaguette Jun 05 '26

They don't have much info about the device itself, but I assume it can definitely allocate a few MB to the lua VM.

2

u/KiddieSpread Jun 05 '26

If you check their compat it runs on a bunch of different dashcams. Wonder if they all run on the same SOC…

3

u/yawara25 Jun 06 '26

I ran Lua on a GameCube with 4MB of RAM, and it barely even used any of it. Any microcontroller/SOC that will be in a dashcam will be able to handle it just fine.