5 ms·
Embedding a Lua (or similar) interpreter is a somewhat common method in the games world. This allows modders and develipers to easily add scripts which can use
by captaindiego 5y ago
Embedding a Lua (or similar) interpreter is a somewhat common method in the games world. This allows modders and develipers to easily add scripts which can use APIs exposed to Lua.
- nassimsoftware 5y agoI'm curious to know why lua would be good compared to python for this purpose?
- Jensson 5y agoLua is made to be embedded into another program and makes that easy, python is not. Python is for writing glue code, Lua is for writing code to be glued together.
- nassimsoftware 5y agoOh I see, thanks for the explanation!
- iamevn 5y agohere's a good post on the topic (from 5 years ago but things haven't changed too much afaik) https://eev.ee/blog/2016/04/30/embedding-lua-vs-python/ https://eev.ee/blog/2016/04/30/embedding-lua-vs-python/