4 ms·
This is really cool. I know Lua is a commonly embedded language for plugins and stuff. So now that we can support Lua powered extensions for web apps, I'd like
by lopatin 10y ago
This is really cool. I know Lua is a commonly embedded language for plugins and stuff. So now that we can support Lua powered extensions for web apps, I'd like to add to the list of naive questions here, coming from someone who's never used the language. What benefits does Lua provide over other langs for such a purpose? Is it the ecosystem of libraries that makes it unique in that respect? Or the actual language lends itself better for user scripting over, say, running JS code through JS-interpreter or just eval-ing validated JS code directly.
- vvanders 10y agoIt's an incredibly composable language through metatables, closures and coroutines. You can implement anything from component based design, traditional inheritance and other paradigms with just those 3 components.
- meric 10y agoThe syntax is very simple. I wrote a hybrid lua/lisp language with it https://github.com/meric/l2l https://github.com/meric/l2l, where Lua expressions can be quoted and quasi-quoted seamlessly. Excuse me for the plug. :)
- john_reel 10y agoLua is perfectly multiparadigm. Anyone who hasn’t tried it should.
- sprobertson 10y agoI only recently realized how much lua I'm using day to day: * nginx modules (proxying rules) * Redis modules (special triggers) * Machine learning with Torch * Embedded systems (ESP8266)