Part V: Systems & Runtime Internals
Part V covers low-level memory management, zero-allocation hot paths, lock-free shared-memory messaging, C and WebAssembly interoperability, and runtime…
Part V covers low-level memory management, zero-allocation hot paths, lock-free shared-memory messaging, C and WebAssembly interoperability, and runtime inspection tools.
Core Systems Capabilities
Section titled “Core Systems Capabilities”- Hierarchical Arena Memory: Each locus owns an arena (
capacity { pool ...; heap ...; }) with automatic per-method scratch reclamation and whole-field replacement retirement—delivering deterministic memory bounds without a garbage collector or borrow checker. - Zero-Allocation Enforcement Ladder: Progressively tighten memory guarantees from the default unbounded-allocation escape survey to
@bounded_by(<input>),@hot,@budget(alloc_per_call = 0), and@phase_effects(birth: {alloc}, run: {}). - Zero-Copy Shared-Memory Bus (
shm_ring): Pass messages across processes at hundreds of thousands of frames per second using lock-free shared-memory rings,Drain<T>batch handlers,ring_layoutforeign rings, andTopic.write(max)in-place construction. - C FFI & WebAssembly: Bind C libraries directly via
@ffi("c")with zero-boilerplate struct/slice mapping, or compile.hlprograms towasm32with generated.mjsbrowser loaders. - Live Observability & Deterministic Replay: Inspect live locus hierarchies, arena utilization, and bus traffic in real time with
hale iris, or record and deterministically replay executions withhale replay.
Chapters in Part V
Section titled “Chapters in Part V”| Area | Chapters |
|---|---|
| Memory, Layout & Speed | Arena Memory & Lifetimes · Zero-Allocation Hot Paths · Collection Forms Internals · Zero-Copy Shared-Memory Bus |
| FFI & Targets | C Interoperability (@ffi("c")) · WebAssembly & Browser Targets |
| Operations, Inspection & Replay | Production Operations & Runtime Knobs · Iris: Live Topology & Arena Inspector · Deterministic Record & Replay |