Targets · Dart · Runtime

Runtime

The Reactive and Context machinery the rendered code links against.

Contents

How a Program becomes Dart, in parts. Start with the introduction, then follow each part into the rendered output and the runtime it links against.

Reactive and Context, in Dart

The runtime is the same three parts as every target — the Reactive graph, the Context channels, and the native drivers — ported to Dart. State is Reactive.State<T>(…), a value is a ReactiveValue<T>, and derived values come from Reactive.Calculate<T>(…).

Dart's advantage is reified generics: the types Program carries are real at runtime, so a ReactiveValue<int> stays typed all the way through — no erasure as in JavaScript. The cycle (open channels, run, drain, dispatch, wait) is identical; read the JavaScript runtime for the full walkthrough.