Hacker News new | ask | show | jobs
by thorwawayrus53 1599 days ago
I don't understand the hype behind lua. I tried scripting vlc plugin and its very painful. No so easy to understand.
2 comments

I think the hype is mostly excellent C integration. Night and day compared to Python.
What are you comparing it to?
Python, JavaScript.
Lua's a little more opaque than Python or JS, a little more flexible, a little more bug-prone, and a lot simpler. But those aren't the reasons VLC and Wireshark and WoW use Lua instead of Python or JS; they use it because it's enormously less costly to embed. Imagine you decide to switch from Lua to Python for your game. Now you have:

- 3600 kilobytes of bloat instead of 110;

- a huge and bug-prone ABI to deal with to make sure Python doesn't inject memory leaks;

- Python assholes publicly shaming you for using an unfashionable version of Python.