v0.2 turns genes into first-class WASM citizens with content-addressable identity, adds true parallelism to the algebra engine, and publishes the Rust core as an independent crate.
IR Compiler Pipeline
The new rotifer-core::compiler module brings full Intermediate Representation support:
- Custom WASM sections —
rotifer.version,rotifer.phenotype,rotifer.constraints,rotifer.metering - Content-addressable identity — every gene gets an
irHashcomputed via SHA-256 over its IR content. Identity is derived from what a gene is, not what it’s called. - IR verifier — static validation of exports, prohibited instructions, and memory limits
- 5 genesis WASM genes —
echo,wrap,search,summarize,translatecompiled to real IR
rotifer compile --wasm # full IR compilation with phenotype updateAlgebra Parallelism
The Par operator now uses true CPU parallelism via std::thread::scope instead of sequential execution. When your genome says “run these genes in parallel,” they actually run in parallel.
crates.io
rotifer-core is now published as an independent Rust crate with full rustdoc coverage on all 150+ public API items. Rust developers can build on the Rotifer type system and engines directly.
CLI Upgrades
rotifer compile— full IR compilation with--wasmflag, phenotype update, andcompile-result.jsonoutputrotifer arena watch— real-time ranking diff monitoring with summaries
Fixes
Tryoperator now correctly returns the primary result on success (was re-executing the primary gene)
By the Numbers
- 22 → 180 tests across 10 modules
- New dependencies:
rmp-serde,wasm-encoder,wasmparser
Get Started
npm install -g @rotifer/playground@alpha