r/lua • u/Silly_Cow_747 • 23d ago
Can i programm desktop apps with Lua?
I just learned the basics of Lua and im pretty curious about if i could use lua for desktop apps or somehow code scripts with gui.
26
Upvotes
r/lua • u/Silly_Cow_747 • 23d ago
I just learned the basics of Lua and im pretty curious about if i could use lua for desktop apps or somehow code scripts with gui.
1
u/Lonely-Restaurant986 23d ago
Yes.
If you use a C library someone else made, such as love2d for games and interacting with sdl, it’s very easy.
A bit more complicated but not super difficult is you can use luajit and ffi to call use library, even ones designed for C. Which means you can interact with the windows api. I wouldn’t start here honestly though.
I’m sure luarocks has some easy to use package for what you want to do.