3 ms·
I've looked at Lua in the past. I chose not to spend time learning it because it doesn't seem to offer anything. It's basically Python with a smaller footprint
by bouncingsoul 19y ago
I've looked at Lua in the past. I chose not to spend time learning it because it doesn't seem to offer anything. It's basically Python with a smaller footprint and fewer libraries, as far I can tell.
The small footprint seems to be the most touted feature. I'm sure it's useful if you need it, but if not, I don't see the point.
- dhouston 19y agoi had the same reaction (lua resembling python but with a focus on small footprint and a much smaller standard library.) having "batteries included"/mature web frameworks often trumps the innate benefits of the language, i.e. other people who have spent thousands of hours on mostly boring glue -- ORMs, unicode support, templating engines, caching, getting around browser quirks -- to enable you to focus on your app. furthermore, you're generally going to be bounded by IO/the database or RAM or some other factor in which case the speed of the language is mostly irrelevant. it's certainly possible to do web development in any language, but why bother swimming upstream when python/php/ruby do a lot of the hard work for you? it's hard enough just to write your application without having to write the infrastructure beneath it too.
- richcollins 19y agoThere are probably performance improvements over python: http://luajit.org/luajit_performance.html http://luajit.org/luajit_performance.html
- rtf 19y agoThe other way to look at it is that Lua has a simple enough binding interface that it's like a "high-level layer on top of C." So you can write C, or write Lua, and slop things around between them as necessary, run multiple interpreters, whatever you feel like. Python is more focused on extending the language as a singular entity, and (not having actually written extensions) it seems to have more strenuous requirements. Right now I'm focused on haXe, though, cause with that language, you get several platform options, including a Lua-like interpreter(Neko).
- tehmoth 19y agoin what way does it resemble python? if anything it resembles pascal with a (small) dash of perl.