Preferred language for creating apps for PinePhone
#1
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.
#2
(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.
#3
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
#4
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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone earpiece too quiet Waffelo 3 299 01-01-2025, 09:41 PM
Last Post: Kevin Kofler
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 15 18,956 12-27-2024, 03:02 AM
Last Post: biketool
  eSIM on PinePhone just_a_q 9 5,395 12-25-2024, 04:16 AM
Last Post: zetabeta
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 13 7,188 12-05-2024, 04:38 PM
Last Post: tllim
  Pinephone compatibility with Telstra, now that 3 G shutdown and 5 G available tracyanne 0 210 12-04-2024, 10:53 PM
Last Post: tracyanne
  Want to buy second hand PinePhone 3G version rudi.timmermans 0 374 11-01-2024, 09:58 AM
Last Post: rudi.timmermans
  Can use PlayStation on Pinephone? willharper 6 6,074 10-30-2024, 08:07 AM
Last Post: biketool
  Ordered PinePhone till today have no info or confirmation about order hennadiyt 1 556 10-05-2024, 02:20 PM
Last Post: KC9UDX
  How can I record video on a Pinephone? kk22 18 8,136 07-22-2024, 05:18 PM
Last Post: baptx
  Pinephone not booting, always vibrating alexander12 8 7,431 07-19-2024, 07:50 PM
Last Post: Blackheart

Forum Jump:


Users browsing this thread: 1 Guest(s)