Page 1 of 2

upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 1:45 am
by Macunfadebo
I need bitwise operations

Re: upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 2:32 am
by slime
LuaJIT would be a much better choice. There are even builds of LÖVE which use LuaJIT already: viewtopic.php?f=3&t=8750#p53963

Re: upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 2:51 am
by Jasoco
I second LuaJIT. It makes my math calculations so much faster for my 3D engine. Unless 5.2 is just as fast?

Just pick one that's nice and fast and that's all I care.

Re: upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 7:32 am
by slime
Jasoco wrote:I second LuaJIT. It makes my math calculations so much faster for my 3D engine. Unless 5.2 is just as fast?

Just pick one that's nice and fast and that's all I care.
5.2 is no faster than regular 5.1. I don't believe there is any good reason to want 5.2 instead of LuaJIT, since LuaJIT implements some 5.2 features by default (and more if you ask when compiling it.)

Re: upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 10:43 am
by kikito
Count me in the Luajit camp too. I think some of the backwards-breaking changes in 5.2 are too gratuitous, and Luajit is way faster.

Re: upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 11:40 am
by Macunfadebo
slime wrote:LuaJIT would be a much better choice. There are even builds of LÖVE which use LuaJIT already: viewtopic.php?f=3&t=8750#p53963
thanks, it works great
but if I were to share my .love, I'd have to tell them to use love with luajit instead of regular love..

Re: upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 3:56 pm
by mickeyjm
I also agree with Luajit being used instead of 5.1 by default as it means everyone gets faster results and those with bad PCs (like me) can run a wider range of LÖVE games at a good speed (especially the 3D ones)

Re: upgrade to lua 5.2 already

Posted: Tue Jan 08, 2013 10:06 pm
by Inny
I would like Lua 5.2, but LuaJIT would be a better idea for what people use Love for. In terms of what we'd get from Lua 5.2, I think the _ENV feature is the only thing missing from the most recent version of LuaJIT.

Re: upgrade to lua 5.2 already

Posted: Wed Jan 09, 2013 2:46 am
by Jasoco
So are there drawbacks to switching to LuaJIT instead of Lua 5.2? I love the speed boost LuaJIT gives us.

Re: upgrade to lua 5.2 already

Posted: Wed Jan 09, 2013 4:49 am
by Inny
LuaJit has a limited number of platforms it can run on. But Love runs on less platforms than LuaJit, so it wouldn't be an immediate problem.