News for hackers. Stuff that matters.
Re:LuaJIT maintainer's take on Apple/Clang by anonymoushn on Thursday August 02, 2012 @02:43PM (#4330277)
You can browse this with dates and with 7 less ads per page here: http://lua-users.org/lists/lua-l/2012-02/msg00597.html
Re:LuaJIT maintainer's take on Apple/Clang by flatline3 on Thursday August 02, 2012 @03:34PM (#4330554)
The LuaJIT maintainer is missing that Apple does not claim any conformance to ARM EABI. Apple's ABI is defined to be based on the AAPCS standard, but Apple makes no claims to it being exact.

In other words, it's not Linux, and it sounds like the LuaJIT maintainer is annoyed that it doesn't follow a common approach used on Linux.

Anyone that works on low-level implementations that sit below the standard platform compiler should expect this kind of thing when supporting multiple platforms.

Source: http://developer.apple.com/library/ios/#documentation/Xcode/...

Re:LuaJIT maintainer's take on Apple/Clang by mikemike on Thursday August 02, 2012 @03:41PM (#4330584)
This is not about Linux. Every brittle OS on ARM uses the standard ABIs. But Apple can't? Gimme a break.
Re:LuaJIT maintainer's take on Apple/Clang by ohmantics on Thursday August 02, 2012 @08:00PM (#4331750)
Apple's ABI for iOS is a custom derivative of APCS, not AAPCS. They do not even try to conform to the AAPCS ABI, nor should they need to. iOS has a soft-float ABI, but uses the float glue names from libgcc, not the EABI names.

This whole thing reads like the LuaJIT guy whining that he has to do some work to port to iOS. The compiler-rt library provides these functions and it shouldn't take him more than 10 minutes to figure out the proper names to use on iOS.

Re:LuaJIT maintainer's take on Apple/Clang by mambodog on Thursday August 02, 2012 @09:33PM (#4332055)
Just so you know, it's the "LuaJIT guy" that you're replying to there.
Re:LuaJIT maintainer's take on Apple/Clang by acqq on Friday August 03, 2012 @08:11AM (#4333634)
That doesn't mean that ohmantics here doesn't have a good point (that it's not realistic to assume that porting to the different platforms doesn't involve some work specific to the platform) and gives the precise information where the soft-float functions on iOS can be found.

I can also understand Mike too that he didn't want to spend the time on that port (I think, because iOS doesn't allow apps any Jiting, thereby limiting the power of LuaJit on iOS). Still the information that ohmantics gives regarding compiler-rt library can help us obtain a balanced view.

Re:LuaJIT maintainer's take on Apple/Clang by krickle on Thursday August 02, 2012 @10:07PM (#4332150)
I don't understand the problem. Did they not document their ABI?
Re:LuaJIT maintainer's take on Apple/Clang by gregholmberg on Thursday August 02, 2012 @06:10PM (#4331316)
Apple is actively trying to fix this problem.

If you know any talented compiler gurus who want to work at Apple, you could refer them. [0][1]

.

[0] "LLVM Backend Compiler Engineer" http://jobs.apple.com/index.ajs?BID=1&method=mExternal.s...

[1] "LLVM Backend Compiler Engineer" http://jobs.apple.com/index.ajs?BID=1&method=mExternal.s...

Re:LuaJIT maintainer's take on Apple/Clang by drats on Thursday August 02, 2012 @08:06PM (#4331772)
I would recommend people don't work for Apple. It's one thing to lie about computing history and say you invented everything so that customers believe it and give you lots of money (which you then use to outsource jobs and stop the company charity program) it's another thing entirely to drink your own kool-aid and start a series of the most embarrassing lawsuits I've ever seen. Apple is now officially not just a dodgy liar, but they are a joke. Work there at your own peril, I personally think they are a complete disgrace.
Re:LuaJIT maintainer's take on Apple/Clang by krickle on Thursday August 02, 2012 @09:58PM (#4332131)
I think regardless of the lies, they had a superior operating system up until Lion. Now their business practices and complete disregard for their developers' comfort is fairly inexcusable. Nor do I like the draconian systems of the App Stores.
Re:LuaJIT maintainer's take on Apple/Clang by tom125 on Friday August 03, 2012 @03:04PM (#4335584)
Well, Apple's stock has increased massively over the past few days of the trial between Apple and Samsung, so the shareholder's can't think it's "embarrassing". Looking at the share price, I'd have thought the shareholders think its going quite well, especially when you think that they didn't have an especially good quarter.
Re:LuaJIT maintainer's take on Apple/Clang by FigBug on Thursday August 02, 2012 @02:22PM (#4330159)
This is 6 months old on a version of XCode that is now two versions out of date. Is there a reason it's being brought up now?
Re:LuaJIT maintainer's take on Apple/Clang by mikemike on Thursday August 02, 2012 @03:12PM (#4330435)
No there's no reason to bring this up now. First, it has been worked around and second, VFP support for the LuaJIT ARM port is already in progress (parts are in the git repo, not enabled yet).
Re:LuaJIT maintainer's take on Apple/Clang by schwa on Wednesday August 08, 2012 @03:51PM (#4357681)
What is the work-around? I'm trying to get luajit working on iOS 6+ on ARMv7 and above...
Re:LuaJIT maintainer's take on Apple/Clang by acqq on Thursday August 02, 2012 @02:51PM (#4330322)
So all ARM processors that Apple uses have the real hardware floating point and LuaJit (which is a very cool engineering feat) which is supposed to speed up the execution of the Lua scripts still uses the "soft-only" calls. How much that slows down LuaJit? I guess the "soft calls" can be redirected to the pure hardware instructions? How big is the speed penalty vs. using the hardware directly?
Re:LuaJIT maintainer's take on Apple/Clang by mikemike on Thursday August 02, 2012 @03:18PM (#4330475)
The initial LuaJIT ARM port was targeted at low- to middle-end ARM devices without an FPU. It took some time to find another sponsor for the VFP port.

Work on VFP and hard-float EABI (armhf) is already in progress and will be available soon.

Re:LuaJIT maintainer's take on Apple/Clang by ohmantics on Thursday August 02, 2012 @07:57PM (#4331732)
Hard-float has worked for quite some time.

All that's happened recently is that the Debian name for it "gnueabihf" is recognized.

Re:LuaJIT maintainer's take on Apple/Clang by malkia on Thursday August 02, 2012 @02:57PM (#4330367)
I think luajit can generate jit code suitable for the current cpu/arch it's running under, no matter what the ABI is. ABI matter is for the API itself, and for the FFI plumbings - e.g. how to call a "C" function that takes and/or returns double/float.

The bigger problem with iOS (and other mobile devices) is that due to sandboxing, JIT is not allowed. Even then though, without JIT, luajit has a very fast interpretter (roughly x3-x4 faster than reference lua, and x2-x3 faster than other commercial lua offerings), but then FFI is somewhat slower (interpretter mode).

Re:LuaJIT maintainer's take on Apple/Clang by pygy_ on Thursday August 02, 2012 @06:07PM (#4331297)
FWIW, Mike Pall (mikemike 'round these parts) is much more than the maintainer of LuaJIT.

He's the sole author of the project, which is being actively developed.

Re:LuaJIT maintainer's take on Apple/Clang by protomyth on Thursday August 02, 2012 @02:49PM (#4330312)
am I missing something or should the title be "LuaJIT linker error on iOS" and the current version of XCode is 4.4 not 4.2 mentioned.
Re:LuaJIT maintainer's take on Apple/Clang by chj on Thursday August 02, 2012 @07:39PM (#4331666)
From what I know without jailbreak iOS doesn't support JIT at all.