Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Voxera115736yOne 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. -
velian3146y@lxmcf I love both. But I use Lua more for tinker projects and game modding, Python for pipeline automization
-
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. -
@Voxera The milf who's ended up in everyone's bed at some point, picking up every disease available
Related Rants
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.
question
why not
games
industry
business
scripting
lua