Re: [Pyobjc-dev] Python/PyObjC on iOS
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-09-09 15:09:13
|
On 09 Sep, 2010,at 04:56 PM, James R Eagan <jam...@lr...> wrote: You may have heard that Apple will be easing their restrictions on programming languages permitted on iOS. According to their press release[1], which is short on details: > ... we are relaxing all restrictions on the development tools used to create iOS apps, as long as the resulting apps do not download any code. Interesting... This seems to open the possibility that we'll be able to use Python and PyObjC to develop iOS apps, at least as far as policy requirements go. I've quickly browsed to the press release you link to and that seems to indicate that Apple will allow this. Are there any projects in motion to get Python running on non-jailbroken iOS devices? I know Ronald has previously said he has no desire to work on iOS support for PyObjC or to include such changes to the SVN (now hg) because of the policy problems. Since Ronald is already overworked, I assume the first part of this won't change. I'm not working on this and probably won't for the foreseeable future (basicly because I'm overloaded as it is). Now that Apple seems to allow writing apps in python I'm no longer opposed to including patches to enable PyObjC on iOS devices and would be willing to review and apply such patches. I've actually worked a bit on building a running Python interpreter on iOS suitable for use with ad-hoc distribution. My requirements are to be able to run a Python-based application in an iOS device without jailbreaking. This is possible, at least for the core of Python, as long as no dylibs are needed. Unfortunately, that means that C modules that are normally dynamically loaded on import must be statically built into the interpreter. For many libraries, that's easy enough, but most of the code I've seen to actually build relies on "magic" jailbroken ports of things like libffi that I have not been able to reliably build for non-jailbroken environments. Porting libffi is non-trivial if you are not familiar with low-level C code and assembly. If there is already a port for a jailbroken environment is should be possible to get that to work in a "jailed" environment as well. BTW. How good/bad is the performance of Python code on iOS devices? Performance and battery use are the primary reasons I'd be hesitant to use Python code on iOS devices for anything but prototypes. I'm happy to continue working on this project, but I'd rather not re-invent the wheel or duplicate efforts if others are already working in parallel. James [1]: http://www.apple.com/pr/library/2010/09/09statement.html -- James R. Eagan LRI — Bâtiment 490 Université de Paris-Sud XI email: Jam...@lr... 91405 Orsay Cedex — France web: http://www.lri.fr/~eaganj ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sfnet/sfu/intel-thread-sfd _______________________________________________ Pyobjc-dev mailing list Pyo...@li... https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |