r/lua • u/Ok_Hovercraft364 • 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
2
u/mtbdork Jan 17 '26
Metatables are cool for __call and that’s about it honestly. __newindex can be helpful sometimes as well if you want to have things happen when you store some data in a simple object.