Page 1 of 1

Update to LuaJIT 2.0.4?

Posted: Wed Jun 10, 2015 8:22 am
by Whatthefuck
Like the title says, LuaJIT 2.0.4 was released somewhat recently and it has a bunch of various fixes/improvements. (http://luajit.org/changes.html)

Is there a chance you guys could update LuaJIT to 2.0.4 in 0.10.0?

Thanks in advance for the answer.

Re: Update to LuaJIT 2.0.4?

Posted: Wed Jun 10, 2015 8:34 am
by kikito
That's a good point. From what I read, 2.0.4 is all bugfixes, so it should be an easy update (not that I know anything about C/C++)

Re: Update to LuaJIT 2.0.4?

Posted: Wed Jun 10, 2015 8:43 am
by Fenrir
As for the lastest version lua is provided as an external library (at least on Windows), just switching the lua51.dll/so should work, no? Is there any pre-build binaries somewhere?

Re: Update to LuaJIT 2.0.4?

Posted: Wed Jun 10, 2015 4:40 pm
by Whatthefuck
Fenrir wrote:As for the lastest version lua is provided as an external library (at least on Windows), just switching the lua51.dll/so should work, no? Is there any pre-build binaries somewhere?
Nah, gotta build that shit.

Re: Update to LuaJIT 2.0.4?

Posted: Wed Jun 10, 2015 5:04 pm
by bartbes
Can I gloat about the wonders of dynamic linking? I've been running love against luajit 2.0.4 since the 21st of May.

Re: Update to LuaJIT 2.0.4?

Posted: Wed Jun 10, 2015 5:18 pm
by slime
Indeed, you can replace the version of LuaJIT normally used by LÖVE with your own right now if you want – on all operating systems.

I try to use the most recent versions of all dependencies for new releases of LÖVE, so 0.10.0 will come with LuaJIT 2.0.4 where possible (and LuaJIT 2.1-alpha on iOS, since it's the only version of LuaJIT to fully support iOS.)

Re: Update to LuaJIT 2.0.4?

Posted: Thu Jun 11, 2015 6:30 am
by Whatthefuck
slime wrote:Indeed, you can replace the version of LuaJIT normally used by LÖVE with your own right now if you want – on all operating systems.
What the hell, last time I tried switching .dlls up it resulted in crashes.

Re: Update to LuaJIT 2.0.4?

Posted: Thu Jun 11, 2015 7:17 am
by I~=Spam
Whatthefuck wrote:
slime wrote:Indeed, you can replace the version of LuaJIT normally used by LÖVE with your own right now if you want – on all operating systems.
What the hell, last time I tried switching .dlls up it resulted in crashes.
It shouldn't if you do it right.... luajit was intended to be a drop-in replacement so that a project for lua 5.1 literally just has to replace the lua dll to use luajit instead. I love dynamic linking. :D

Are you sure you didn't remove any wrong dlls? Also what LOVE version did you try this with? If you tried 0.8.0 I think this version uses standard lua 5.2 so it is not compatible with luajit.

Re: Update to LuaJIT 2.0.4?

Posted: Thu Jun 11, 2015 3:10 pm
by jjmafiae
I~=Spam wrote:
Whatthefuck wrote:
slime wrote:Indeed, you can replace the version of LuaJIT normally used by LÖVE with your own right now if you want – on all operating systems.
What the hell, last time I tried switching .dlls up it resulted in crashes.
It shouldn't if you do it right.... luajit was intended to be a drop-in replacement so that a project for lua 5.1 literally just has to replace the lua dll to use luajit instead. I love dynamic linking. :D

Are you sure you didn't remove any wrong dlls? Also what LOVE version did you try this with? If you tried 0.8.0 I think this version uses standard lua 5.2 so it is not compatible with luajit.
it was possible to use luajit with 0.8.0 I remember people doing that (here: viewtopic.php?t=7735&f=4)

Re: Update to LuaJIT 2.0.4?

Posted: Thu Jun 11, 2015 3:31 pm
by bartbes
I~=Spam wrote:If you tried 0.8.0 I think this version uses standard lua 5.2 so it is not compatible with luajit.
We have never shipped a version of love using lua 5.2. This does mean however, that you can swap out luajit and lua 5.1, but not 5.2 (or 5.3) though all of those versions are supported by love at a source level.