Most UI frameworks bolt reactivity onto a general-purpose runtime with hook rules, dependency arrays, or virtual DOM reconciliation. Osprey Native builds reactivity into the compiler and pairs it with a zero-serialization binary boundary.
Compiler-derived signals (Signal<T>)
Each application state slice is a typed record read through Signal<T>. Keyed regions (Keyed::region) snapshot their compiler-derived read dependencies automatically. When update returns a new store, only regions that read a changed slice rebuild; unchanged regions retain their revision, focus, scroll anchor, and IME composition state.
One frame, four sealed runs
Instead of formatting JSON strings across a bridge, Views::shared appends fixed-width, 8-byte-aligned rows generated from native.td:
- Scene rows (
SceneShape, 88 bytes): GPU primitives, sprites, lettering, and accessible elements. - View rows (
ViewRow, 152 bytes): native controls, typography, layout, and binding ordinals. - Text run: contiguous UTF-8 bytes referenced by offset and length.
- Ask rows (
AskRow, 32 bytes): typed capability requests and host-held slice writes.
Every host (SwiftUI, WinUI, FerroUI, GPUI, Android JNI, and WebAssembly) verifies the ABI fingerprint at startup, leases the frame in place, validates every row, and refuses malformed frames whole while keeping the last good frame on screen.