Earlier quoted context omitted.
Tell me you've never done any Android development, without telling me... This is such a low-effort "take" without any effort to justify _why_ you'd want something like this. There's a high amount of impedance mismatch trying to write GUIs in a non-GC language like Rust which _has_ to run on what's essentially a Java VM (ART). At least with a language like Go, it somewhat makes sense, and has been attempted: https://g…
I didn't bash Java/Kotlin. In fact, I have written few android apps in Kotlin, Java and I also have fiddled with Jetpack compose, JNI and NDK (I have also played with mpv's Opengl/Vulkan's rendering on Android if that matters to you). I don't want to share the projects of mine because i don't want to reveal my identity. > https://gioui.org/ I know that tailscale's android application is written in it but i don't thin…
Bare-metal Rust in Android
51–60 of 124 posts
Re: Bare-metal Rust in Android
#52Re: Bare-metal Rust in Android
#53I may have wrong assumptions, but I find it funny they didn't use Golang. Is it not capable of doing the same thing ? Anyway, happy to see rust being adopted for that usage.
No, Go isn't appropriate for these things. Use the best tool for the job
Re: Bare-metal Rust in Android
#54Re: Bare-metal Rust in Android
#55Earlier quoted context omitted.
No, Go isn't appropriate for these things. Use the best tool for the job
Can you please explain why Go isn't appropriate here?
I also doubt a garbage-collected language work very well for drivers that require precise timing (MMIO) and/or control over memory allocation.
Re: Bare-metal Rust in Android
#56Earlier quoted context omitted.
No, Go isn't appropriate for these things. Use the best tool for the job
Can you please explain why Go isn't appropriate here?
It's possible... But it feels like screwing screws with a knife. It's doable, but noone from the language designers, stl designers and library developers are really thinking about that use case.
Rust on the other hand fits very well into the model where it needs to be just a piece of a bigger whole - it's been built that way ("system" programming language) and it doesn't come with GC that will fight with JVM or Binder lifetimes, compatible type system and plenty of libraries that help develop libraries on an embedded platform. When building the language, Rust designers consider this as one of the main use cases of the language and it shows with how much less hassle it is to work with.
The fact that it easily fits into existing C/C++ codebases helps too.
Re: Bare-metal Rust in Android
#57Ideally, Android wouldn’t have any security vulnerabilities, but that’s not realistic. Rust won’t prevent every bug (and it’s even possible to cause segmentation faults in an ostensibly safe language like Python), but “better” is still a huge leap forward.
Re: Bare-metal Rust in Android
#58Re: Bare-metal Rust in Android
#59Ok, now enable us to let create Android Applications entirely in Rust (including the GUI). Let's get rid of Kotlin/Java monopoly in Android App development. Shall we?
Re: Bare-metal Rust in Android
#60Ideally, Android wouldn’t have any security vulnerabilities, but that’s not realistic. Rust won’t prevent every bug (and it’s even possible to cause segmentation faults in an ostensibly safe language like Python), but “better” is still a huge leap forward.
just.... no more buffers overflown