upgrade to lua 5.2 already

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Macunfadebo
Prole
Posts: 18
Joined: Wed Nov 07, 2012 10:24 pm

upgrade to lua 5.2 already

Post by Macunfadebo »

I need bitwise operations
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: upgrade to lua 5.2 already

Post 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
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: upgrade to lua 5.2 already

Post 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.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: upgrade to lua 5.2 already

Post 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.)
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: upgrade to lua 5.2 already

Post 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.
When I write def I mean function.
Macunfadebo
Prole
Posts: 18
Joined: Wed Nov 07, 2012 10:24 pm

Re: upgrade to lua 5.2 already

Post 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..
User avatar
mickeyjm
Party member
Posts: 237
Joined: Thu Dec 29, 2011 11:41 am

Re: upgrade to lua 5.2 already

Post 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)
Your screen is very zoomed in...
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: upgrade to lua 5.2 already

Post 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.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: upgrade to lua 5.2 already

Post by Jasoco »

So are there drawbacks to switching to LuaJIT instead of Lua 5.2? I love the speed boost LuaJIT gives us.
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: upgrade to lua 5.2 already

Post 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.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 5 guests