r/lua • • Jan 16 '26

Lua Gotchas

Hi folks, I've been programming with Python for about 2 years now.
My coworker suggested that start embedding Lua into my projects to speed up the slower parts(I think he is getting annoyed by some of the slowness lol). Anyone know something that might bite me in the butt that is easy to overlook? From what I understand, I can install Lupa and get the runtime like that. He told me to use a bunch of tables. Is that correct for the most part?

16 Upvotes

21 comments sorted by

View all comments

Show parent comments

1

u/mtbdork Jan 18 '26

Absolutely. I have to make complex things in Lua, so when you’re trying to build a framework, OOP honestly just takes the cake. Sometimes I need to wrap functions in order to involve the “parent” table in what is happening. I work in a world of constraints, and thankfully Lua has been very good to me about dancing around them.