Pythonista isn't able to execute binaries. That's an obvious restriction that Apple isn't planning on getting rid of any time soon. This means that we can't run native code on Pythonista, just Python. But what if we designed our own bytecode format that could be targeted by compilers, so that we can, in a way, run native code?

That's what Boa is for. It's just a bytecode format that I'm writing a VM/interpreter for. You can check out the project at https://github.com/Seanld/boa (it may not be up yet, but it will be soon). The goal of Boa is to be neutral ground where all source code languages meet. If you write C code, it doesn't matter. You can compile it to Boa bytecode. Writing Java? Compile to Boa bytecode. No matter the source, run it the same.

Obviously there aren't any compilers yet, but maybe this could be a community-driven effort. I thought this would be a good idea. So please, if you want to be able to write C code that can be executed in Pythonista, start working on a compiler for it. You can see more detailed documentation on how Boa's bytecode works in the Github docs at its repository: https://github.com/Seanld/boa.