Frequently Asked Questions
Direct answers on closed-world compilation, zero-LLVM W^X machine code, benchmarks against C++, Kleene three-valued logic, and MCP agents.
What makes Hector different from SQL, TLA+, or Rust/C++?
TLA+ checks models without emitting production binaries; SQL manages persistence without compiling your state machine into W^X native code; C++/Rust require you to hand-code indexes, locks, caches, and guards. Hector takes pure business rules once, proves them against an independent oracle, and compiles them directly into native machine code.
Why is Hector a "closed-world" language?
Because the compiler sees the entire program and every observer at once. Whatever no observer reads does not exist (zero code, zero bytes); laws compile into minimal weakest preconditions; and algebraic invariants like conservation sums can be discharged mathematically at compile time.
What is the "Absent = 0 bytes" option architecture?
Around 90% of Hector’s runtime features (undo, clocks, durability, bit-packing, traversal retention, adaptive compilation) are dimensions in the realization registry with an Absent form that emits zero instructions and zero bytes unless demanded.
Does Hector use LLVM or clang?
Never in JIT or delivery. On x86-64 Hector emits W^X machine code via Copy-and-Patch stencils and uses pure-Rust register assemblers across AArch64, RISC-V 64, and Wasm32—giving 11–51 ms cold builds on small programs.
Can Hector really beat expert C++?
Yes where closed-world proofs eliminate work (Server Cycle 3,276 vs 21,319 instructions; Batch of 16 4,207 vs 21,765). On axes where Hector is still behind (e.g. O(N) clock ticks), every single gap is published transparently on /benchmarks/.
How does Hector treat third-party timeouts?
External fields (by Network on Send) automatically add Kleene Unknown. Combined with stays Held while clearing is Unknown, premature cancellations are blocked safely while an external call is in flight.
What are Verdict 0, 1, 2, and 3?
Hector uses a constitutional lattice 2 > 1 > 3 > 0: 0 = Established, 1 = Refuted (minimal counterexample printed), 2 = Refused (closed error code + exact fix: repair), 3 = Not Established (open ?hole or unmeasured target).
Which host languages can call compiled Hector libraries?
C, C++, C#, Go, Rust, Node.js, and TypeScript via ABI v16 (hector build --lib), plus standalone WebAssembly (--target wasm32) and TLS 1.3 HTTP/OpenAPI 3.1 via hector serve.
What are .orp bundles and --dossier builds?
.orp bundles wrap bytecode/Wasm, CALM monotonicity metadata, and Ed25519 signatures. --dossier embeds SHA-256 bound proof certificates directly into delivered binaries.
How do AI coding agents work safely inside Hector?
Agents collaborate inside a crash-safe 31-tool MCP room (agents/mcp), receiving closed diagnostics and semantic impact cones while the human author keeps exclusive admit / reject rights.