News for hackers. Stuff that matters.
Re:Welcome to Comprehensive Rust by shivekkhurana on Thursday December 22, 2022 @06:01AM (#34092135)
Can Rust make Android apps faster ?

It feels logical because Rust is close to the metal, but I don't know enough Android or Rust to be sure.

Re:Welcome to Comprehensive Rust by mrtngslr on Thursday December 22, 2022 @06:19AM (#34092250)
Hi, I wrote the new course. We have been enabling the use of Rust in the Android Platform.

Roughly speaking, the Android Platform is the Linux distribution running below the Android apps we all know. There are a number of daemons running on the system and these are often written in C++. We've now made it possible for Android engineers to write them in Rust instead (or to link in Rust libraries if they want). To do this, the Android build system had to be extended with new rules, see https://source.android.com/docs/setup/build/rust/building-ru....

The overall goal is to have more secure software. Rust removes a whole class of possible security vulnerabilities and we deploy it to make phones more secure. See https://security.googleblog.com/2022/12/memory-safe-language... for details on that.

Re:Welcome to Comprehensive Rust by pjmlp on Thursday December 22, 2022 @06:31AM (#34092323)
Android apps are already compiled to native code, being faster or slower is a matter of developer skills, and how much they paid attention to algorithms and data structures lectures.
Re:Welcome to Comprehensive Rust by saagarjha on Thursday December 22, 2022 @06:02AM (#34092147)
Rust can make Android apps faster, but so can Python or Java or JavaScript or C++. It's generally not useful to make a comparison like this in a vacuum.