3 ms·
> why use Lua instead of something like mruby The main reason is momentum - Lua has been the de-facto standard embeddable language for at least 15 years. For e
by pansa2 5y ago
> why use Lua instead of something like mruby
The main reason is momentum - Lua has been the de-facto standard embeddable language for at least 15 years. For example, it's used in World of Warcraft which was released in 2004.
Another reason is the quality of the implementation - Lua has very few bugs [0], whereas Shopify tried to embed mruby and had to give up because it had too many security holes [1].
Finally, Lua is a complete language in itself, with a guidebook, reference manual and so on. Mruby (and MicroPython) are less well-known. Plenty of people know Ruby or Python, but if you use the smaller implementations, you never know when your code might hit a language feature that they don't support.
[0] https://www.lua.org/bugs.html https://www.lua.org/bugs.html
[1] https://brandur.org/fragments/shopify-mruby https://brandur.org/fragments/shopify-mruby