iOS, LuaJIT and FFI inline C

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.
Post Reply
User avatar
Madrayken
Party member
Posts: 126
Joined: Sun May 04, 2014 4:21 pm
Location: Oakland CA
Contact:

iOS, LuaJIT and FFI inline C

Post by Madrayken »

Hi folks,

I'm a bit confused. I believe that the iOS version of 0.10 isn't able to use some aspect of LuaJIT (or all of it, or has that changed with the latest version of Love2D?). If LuaJIT is disallowed, does this include the FFI library that would otherwise allow the use of inline C? Or is the disallowing 'passive' - as in, the LuaJIT aspect effectively stops people gaining the speedup, but other things work?

- D
Discord: https://discord.gg/tYfHgXc
Bandcamp: https://madrayken.bandcamp.com/
Twitter: @Fluttermind
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: iOS, LuaJIT and FFI inline C

Post by bobbyjones »

JIT is disabled. Everything else still works though. And is still faster than regular lua. Although without JIT, FFI will be slow. Because of that you can't really use FFI anywhere you need it to be fast. JIT is also disabled on Android due to it being unstable.
User avatar
Madrayken
Party member
Posts: 126
Joined: Sun May 04, 2014 4:21 pm
Location: Oakland CA
Contact:

Re: iOS, LuaJIT and FFI inline C

Post by Madrayken »

Cripes. That's a shame, on all counts. Thanks for explaining.
Discord: https://discord.gg/tYfHgXc
Bandcamp: https://madrayken.bandcamp.com/
Twitter: @Fluttermind
Kyamel
Prole
Posts: 1
Joined: Thu Jan 09, 2025 2:32 pm

Re: iOS, LuaJIT and FFI inline C

Post by Kyamel »

bobbyjones wrote: Tue Feb 02, 2016 4:35 am JIT is disabled. Everything else still works though. And is still faster than regular lua. Although without JIT, FFI will be slow. Because of that you can't really use FFI anywhere you need it to be fast. JIT is also disabled on Android due to it being unstable.
Can explain me the reasons for luaJIT be unstable on Android? I want to embed it on a Android project, would be great to have that knowledge from a well stabilished product like Love2D.
User avatar
pgimeno
Party member
Posts: 3710
Joined: Sun Oct 18, 2015 2:58 pm

Re: iOS, LuaJIT and FFI inline C

Post by pgimeno »

Kyamel wrote: Thu Jan 09, 2025 2:35 pm Can explain me the reasons for luaJIT be unstable on Android? I want to embed it on a Android project, would be great to have that knowledge from a well stabilished product like Love2D.
You're replying to a post from 2016. The ARM JIT compiler had some unstabilities back then, but it has since been fixed.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests