Sharing Code between iOS & Android with Rust
summary
Compares Rust, Swift and Kotlin/Native with concrete benchmarks: small text-processing runs compile in ~1s compile time for Rust vs 5s+ for others, string-split runtime 0.06s Rust vs 3.14s Swift, chunking workload 1s Rust vs ~12s Swift, JSON parse 0.18s Rust vs 3s Swift, and average memory 6 MB Rust vs 138 MB Swift and 331 MB Kotlin. Shows a working Rust library exposed to Android via autogenerated Java bindings and to iOS via C FFI (build.rs integration), and demonstrates safe concurrency using Arc+Mutex to avoid data races.
AI-written summary · about
chapters (11)
- 0:00Introduction to talk
- 1:26Why share code between platforms
- 2:29Rust language overview
- 9:35Why Rust over C++
- 10:59Benchmarks comparison
- 20:32Rust principles in practice
- 21:15Demo Rust shared library
- 26:56Rust memory management
- 31:32Fearless concurrency in Rust
- 34:05Rust pros and cons
- 35:28When to use Rust for mobile
related talks
30mSharing Code between iOS & Android with Rust
37mUsing Rust in Your Next KMP App
39mSeamless Multiplatform – Kotlin-Rust-Multiplatform?!
30mShipping production ready Rust for Android
43mOxidize Your Kotlin by Adding Some Rust
51mRust in the Linux kernel
28mUsing Rust in your next Flutter SDK
30mInterop with Android, IOS and WASM in the same project
