3 ms·
I am a big Ruby fan but I don't really see how this is enough of an improvement over Lua to pose a serious threat.
by cageface 15y ago
I am a big Ruby fan but I don't really see how this is enough of an improvement over Lua to pose a serious threat.
- mattmanser 15y agoI thought the hivemind was that Lua was bloody awful? Disclaimer: I have never even read some Lua, honest question
- statictype 15y agoIt's not elegant but it's incredibly compact and isolated. I embedded it as a language in an iPhone game (as have many others). Making it bridge with Objective-C was fairly straight-forward and the memory/speed footprint was acceptable for a mobile device.
- stcredzero 15y agoI find it elegant. It's like Javascript with the warts removed.
- statictype 15y agoYeah, it's not bad. Though having array indices begin with 1 annoys me.
- atombender 15y agoIt's like JavaScript with different warts. Examples: Bad at Unicode, arrays start at 1, regexps is a second-class citizen, weird OO, arrays are implemented as hash tables (like PHP), hash tables are weird, no int type, Java-like inflexibility wrt extensibility (no generalization for iteration, for example) etc.
- cageface 15y agoI've only dabbled a bit in Lua but I mostly read very positive things about it and there are tons of success stories of embedded Lua out there. Way more than any other embedded scripting language. Unlike Ruby or Python etc Lua was designed from the ground up for this.
- hartror 15y agoAs others have said, it is small, fast and flexible with a very permissive licence so it is the scripting language of choice for embedded and gaming applications.
- technomancy 15y agoDepends on the audience. There are probably lots of people who know Ruby and would like to be able to use it where they currently can't. It might not be likely to win the hearts of the C++ game engine hackers, but that might not necessarily be the goal.