-
Notifications
You must be signed in to change notification settings - Fork 1
Architecture
O-O1112 edited this page Aug 22, 2026
·
1 revision
Block has four main layers:
- Parser — identifies tagged runtime blocks, imports, output blocks, and native Block sections.
- Execution state — stores plain serializable values and validates state boundaries.
- Runtime executor — launches the selected local host runtime with timeouts, output limits, and configuration checks.
- Native interpreter — executes the built-in Block language core without an external runtime.
Block file → parser and syntax checks → ordered blocks → native interpreter or host runtime → validated state → next block/output
Each runtime is a separate process boundary. Block coordinates the workflow; Python, Node.js, PHP, Lua, and other runtimes retain their own semantics and libraries.
Use native Block syntax for deterministic variables, control flow, collections, and small functions. Use a tagged runtime block when the workflow needs a host language's standard library, packages, file APIs, network APIs, or advanced syntax.
Block Wiki