Hi Michael -

I'm unclear after reading your message whether you are primarily interested in 
OS X or iOS.

If the latter ( or you are interested in even more cross-platform-ness) you 
might want to know about
Kivy ( http://kivy.org ). Of course (as you are probably aware) you have to 
take a little care with any "interpreted" code system on iOS so as not to run 
afoul of Apple's store guidelines.

Kivy is a highly cross-platform environment based on Python and OpenGL (with 
their own OpenGL-based widget set with behaviors in Python code).  It's classic 
Python (2.7 now, but they have plans for 3).  And apparently there are deployed 
iOS apps in the store.  The idea is: write some python, and press a button and 
get builds for several platforms.

I have a patch that switches out the python with stackless for iOS (and 
hopefully soon Android). I haven't done much testing yet though.

If you are interested in the Python<-->ObjC bridging sort of thing, you might 
want to take a look at their approach:
https://github.com/kivy/pyobjus  which differs from pyobjc primarily in that it 
uses ObjC introspection techniques to avoid having to (ahead of time) compile 
all the ObjC functionality into Python extensions.

Note: I believe they are working hard to release a 1.9 version (including a 
whole new build procedure for iOS) so the comparison of released vs git masters 
is a bit opaque in some areas...


> On Mar 18, 2015, at 10:48 PM, Michael Brian Bentley <[email protected]> 
> wrote:
> 
> Hiya,
> 
> I have written some python code here and there, and have been interested in 
> working with Stackless for a while. At the beginning of this week, I have 
> been spending some non-prime-time hours to put together a project.
> 
> I'm an iOS developer these days, tho I know my way around OS X. I have been 
> setting up an Xcode 6.2 project, and after quite a bit of surfing github, 
> stackoverflow, apple, and so on during the last couple of days, I have some 
> idea what I want to do.
> 
> It looks like to facilitate what I had in mind, Apple provides Xcode as a 
> development IDE to build standalone apps for OS X and iOS, embedding python 
> in a framework along with pyobjc.
> 
> I can create a stackless framework using the brew formula that's over at 
> GitHub Alzakath-homebrew-stackless. (written by Hervé Coatanhay?) That 
> framework doesn't appear to include the pyobjc modules that Apple includes in 
> Python.framework. The brew formula also seems to support 2.7, but not 3.4.
> 
> It also looks like, from comments on the pyobjc mailing list, that pyobjc 
> does not currently work well with stackless python.
> 
> My short term goal is to build some frameworks and then write some test code 
> in swift and/or objc to see if I can get anything to work.
> 
> I might be able to add stuff to Alzakath-homebrew-stackless to get the 
> functional equivalent of Apple's python.framework. Meanwhile, I'd be writing 
> some code against the existing python.framework.
> 
> My goal is to have an app written with a bunch of embedded stackless code 
> running reasonably quickly. I should wind up with some nice results sooner or 
> later. I hope to eventually produce some fast-running embedded stackless code 
> in relatively well self-contained apps. Porting the results to other 
> platforms is not high on the list.
> 
> Ok? Absurd?
> 
> -Mike
> 
> 
> 
> 
> 
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless


_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to