跪拜 Guibai
← All articles
Architecture

How Six Major Platforms Differ Under the Hood: Android, iOS, Vue, React, Flutter, React Native

By Ivis ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

The practical stakes are concrete: Android's two-pass layout can cause jank, React Native's old Bridge throttled list scrolling, and Vue's compile-time optimization is what React trades for runtime flexibility. Choosing a stack means choosing which of these bottlenecks you can live with.

Summary

Android and iOS anchor the comparison in system-level layering: Android runs on Linux/HAL/ART and uses Binder for one-copy IPC, while iOS separates rendering into a dedicated Render Server and relies on RunLoop and GCD. Both carry architecture debt, with Android's two-pass measure being a long-standing performance suspect.

Vue and React both do declarative UI with diffing, but they split the optimization role. Vue pushes it into the compiler with Proxy reactivity, PatchFlag, and Block Tree. React pushes it into a runtime scheduler with Fiber, Lane priorities, and interruptible rendering. Flutter and React Native represent the two cross-platform routes: Flutter self-draws with Skia/Impeller and single-pass constraint layout; React Native renders real native views and, in its new architecture, replaces the serialized Bridge with JSI, Fabric, TurboModules, and Hermes.

The result is a set of structural trade-offs rather than a winner list. Platform-sandboxed systems buy performance at the cost of binding; compiler-driven optimization buys determinism, runtime scheduling buys flexibility; self-drawing buys visual consistency, native rendering buys native feel.

Takeaways
— Android runs app processes forked from a preloaded Zygote process and uses Binder with a one-copy mmap for IPC across system services.
— iOS renders in a separate Render Server (backboardd) process, which keeps UI animations smooth; memory is managed by ARC without GC pauses.
— Vue 3 intercepts data access via Proxy and batches updates into a microtask queue, so one event loop flushes only once.
— React's Fiber architecture splits rendering into interruptible work and a non-interruptible commit, with Lane priorities and 5ms time slicing.
— Flutter does a one-pass constraint-based layout and self-draws with Skia or Impeller; Impeller's precompiled shaders eliminate first-frame jank.
— React Native's old Bridge serialized messages to JSON and caused hitching on list scrolls; the new architecture uses JSI for synchronous native calls, Fabric for a shared C++ shadow tree, TurboModules for lazy typed modules, and Hermes as the default engine.
Conclusions

A recurring design choice is where optimization lives: Vue commits to compile-time knowledge, React to runtime scheduling. Each is a different bet on when the system can know what will change, and neither is free.

Flutter's self-drawn engine and React Native's native-view approach are opposite bets on consistency versus integration: Flutter gets identical pixels but loses native controls, React Native keeps native feel but needs JSI and Fabric to close the bridge gap.

Both Flutter and React Native's Yoga use single-pass constraint layout, while Android's View system still measures twice; new frameworks can skip debt that legacy system UIs continue to carry.

Concepts & terms
Binder
Android's IPC mechanism that maps a kernel buffer with mmap so a message is copied once; system services like AMS and WMS use it for cross-process calls.
JSI
JavaScript Interface, the C++ layer in React Native's new architecture that gives JS direct references to native objects and synchronous calls, replacing the old serialized Bridge.
Fiber
React's internal unit of work; rendering is split into linked-list Fiber nodes so the render phase can pause and resume, while commit happens in one shot.
PatchFlag
A compile-time marker Vue adds to virtual DOM nodes to indicate which parts are dynamic, allowing the runtime to update only those parts instead of diffing everything.
Render Server
The separate iOS process (backboardd) that composites layer trees submitted by Core Animation, a structural reason UIKit animations remain smooth.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗