Re:Bare-metal Rust in Android
by voxl on Monday October 09, 2023 @03:41PM
(#37824499)
What does a GC have anything to do with it? You can reference count all the pointers if you want, you can expose JVM pointers in Rust where Rust doesn't manage the heap memory. There are plenty of easy solutions to work with the JVM
[ Parent
| on HN ]
If you're willing to work with the JVM (i.e. through JNI), there's really nothing stopping you.
You can 100% make entire apps using nothing but C, C++, or whatever, as long as you're willing interface with the JVM that's created for you to access Android APIs.
But the Android API is a JVM API. There's no getting around that. At this point, it's another OS (i.e. not Android) if it doesn't have Java in it.