4 ms·
performance performance performance. And it is not just about direct user experience either. Even if a given app may be written in Python it will probably dra
by nirai 13y ago
performance performance performance.
And it is not just about direct user experience either.
Even if a given app may be written in Python it will probably drain the battery faster, since for each bit of work that would have taken X cpu cycles with Java, you would spend 20X with Python, not to mention memory handling, etc...
A language is just a tool,
use the right one for the Job.
a Pythonista
- chrisjrn 13y agoNot really -- most mobile code is simply glue for UI event handlers and the like. And Python's really good at writing glue code. Just like when you're coding in Java, code that needs performance is native, and written in C. Python would idle just as well as pure java if it needed to :)
- captainmuon 13y agoNot sure about that... actually most (well-written!) android code is already pretty wasteful with resources, because its abstractions upon abstractions. To get a simple button on the screen, you need an Activity with a Fragment with a View with the button inside, with a few more layers inbetween. The gui is loaded from multiple XML files and resources, with lots of dynamic property binding going on. And even don't get me started on data storage and SQLite... Writing an app in python wouldn't add much to this - it actually may allow you to avoid a couple of layers (the dreaded FactoryFactory syndrome of java). Python's weakness is number crunching, and I agree, you wouldn't want to do that in Python on Android. But just to show a gui, or to access a web api, python's performance should be more than enough.