PINE64
Preferred language for creating apps for PinePhone - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: Preferred language for creating apps for PinePhone (/showthread.php?tid=8358)



Preferred language for creating apps for PinePhone - bunburya - 11-17-2019

Hi all, I've ordered a BraveHeart and am looking forward to playing around with it.  I'd be interested in creating some simple apps for it and wanted to get people's opinions on what language people will probably use to create apps for the PinePhone.  Most of my programming is done in Python but I wonder if many people will consider Python to be too resource-intensive for a fairly small and low-spec machine like the PinePhone, perhaps going instead for something more minimalist like Lua or even C++ would be more appropriate.

What are people's thoughts on this?  If you are planning on creating apps for the PinePhone, what language would you likely use?  I know there will be the option to use different languages and that the most appropriate language will probably depend to an extent on the OS that is ultimately chosen, but I would like to hear if people think some languages are inherently better suited to the task than others.


RE: Preferred language for creating apps for PinePhone - evilbunny - 11-17-2019

(11-17-2019, 12:51 PM)bunburya Wrote: Hi all, I've ordered a BraveHeart and am looking forward to playing around with it.  I'd be interested in creating some simple apps for it and wanted to get people's opinions on what language people will probably use to create apps for the PinePhone.  Most of my programming is done in Python but I wonder if many people will consider Python to be too resource-intensive for a fairly small and low-spec machine like the PinePhone, perhaps going instead for something more minimalist like Lua or even C++ would be more appropriate.


I've done a little bit of development for Ubuntu Touch using QML and Python. I'm told UT is the most advanced app wise.


RE: Preferred language for creating apps for PinePhone - vinnie - 11-19-2019

Since it is a linux phone I think that, when possible, the best thing would be to develop an application by decoupling the logic from the graphical interface.
For logic I think you can use your favorite language (but obviously the most portable is C) and for gui in the same way, but doing that way anyone could use the program as a library and write a different interface.

The benefit is that, over time, it is possible that better or more appropriate interfaces are developed and the logic remains the same and can be improved separately.
Obviously, this practice is not widely considered in closed operating systems because they are os-centric, but we'll have a better platform Smile


RE: Preferred language for creating apps for PinePhone - aaverill - 11-23-2019

I am planning to try to use C++ and QT/QML for some application development.

Once I get a build process sorted out I will plan to share a short how to. (If anyone has already done something along these lines I wouldn't complain about some resources). My current plan is to follow the Plasma Mobile development process and see what I can get running once I have a phone in hand.