Symbios
A Sovereign Derivation Engine for Parametric L-Systems.
Symbios is a pure-Rust, zero-dependency (core), high-performance engine for generating Lindenmayer Systems. It is designed for "Sovereign" applications where the logic must run locally, deterministically, and safely (e.g., WASM environments, embedded simulation).
It fully implements the syntax and semantics described in The Algorithmic Beauty of Plants (Prusinkiewicz & Lindenmayer, 1990).
Key Features
- Sovereign Architecture: Zero external dependencies for the core logic. No game engines, no heavy runtimes.
- Structure-of-Arrays (SoA): Data layout optimized for cache locality and WASM memory limits.
- Parametric & Context-Sensitive: Full support for
(k,l)-systems, arithmetic guardsA(x) : x > 5 -> ..., and variable binding. - Adversarial Hardening: Protected against recursion bombs, memory exhaustion, and floating-point fragility.
- Deterministic: Seedable RNG (
rand_pcg) ensures reproducible procedural generation.
Usage
[]
= "0.1.0"
use System;
Performance
Symbios uses a flat memory arena for parameters and u16 symbol interning.
- Rule Matching: $O(N)$ (HashMap bucketed)
- Context Matching: $O(1)$ (Topology Skip-Links)
License
MIT