9
velian
5y

Why isn't the Lua scripting language widely used in the industry? It's flexible, modular and it's packages aren't bad; seems like a great fit.

Comments
  • 8
    One thing is that there are no shortage of scripting solutions and many either go with the classical ones or create there own.

    We actually looked into using lua or js but at the time we could not find a reliable sandbox.

    There where many example but no finished ready to use only basic example on how to create on leaving the actual implementation up to the user. But the implementation required knowing which commands could be dangerous.

    And since we anyway did not need all the possibilities if either we built our own.
  • 3
    As much as this hurts me to say... Python...

    (Lua is way better in my mind though)
  • 1
    @lxmcf I love both. But I use Lua more for tinker projects and game modding, Python for pipeline automization
  • 6
    It's used rather widely, I think people just don't like managing packages, so the allure of Python and it's double-d sized libraries wins quite a lot.

    Lua is used in places where hardware usage, maily memory consumption, needs to stay low, but development needs to remain easy, like games and (surprisingly) embedded devices.

    The interpreter for Lua is like 50kb. With all the bells and whistles, if I remember correctly (Compiled from source on Windows not too long ago).

    Python is much larger. It uses more storage and more memory. While it has more stdlib, which implements efficient algos, it can save on CPU usage, surprisingly. This isn't guaranteed though, whatsoever. Simply implementing the algos correctly in Lua nullifies this argument. However, that requires you actually to implement them, which is a development cost.

    Tldr python is used everywhere Lua isn't required.

    Lua is the skinny, sexy babe who ain't as bright as her thicc sister, Python.
  • 1
    @AlgoRythm and then there is js ...
  • 4
    @Voxera The milf who's ended up in everyone's bed at some point, picking up every disease available
  • 0
    because it's lua

    that's why
  • 0
Add Comment