perennial documentation
Every page here is generated from the markdown in the repository's docs/ directory, so it says what the source says.
- perennial compatibility table: Every public item that the clean-room spec (docs/spec/) lists for im 15.1.0, im-rc 15.1.0 and imbl 7.0.2 has exactly one row in one of the files below, saying what perennial does with it and which…
- perennial: design: perennial is a set of persistent (immutable, structurally shared) collections for Rust — HashMap, HashSet, OrdMap, OrdSet and Vector — whose public interface is a drop-in replacement for im-rc…
- 1. The interface perennial matches: Reference: im-rc 15.1.0 and im 15.1.0 (identical API apart from the pointer kind), with the additions of imbl 7.0.2 where they do not conflict. The behaviour of every item is specified in docs/spec/…
- 2. Architecture: Written from the public algorithm literature (Bayer & McCreight 1972 on B-trees; Bagwell 2001 on hash array mapped tries; Steindorfer & Vinju 2015 on CHAMP; Bagwell & Rompf 2011 and Stucki et al.…
- 3. Where the speed comes from: The targets' own public claim: im's OrdMap is "2–3× slower" than std::collections::BTreeMap (docs/spec/performance-claims.md). The ceiling for every workload is std (no sharing at all); the field is…
- 4. Safety and the known bug classes: Each advisory against the target family becomes a negative test in tests/advisories/. The trigger patterns are described in docs/spec/advisories.md (written by the spec agent from the advisory…
- 5. Proof plan: The target crates keep their tests inside their MPL-licensed source modules; they cannot be run against another crate without editing them, and implementers may not read them. The drop-in claim…
- 6. Benchmark method: Rules: same machine, pinned versions, warm-up, median of 5 cold processes per cell, raw JSON Lines committed, charts generated from them.
- Compatibility: crate-level items: Spec: docs/spec/00-overview.md §2–§4, docs/spec/macros-and-iter.md. Legend and 01: labels:../COMPAT.md. Rows here cover macros, modules, iter::unfold, shared_ptr and the Generic* structs; proptest…
- Compatibility: features and pool types: Spec: docs/spec/00-overview.md §2–§4. Legend and 01: labels:../COMPAT.md. Rows here cover the proptest strategies, the Cargo features and the pool types; macros, modules, shared_ptr and the Generic*…
- Compatibility: HashMap: Spec: docs/spec/hashmap-1.md, docs/spec/hashmap-2.md, docs/spec/set-algebra.md, docs/spec/hashing.md, docs/spec/ordering-and-equality.md. Legend and 01: labels:../COMPAT.md. GenericHashMap rows are…
- Compatibility: HashSet: Spec: docs/spec/hashset.md, docs/spec/set-algebra.md, docs/spec/hashing.md. Legend and 01: labels:../COMPAT.md. GenericHashSet rows are in crate.md, HashSetPool rows in features.md. OrdSet:…
- Compatibility: OrdMap: Spec: docs/spec/ordmap-1.md, docs/spec/ordmap-2.md, docs/spec/set-algebra.md, docs/spec/ordering-and-equality.md, docs/spec/00-overview.md §3. Legend and 01: labels:../COMPAT.md. GenericOrdMap rows…
- Compatibility: OrdSet: Spec: docs/spec/ordset.md, docs/spec/set-algebra.md, docs/spec/ordering-and-equality.md. Legend and 01: labels:../COMPAT.md. GenericOrdSet rows are in crate.md, OrdSetPool rows in features.md.…
- Compatibility: Vector: Spec: docs/spec/vector-1.md, docs/spec/vector-2.md, docs/spec/ordering-and-equality.md. Decisions: docs/design/01-interface.md. Legend, status vocabulary and the 01: labels are defined…