Why nobody talks about Lua
51–60 of 78 posts
Re: Why nobody talks about Lua
#52I have trouble finding a use for Lua, even though I like it better as a language than most. The problem is that it isn't a good "starting place" for an app. Instead you write something in C/C++ and say "oh, I wish I had a dynamic language for this part" and then you add Lua on top. And this is part of why Lua is such a compelling language now - by being extension-focused it's been able to iterate the entire language…
>Lua still doesn't really satisfy as a "batteries-included" platform. This is exactly the problem, imo. Lua is a niche language because its benefits only apply to a certain niche, i.e., scripting glue on top of an extant system, because that's where the time investment makes sense. Is Lua so much better that using it is worth losing the convenience of something like Rails or Django? Those things come all bundled up n…
Re: Why nobody talks about Lua
#53We use Lua for embedded scripting in my current project. First I wanted to use Python, but I couldn't figure out how to build our app with MinGW while our Python is Cygwin's.. Lua is very easy to embed, but I think it should be easier to do error handling. We still fail silently on syntax errors in the script..
Re: Why nobody talks about Lua
#54I like Lua as a language. I especially like how easy it is to embed it into another program. I'll be using Lua for scripting my current project. The only thing I really don't like about it is that it treats all numbers as double-precision floats. It can be compiled to use 32-bit ints instead, but I'd really like to have access to both, especially since floating point arithmetic is insanely slow on embedded processors…
Re: Why nobody talks about Lua
#55Re: Why nobody talks about Lua
#56Earlier quoted context omitted.
>Lua still doesn't really satisfy as a "batteries-included" platform. This is exactly the problem, imo. Lua is a niche language because its benefits only apply to a certain niche, i.e., scripting glue on top of an extant system, because that's where the time investment makes sense. Is Lua so much better that using it is worth losing the convenience of something like Rails or Django? Those things come all bundled up n…
you need to realize lua isnt targeted as a batteries included platform, its design philosophy is minimalist, not junk included but customize for your requirements. where lua absolutely excels is when paired with C (not C++) and not used as "scripting glue" but fully integrated and driving the system. it really appeals to minimalistic / keep it simple philosophy guys which isnt the web community. lua is not a one stop…
Re: Why nobody talks about Lua
#57I have trouble finding a use for Lua, even though I like it better as a language than most. The problem is that it isn't a good "starting place" for an app. Instead you write something in C/C++ and say "oh, I wish I had a dynamic language for this part" and then you add Lua on top. And this is part of why Lua is such a compelling language now - by being extension-focused it's been able to iterate the entire language…
If the app you need to script is C++ there are much more appealing options than Lua, which is very C. You get ugly C style code in your C++. QScript, ChaiScript, and projects like boost.python and libperl++, play much better with your C++.
I've considered a number of these for my current app, especially QtScript, Lua and Squirrel, but eventually I settled on embedding a JVM, since it gives me access to a bunch of libraries and lets me use any JVM language (I'm personally using Clojure and Yeti, but users of my app could in theory use other languages).
Re: Why nobody talks about Lua
#58It 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.
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.
Re: Why nobody talks about Lua
#59It 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.
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.
Re: Why nobody talks about Lua
#60I have trouble finding a use for Lua, even though I like it better as a language than most. The problem is that it isn't a good "starting place" for an app. Instead you write something in C/C++ and say "oh, I wish I had a dynamic language for this part" and then you add Lua on top. And this is part of why Lua is such a compelling language now - by being extension-focused it's been able to iterate the entire language…
If the app you need to script is C++ there are much more appealing options than Lua, which is very C. You get ugly C style code in your C++. QScript, ChaiScript, and projects like boost.python and libperl++, play much better with your C++.