3 ms·
Say you were to embed a lua engine today. Which implementation would you choose? I also consider syntax important. So if you were to choose what seemed sane, bu
by martinjc 3mo ago
Say you were to embed a lua engine today. Which implementation would you choose? I also consider syntax important. So if you were to choose what seemed sane, but also something you saw working in 5 years.
I am asking because i want to implement plugins in my media server, however i want to guard them in vm's i can control.
- krapp 3mo agoMy personal opinion, take as you will... If what you're doing involves any kind of C interop, it's a lot easier to write an API layer in Lua with LuaJIT than it is to do from C with standard Lua. And there's no reason to assume LuaJIT will stop working any time soon. Unless you actually need any of the more modern features of Lua then I'd say go with LuaJIT.
- martinjc 3mo agoThe server is actually written in PHP. There is a lua module for php but it has not seen any love since 2020. Thank you for your advice. Will have to dig to understand what it would take to write an interop for PHP.