Death, on 15 April 2014 - 05:40 PM, said:
But, that is a good point - Lua is not really an OOP language, and most people fail to realize that it is up-to-par with speed in other languages. A reason for this is because of how minimalistic it is. If you want to unlock Lua's OOP and other things, prepare for a slightly lower execution time. I will still be working on my version of OOP implementation, however
On topic, my favorite langauge syntax is Lua, as it's the one that got me started. I'm not saying I like Lua as a language, it's still missing a lot of things, but the syntax is one I have come to like.
Part of the problem is Lua's compiler. The compiler is designed to compile quickly (so people can do things like command line calculators and REPL) but sacrifices code optimisation. It also does not support complex datatype construction, it just exposes arrays and tables as is when it could be doing magic behind the scenes to allow people to actually define classes and have them implemented via Lua's arrays, treating the arrays like how C/C++ uses blocks of allocated bytes for creating structs/classes.
On another note regarding Lua's speed, JLua is not as fast as Lua when taken as is, but I believe the JLua JIT compilation eventually makes the code run faster than Lua. There is however a C implementation of Lua that is JIT compiled, which is almost certainly faster still.
Just a few thoughts to mull over. When you know how Lua works under the hood it makes it easier to see where the OO potential lies.
Myrddraall, on 17 April 2014 - 04:25 PM, said:
What about when whitespace is the syntax: [link]