SPEAR evolves closed-form mathematical laws from data, then compiles them to verified WebAssembly and MISRA-C:2012 with machine-checked parity. Formulas you can read, audit, and deploy on a microcontroller — and an MCP server so your LLM can drive the whole engine mid-conversation.
No screenshots. The amber curves below are the actual evolved champions, evaluated client-side against the exact laws they replace — same expressions the WASM exports run.
The full registry, straight from spear-hall-of-fame.json. Search, filter, sort — open a row for its precise & fast formulas, costs and solver replacements.
| Kernel | Grade | Record | Speed |
|---|
SPEAR ships a standard MCP server: Claude Desktop, Cursor, Windsurf — any MCP client — gets the engine as five native tools. Below, a real session: the numbers in the tool result are being computed right now by the actual champion formula, in this page.
Evolve a replacement kernel for any target — multi-variable, GPU cost profiles, seconds not sprints.
Browse the registry: records, speedups, exact-solve status.
Precise/fast formulas, MISRA-C, torch export, cost breakdown.
Evaluate any kernel at specific inputs, either operating point.
Launch discovery passes on selected tasks from chat.
Zero daemon, zero API keys — a plain subprocess.
Then just ask: "Discover a fast algebraic replacement for silu on [−6, 8]"
A population of algebraic trees competes on accuracy ↔ parsimony under NSGA-II. Transcendental ops are allowed but priced honestly (~20 ALU/SFU units vs 1 for a multiply), so the search is biased toward cheap deployable algebra — and bandwidth-bound GPU targets can drop that price to ~1 unit (transcendentalCost), removing the bias entirely. An out-of-distribution gate rejects formulas that only interpolate; past champions seed every new run. Same seed ⇒ same formulas.
Seeded datasets; exact-law baselines priced as cost-model references.
NSGA-II GP + heritage bootstrap from the champion ledger.
OOD extrapolation gate — off-support blow-ups rejected.
Holdout scoring, MISRA lint, gcc, C↔WASM parity.
torch, CUDA C, strict MISRA-C99, hand-rolled WASM.
Champions join the ledger and warm up the next generation.
Where practitioners normally run an iterative solver, SPEAR finds a closed form. Solver bills counted fully, in the same ALU/SFU units — slower results reported as measured, never hidden.
1000 Box–Muller draws → one erf evaluation at 4 units. Rediscovered exactly: MSE ≤ 1e-33, level 5.
RK4 integration, 200 steps → closed forms at 13–18 units; spin case exact to 7.5e-10. Fast slots at 4–5 units.
Adaptive 300-step solve → polynomial envelope × carrier.
8 damped least-squares iterations → the analytic inverse, exact to 4e-32.
Same seed ⇒ same data, same formulas, same metrics. Every record replayable, every export parity-audited, every formula yours to ship.