5 ms·
It seem to me that Lua usage reside primary in the game industry. People who works in the game industry and people who works in web technologies rarely collide
by kiba 17y ago
It seem to me that Lua usage reside primary in the game industry.
People who works in the game industry and people who works in web technologies rarely collide with each other.
- samps 17y agoIt's a shame that it's mostly being used for games. It's got incredible flexibility and power and even the mainline runtime (sans JIT) is surprisingly performant. More people should give it a try.
- m0th87 17y agoPython and Ruby largely continue the class-based object oriented model and are thus easy to pick up if you come from a C++/Java background. While JavaScript is prototype-based, and thus somewhat exotic, it at least maintains the syntactic heritage of C/C++, so it's not as scary as it otherwise might be for beginners. Plus most in the web development background have already known the language for years. Perhaps the reason Lua isn't gaining ground in the web scene is because it's too exotic, however fair that might be. It has a foreign object model and a different syntax. Both of these combined might create the perception that it's difficult to learn. I'm not sure though. For me, I've always been interested in Lua, but I've never picked it up because I never see any web apps made with it.
- iamwil 17y ago_why wrote a web server in lua, just for fun. It's available as a lua rock (like a ruby gem or python egg).
- samps 17y agoGot a link?
- silentbicycle 17y agoI don't see it on LuaRocks ATM, just the Kepler / Xavante stuff. What was it called?
- iamwil 17y agoMy bad. I had a brain fart. He wrote a web framework (not server) for Io, not Lua. http://github.com/whymirror/yown http://github.com/whymirror/yown
- baddox 17y agoI am a novice programmer, but have used Lua for some basic (second- or third-year college programming level) projects, and I found the transition from the very mainstream languages (Java/PHP/Python) extremely easy. That said, I was doing fairly straight-forward imperative programming, so perhaps I never delved deep enough to see the "foreign" parts of Lua. To me, Lua seemed as easy a language to learn as one could hope for.
- stuartjmoore 17y agoLua was used in the original Hulk movie game demo, which made it very easy to hack, and thus, actually fun to play.
- pmjordan 17y agoI don't think it's so much that they rarely collide, it's more that the game industry is NDA-infested. Gaining a public profile as an employee for a developer working on a game for a publisher is a risk. People get fired for lesser things than talking about how Lua helped them in Project X. Spreading knowledge between game developers is easier, though. People move around between companies a lot, and your publisher's team of lawyers is less likely to be present at a conference talk than finding NDA violations by crawling the web.
- NickPollard 17y agoI work for a major worldwide game developer, and our project currently uses Lua for a lot of dynamic scripting and behaviour control (the rest of the game is in C++). I've been pushing for a higher usage of it, as it allows a lot more runtime iterating than with C++, where the compile+link+load times on a project this large are killer, whilst Lua can easily be hot reloaded. Of course, the same goes for any scripting language (I've worked with a proprietary script language at my last dev shop), but I like the fact that lua is light, minimalist, clear and a standard that others will know, but also very extensible. I'd definitely say the the small core and lack of huge external libraries is a good thing, when you're developing for fixed hardware like game consoles.
- fab13n 17y agoLua shines at interfacing with C; it's useful when you've got a high-performance engine in C or C++, and want a friendly programming interface to control it. That's obviously the case for games and their 3D / physics engines, but Lua is steadily gaining momentum in the embedded devices world, where CPUs are also pushed to the limits of their (lesser) capabilities. Web developers have already put most of their high performance wizardry in their SQL engines, and already have standardized/comprehensive APIs to these databases; I don't think Lua would bring them much, and certainly not enough to compensate for the loss of Python's or Ruby's existing web-friendly libraries.