SwiftUI
compo Counter → struct Counter: View. state → @State.
Column(gap:) → VStack(spacing:).
Flux has two execution modes. Both consume the same Reactive Tree IR produced by the lowering pass — they differ only in how the host turns that IR into pixels.
In dev, a precompiled host app ships to the device. The dev server
parses .flux, lowers it to the Reactive Tree IR, diffs it against the
previous tree, and ships binary patches over a WebSocket. The host’s
embedded register-based bytecode VM and signal graph apply the patch and
mutate a shadow tree of native views.
trace sink is free in production (ADR-0027 INV-2): no overhead when
no driver is attached.In release, the same IR is codegen’d to idiomatic Swift/SwiftUI and Kotlin/Jetpack Compose. There is no VM, no patch protocol, no shadow tree — the output is a normal native app.
SwiftUI
compo Counter → struct Counter: View. state → @State.
Column(gap:) → VStack(spacing:).
Jetpack Compose
compo Counter → @Composable fun Counter(). state →
remember { mutableStateOf(...) }. Column(gap:) →
Column(verticalArrangement = spacedBy(...)).
The dev loop needs liveness (patch, don’t recompile); the shipped product needs zero runtime overhead (native codegen). Keeping a single IR as the contract means the dev experience and the release binary are provably the same program — which is exactly what the parity harness proves: it captures traces from both tiers and checks their equivalence in CI.
The two hosts converge at different speeds, and the project is explicit about it: