News for hackers. Stuff that matters.
Re:Energy Efficiency in Programming Languages by darkhorn on Saturday September 16, 2017 @10:47AM (#15264848)
Linux and Darwin is written with C. They are the OSs of Android and iOS.

But would be nice to have some mobile apps written with C.

Re:Energy Efficiency in Programming Languages by mpweiher on Saturday September 16, 2017 @01:23PM (#15265560)
Lots of mobile apps are written in Objective-C, and Objective-C is C. A superset of C to be exact.

Since it's a single hybrid language, it's trivial to remove slower features fro, performance-intensive parts.

See my UIKonf talk https://www.youtube.com/watch?v=kHG_zw7%205SjE&feature=youtu...

Or my book: https://www.amazon.com/gp/product/0321842847/ref=as_li_tl?ie...

Re:Energy Efficiency in Programming Languages by marian0_ on Saturday September 16, 2017 @10:58AM (#15264907)
Most Android apps use a handful of native code libraries which are bundled inside the apk. It's usual nowadays to only write the UI using Java and use C for the rest.
Re:Energy Efficiency in Programming Languages by ekianjo on Saturday September 16, 2017 @11:04AM (#15264927)
Linux is just the kernel for Android, the whole userspace is not written in C, and that is what matters in the end for performance and efficiency.