Documentation Menu · Living Runtime & Neural MoE
Living Runtime & Neural MoE
40-dimension realization registry, quantized HCME v5 Mixture-of-Experts, A/B/A/B background recompilation, and 2 GiB+ wide arenas.
Hector separates business semantics from physical realization. Instead of locking an application forever to hand-picked hash maps, locks, or caches, the realization engine treats implementation strategies as explicit options across a 40-dimension registry—where Absent emits zero bytes and zero instructions.
1. The 40-Dimension Registry & 6-Axis Cost Vector
Every realization site resolves a Decision across Closed | Bound | Open | Absent using saturating u128 interval arithmetic across all declared axes simultaneously:
| Mechanism Axis | Key Concepts & Realization Forms | Owner |
|---|---|---|
| Cost Vector | Speed, Memory, Size, Compilation, Energy, Disk (+ Latency policies) | realize::space |
| Origin Quality | Written → Lock → Seed → Facts → Measured → Estimated → Default → Undecided | space::choice |
| Keys & Columns | Dense direct array when span ≤ 8× rows, open addressing, bit-packing, partitioning, cohort sharing | space::keys/bits |
| Atlas Curve Store | Exact machine-indexed, single-unit cost points preventing cross-unit dominance bugs | space::atlas |
-- Declare architectural goals per scope instead of hand-coding data structures
prefer p99 <= 2 ms on Physics
prefer Speed then Memory on Core
restrict undo(None) on Telemetry -- omit undo journaling completely (0 bytes emitted)
2. Neural MoE (HCME v5) & Online LinUcb<10>
Machine learning inside Hector strictly orders candidate shapes so search converges faster—it never guesses correctness or replaces proof:
- Ahead-of-Time GNN + MoE (
HCME v5): 8-kind / 3-round graph neural network paired with a 4-expert / 4-head Mixture of Experts in quantized Q16 fixed-point (zero heap allocation per candidate), sealed in SHA-256 signed binaries. - Online Contextual Bandit (
LinUcb<10>): 4 independent axis heads using Sherman–MorrisonO(D²)updates (D = 10features) to rank admissible runtime strategies during workload shifts.
3. Crash-Safe Living Adaptation & RRAC
realize::living safely re-optimizes rows, ahead, parts, and recursive in live traffic:
- Bounded Sampling (
Seen): Runs under explicit CPU ppm budgets (PolicyBudget). - Bernstein 2-Epoch Shift Detection: Flags regime changes without flapping on noise.
- Background
compile_beside& A/B/A/B Trials: Builds candidate W^X images off the hot thread and confirms gains under bounded regret. - Atomic Swap (
Program::perform) & RRAC: Swaps at safe transaction boundaries while reading 168-hour seasonal schedules to pre-compile expected traffic peaks ahead of arrival.
4. Scale by Construction: 2 GiB+ Arenas & DBSP
- Wide Memory Arenas (
Layout::wide): Scales beyond 2 GiB (ROW_BITS = 26) up to2^30rows using 64-bitr14window addressing and lazy page commits. - DBSP Deltas, Oatlog E-Graphs & Treap Extrema: Lowers
sum/countintoO(1)deltas andthe ... minimizingqueries into persistent treaps instead ofO(N²)rescans.