2 ms·
> Sadly the Android team, while taking this safety steps, it keeps using unsafe C userspace for NDK APIs. You phrase this as a negative but it's overwhelmingly
by kllrnohj 6y ago
> Sadly the Android team, while taking this safety steps, it keeps using unsafe C userspace for NDK APIs.
You phrase this as a negative but it's overwhelmingly a positive. Imagine how difficult it'd be to write an app using the NDK in Rust if the NDK had been C++ instead. The C ABI remains by far the most portable & common target. Everything can call it.
- pjmlp 6y agoIt is a bit hard to talk about safety when everything one has to play is an API that allows for all the usual stuff that C is known to cause. Everything can call it, and everyone has to redo the safety work.