GenHDC — Genetic Hyperdimensional Computing
GenHDC is a Rust library for Hyperdimensional Computing (HDC) / Vector Symbolic Architectures (VSA), plus genetic operators on concept genomes.
The HDC engine is battle-tested inside Mimer, a continuously running Rust agent: 10 000-dimensional bipolar vectors, bind / bundle / unbind, and permutation for sequence encoding. The genetic layer adds inheritance, mutation, CRISPR-like targeted editing, and epigenetic expression.
Install
[]
= "0.1"
Optional JSON serialization for genomes:
[]
= { = "0.1", = ["serde"] }
Quick start — HDC engine
use ;
Run the bundled demo:
Quick start — genetic operators
use ConceptGenome;
let snake = primordial;
let apple = primordial;
let eats = inherit;
assert_eq!;
| Biology | GenHDC |
|---|---|
| DNA | ConceptGenome with features |
| Gene | GenomeFeature { name, dominance, origin } |
| Sexual reproduction | inherit() — two-parent blending |
| Random mutation | mutate() |
| CRISPR/Cas9 | crispr_edit() — error-guided edit |
| Epigenetics | toggle_expression() |
What is HDC / VSA?
Hyperdimensional computing represents symbols as high-dimensional random
vectors (here bipolar {±1}^10000). Near-orthogonality makes accidental
collisions rare. Algebraic operations compose structure:
- Bind (element-wise multiply) — associate two symbols; self-inverse for bipolar vectors
- Bundle (normalize-sum) — superpose a set into one vector
- Permute — encode position / sequence order
Same seed + concept name → identical vector (deterministic).
Provenance
Extracted from Mimer / Gracestack production agent code paths. Source: github.com/GracestackAB/genhdc. Published August 2026 as a standalone MIT-licensed crate.
License
MIT © 2026 Kim Cedendahl / Gracestack AB