Holy cow. And here I'd set aside Python in part because of the difficulty in getting performant executables (I was getting visible lag in a turn-based SDL game ...)
Holy cow. And here I'd set aside Python in part because of the difficulty in getting performant executables (I was getting visible lag in a turn-based SDL game ...)
It's a hassle getting your head around it, and getting it set up, but you'll never look back once you do.
If you rely on PyPy, you get what you're given and then you're stuck. You can't really guess how to rewrite your code to make it faster.
A small blog post I wrote on this: https://honnibal.wordpress.com/2014/10/21/writing-c-in-cytho...
Here's a non-trivial example: https://github.com/honnibal/thinc/blob/master/thinc/learner....
This code is driving a library of very fast NLP tools that I'm writing.
...not really suitable for games.
kivy-ios should have all the details for building everything into one big Python blob, if that's what you need.
Also, using a JIT is not possible on some platforms (iOS, or if the CPU architecture isn't supported by pypy).
Not to say that pypy isn't better for certain tasks of course.