Developing on Pinephone
#6
(01-30-2021, 08:36 PM)mandavel Wrote: Apparently, as I found out, linux, and linux kernels are written in C. Not sure if it matters or not, but going forward I've decided to write in C, only because it's close to linux OS, close to the kernel, close to the machine and fast to compile.

Maybe someone with more experience can chime in, but I'd rather write in the language that the host OS is written in. Especially if it's fast and efficient (meaning, less operations to execute) I can imagine that translates to less RAM used and less power consumed to operate... Which is what pinephones desperately need.

A low level language can give you greater efficiencies in speed and memory usage it is true, but it also makes you deal with a lot of low-level details other languages don't. Writing in the same language as the OS is not really necessary. Plenty of applications are written in lots of different languages.

If you insist you want to go low-level though, another low-level and fast language on par with C is Rust. However Rust is much newer and takes advantage of a lot knowledge gained during the almost 50 years C has been around.

C will also let you (quite easily) make lots of mistakes that can lead to security compromises. Rust makes this harder, but some say it can be somewhat more difficult to learn. Personally, I just think it seems harder because Rust won't let you write certain kinds of bad code that are very easy to accidentally write in C, even for experienced programmers.
  Reply


Messages In This Thread
Developing on Pinephone - by mandavel - 01-28-2021, 07:09 AM
RE: Developing on Pinephone - by zborgerd - 01-28-2021, 10:41 AM
RE: Developing on Pinephone - by mandavel - 01-28-2021, 07:14 PM
RE: Developing on Pinephone - by kern707 - 01-29-2021, 03:44 AM
RE: Developing on Pinephone - by mandavel - 01-30-2021, 08:36 PM
RE: Developing on Pinephone - by Mwo87 - 01-31-2021, 12:36 AM
RE: Developing on Pinephone - by kern707 - 01-31-2021, 03:29 PM
RE: Developing on Pinephone - by mandavel - 02-01-2021, 10:59 AM
RE: Developing on Pinephone - by signal9 - 02-02-2021, 01:57 PM
RE: Developing on Pinephone - by kern707 - 02-04-2021, 04:15 AM
RE: Developing on Pinephone - by Mwo87 - 02-04-2021, 10:47 AM
RE: Developing on Pinephone - by wibble - 02-06-2021, 12:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I record video on a Pinephone? kk22 23 18,702 03-25-2026, 12:55 PM
Last Post: baptx
  Pinephone visibly losing power while plugged in Hiraghm 8 5,762 03-09-2026, 07:51 PM
Last Post: Tia Vaughan
  pinephone-support package not upgradable on Mobian fhireman 5 6,206 02-28-2026, 05:49 PM
Last Post: baptx
  beep - playing PCM samples on PinePhone? WhiteHexagon 0 608 12-04-2025, 08:07 AM
Last Post: WhiteHexagon
Star Selling my Pinephone Pro Explorer Edition zheyon 2 3,638 12-01-2025, 10:25 AM
Last Post: Kevin Kofler
  PinePhone sensors - Gyroscope power WhiteHexagon 3 1,073 11-30-2025, 08:07 AM
Last Post: WhiteHexagon
  Light Sensor / Proximity Sensor on PinePhone? WhiteHexagon 1 874 11-18-2025, 03:07 PM
Last Post: WhiteHexagon
  Pinephone boot. Richy_T 8 5,584 10-21-2025, 12:12 PM
Last Post: Richy_T
  Does PinePhone support long-term battery health optimization? roseblack 5 2,182 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 4,228 09-24-2025, 09:25 PM
Last Post: elwoodb25

Forum Jump:


Users browsing this thread: 1 Guest(s)