Reputation: 101
I developed in Python an algorithm library (+ usage of e.g. pandas and numpy) and I search a way to deploy those algorithms on Android and iOS without rewritting the code native or in any other language.
After exploring several options, I see four major possibilities how to solve the Python migration:
Spanning around these four options, I have several questions:
I know that using native code will be probably the fastest solution whereas automatic generated code may have flaws and is kind of inefficient (and one has always to rely on the maintainer). Nevertheless, I would now prefer the way to keep the Python code as my core as long as I am still in a prototype phase, would be great to hear the community's view!
Upvotes: 1
Views: 298
Reputation: 8091
You've asked a lot of questions, so forgive me for only answering one of them.
Cython won't save you any work in this situation. Although it can translate Python code into C, the generated code consists mostly of calls to the Python C API. So you'd still need to manage all the details of including the libpython
library in your app, loading it and initializing it.
Upvotes: 1