Lua - what's the deal?
Page 1 of 112 Replies - 829 Views - Last Post: 08 August 2012 - 10:16 PM
#1
Lua - what's the deal?
Posted 07 August 2012 - 06:20 PM
It seems lite in the book shelves so this is something I would have to pick apart their site for, right?
I really don't have definitive plans for using it, but I figure a scripting language or two might be a fun addition to the tool box.
http://www.lua.org/
.... and yes.. I am reading this now:
http://www.dreaminco...duction-to-lua/
Replies To: Lua - what's the deal?
#2
Re: Lua - what's the deal?
Posted 07 August 2012 - 07:29 PM
#3
Re: Lua - what's the deal?
Posted 07 August 2012 - 07:53 PM
#4
Re: Lua - what's the deal?
Posted 07 August 2012 - 08:46 PM
#5
Re: Lua - what's the deal?
Posted 07 August 2012 - 08:50 PM
#6
Re: Lua - what's the deal?
Posted 07 August 2012 - 08:51 PM
From what I am skimming python is like java... big, OO, feature filled, etc.. a good utility language.. and Lua is small foot prints and "embedded" ( what ever that means).
Hmmmmmmmmmmmmmm..... then there's Iron Python that slides into VS nicely.. mmmmmmmmm
@KYA - do you mean this book?
#7
Re: Lua - what's the deal?
Posted 07 August 2012 - 09:14 PM
Quote
I'd be curious to know if that view survives a deeper soak in python. Try the assignments in the MIT OCW course (consult the readings and the lectures if needed) and see how you feel.
I can see it being more like java than, say, bash is, but writing python doesn't feel much like writing java to me at all. I don't say it's better in all regards, but it's very different.
#8
Re: Lua - what's the deal?
Posted 07 August 2012 - 09:47 PM
#9
Re: Lua - what's the deal?
Posted 08 August 2012 - 04:24 AM
Whenever I think about playing with Lua, I often just check what's out there for Javascript. There are a number of differences between the two, of course, but more is the same than different. And they occupy pretty much the same domain: an embedded scripting language that manipulates data via lower level interfaces.
The benefit of Lua over Javascript is that it's small and easily embedded. It's dead simple; good for when the heavy lifting is being done elsewhere. Its memory model is constrained by design. It tends to be amazingly fast, depending on environment. The only real problem, as you've noticed, is the echoing silence in online community and support.
I found this interesting comparison.
#10
Re: Lua - what's the deal?
Posted 08 August 2012 - 08:21 PM
It's type system and semantics are very much like Javascript but even simplair. it's syntax was somewhat based off of Oberon which is based off of pascal. It seems to get used more in games than Javascript but maybe I'm just being biased.
it's use in embedded systems(check out eLua) because it's so memory efficient for a scripting language.
Crysis 1, FarCry 1(FarCry 2 uses Squirrel which is based off of Lua) all used Lua scripting. here is a much larger list of games it's used in.
sort of in the sense that "everything is a list" in Lisps, "everything is a table" in Lua, but not quite as extreme(although it wouldn't take much code to allow for lisp style code where even the code is a table). it's uses of metatables and tables is really interesting as KYA said. it's generally easy to write generic code simply because there aren't very many data structures that aren't tables(strings and numbers are pretty much it, everything else is either a table or acts like a table because it has a metatable and even strings have metatables).
one of the primary things I use Lua for is making games for Love2D. It's a neat little game engine where you write the entire game in Lua. something else you should check out. It's the best Lua community I've found; if your looking for a more official Lua community then the mailing list might be a place to look but I found the mailing list terribly hard to fallow.
chances are you have software on your computer, most likely a game, that uses Lua.
P.S. it really irks me that the award for Lua references WoW and not tables. KYA came up with the "feet of the table" award but for everyone else voted on the "LuWoW" one...sigh, o well
P.S.S. there is also LuaJIT which is almost as fast as languages like C# and Java...not quite though, dynamic typing tends do that though
This post has been edited by ishkabible: 08 August 2012 - 08:30 PM
#11
Re: Lua - what's the deal?
Posted 08 August 2012 - 08:59 PM
#12
Re: Lua - what's the deal?
Posted 08 August 2012 - 09:21 PM
#13
Re: Lua - what's the deal?
Posted 08 August 2012 - 10:16 PM
|
|

New Topic/Question
Reply






MultiQuote







|