WebAssembly Apps on Android: Why and How

4 points by Nicole9 ↗ HN
A new option for Android app developers. Create modules and functions for your app in WebAssembly! With the WasmEdge Runtime’s Android port, you will get

Native speed & sandbox safety Dev in your language — eg Rust, C++, Go & JS Embed 3rd party functions in your android app k8s managed android apps

## How

Compile and build WasmEdge for Android. https://wasmedge.org/book/en/extend/build_for_android.html

Use Rust + WebAssembly for high performance AI inference (mobilenet image classification) on Android https://wasmedge.org/book/en/os/android/cli.html

Wrap a Webassembly app in an Android NDK shell. It is the same TensorFlow TFLite image classification / inference Wasm app as the the first one, but wrapped in your own app. https://wasmedge.org/book/en/os/android/ndk.html

Create an Android APK app with an embedded WasmEdge Runtime. WebAssembly functions turn your app into a platform for other devs. https://wasmedge.org/book/en/os/android/apk.html

1 comment

[ 3.1 ms ] story [ 14.5 ms ] thread
I love webassembly, it is going to change web much. There are so many things which were impossible/too slow, like image processing, Video processing. Now with webassembly that's all possible with good speed.

Coming to wasm for Android/other platforms. I believe you can already use native Go, rust without webassembly. Tailscale make Android, iOS app in Go. Atleast with that you multithreading and better performance.