---
title: "perennial compatibility table · perennial"
description: "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…"
canonical: "https://perennial.avarok.net/docs/compat/"
lastmod: "2026-12-01T23:57:36Z"
tokens: 3475
---

1. [Docs](https://perennial.avarok.net/docs/)

# perennial compatibility table

perennial@0.1.0·Updated 2026-12-01·4 min read·[View as markdown](https://perennial.avarok.net/docs/compat/index.md)

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 test proves it. Decisions come from [design/01-interface.md](https://perennial.avarok.net/docs/design/01-interface/); this table only applies them item by item.

## What "same" means

An item is the **same** when code written against im-rc 15.1.0 (with `perennial-rc`) or im 15.1.0 (with `perennial`) compiles unchanged and observes the same results: return values, `len`, iteration order for ordered collections and Vector, `Debug` text, equality and ordering, and panic messages (exact strings where the spec records them). It does **not** cover:

- hash-collection iteration order beyond the contract in `spec/hashing.md` (order is stable per value, shared by clones and `new_from`, not insertion order); the particular order im produces is not reproduced;
- implementation-defined quantities the spec marks as such: `Vector::is_inline` capacity, `leaves`/`chunk_at` slice lengths, which equal element `binary_search` returns, `Clone` call counts, comparison counts;
- complexity and speed, which are the subject of [design/03-speed.md](https://perennial.avarok.net/docs/design/03-speed/).

## Status vocabulary

| status             | meaning                                                                                                                                          |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `same`             | as im 15.1 (and as imbl where imbl agrees, ignoring imbl's pointer-kind parameter and lookup bounds)                                             |
| `same (imbl)`      | an item im 15.1 does not have, provided with imbl 7's shape because perennial adopts imbl's type layout (`Generic*` structs, `shared_ptr` items) |
| `differs: …`       | perennial deliberately differs from im 15.1; the text names the `01:` label below                                                                |
| `added (imbl API)` | an imbl 7 method or trait impl added to the im-shaped collection (01 "imbl additions kept")                                                      |
| `not provided: …`  | perennial has no such item; reason given with its `01:` label                                                                                    |

Columns: `im 15.1` (im and im-rc, with im-rc-only items marked), `imbl 7`, `perennial`, `status`, `test`. Tests follow `tests/compat_<collection>.rs::<item_snake_case>` (or a split file `tests/compat_<collection>_*.rs`; feature rows in `compat_<collection>_features.rs`) for direct API rows and `tests/differential/<collection>.rs` for behaviour covered by the model tests ([design/05-proof.md](https://perennial.avarok.net/docs/design/05-proof/)).

## Crate ↔ target

| target       | perennial crate | pointer | Cargo.toml line                                                                    |
| ------------ | --------------- | ------- | ---------------------------------------------------------------------------------- |
| im-rc 15.1.0 | `perennial-rc`  | `Rc`    | `im-rc = { package = "perennial-rc", version = "0.1" }`                            |
| im 15.1.0    | `perennial`     | `Arc`   | `im = { package = "perennial", version = "0.1" }`                                  |
| imbl 7.0.2   | `perennial`     | generic | `imbl = { package = "perennial", version = "0.1" }`, for code using the shared API |

## Deliberate differences (one line each; the decision and its reason are in 01-interface.md)

| label                    | 01-interface.md row                                    | one line                                                                      |
| ------------------------ | ------------------------------------------------------ | ----------------------------------------------------------------------------- |
| `01:union`               | `union` value priority (maps)                          | `self`'s value always wins (im: larger map wins); also `unions`, `Add`, `Sum` |
| `01:difference`          | `difference`                                           | still the symmetric-difference alias, but `#[deprecated]` as in imbl          |
| `01:hash`                | `Hash` for HashMap/HashSet                             | kept, made order-independent so equal collections hash equally                |
| `01:ord`                 | `PartialOrd`/`Ord` for HashMap/HashSet                 | kept, compares sorted contents instead of hash order                          |
| `01:range-len`           | `OrdMap::range` `len()`/`size_hint`                    | exact count instead of the whole map's length                                 |
| `01:sort`                | `Vector::sort` / `sort_by`                             | stable sort                                                                   |
| `01:skip-truncate-split` | `skip`/`truncate` past the end, `Focus::split_at(len)` | as imbl: empty / no-op / allowed, no panic                                    |
| `01:panic-text`          | panic texts                                            | im's text where im and imbl differ (so these rows are `same`)                 |
| `01:ptr_eq-empty`        | `ptr_eq` of two fresh empty collections                | true for maps and sets; Vector stays false                                    |
| `01:ordset-eq`           | OrdSet `==` (and `OrdSet::diff`, decided later)        | element `PartialEq`, as im (so these rows are `same`)                         |
| `01:pools`               | Pools (shape decisions)                                | types and methods exist; a pool is a size-only handle, allocation unchanged   |

Labels for the rows of 01's section "Items decided after the first COMPAT pass":

| label                  | 01-interface.md row                                                          | one line                                                                                                                               |
| ---------------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `01:imbl-only`         | `Vector::dot`, bincode, `small-chunks`, `triomphe`, `ArcTK`, `SharedPointer` | not provided in 0.1: imbl-only and not part of im's API                                                                                |
| `01:range-type`        | `OrdMap::range` / `OrdSet::range` return type                                | im's `Iter` shape with exact `len()`; `RangedIter` is a type alias of it (also gives `ordmap::RangedIter` its `Debug`)                 |
| `01:no-node-diff`      | leaked `ordmap::NodeDiffIter` / `NodeDiffItem`                               | not provided: internal types in im's docs by accident                                                                                  |
| `01:btreeset-by-value` | `HashSet: From<BTreeSet<A>>` by value                                        | provided next to the by-reference form                                                                                                 |
| `01:loose-bounds`      | imbl's looser bounds                                                         | adopted: `Debug` bounds, generic `OrdSet::get_prev`/`get_next`, `FusedIterator` on `ordset::DiffIter`; every im program still compiles |
| `01:pool-sizes`        | pool sizes                                                                   | accessors return the size given at construction, 0 without a pool; feature `refpool` is an alias of `pool`                             |
| `01:features`          | features                                                                     | `serde`, `arbitrary`, `quickcheck`, `proptest`, `debug` in both crates; `rayon` only in `perennial`                                    |
| `01:no-inline`         | Vector inline storage                                                        | no elements live in the struct: `is_inline` is true only when empty, and a small vector and its clone are `ptr_eq`                     |
| `01:narrow-empty`      | `Focus::narrow` / `FocusMut::narrow` empty ranges                            | accepted (an empty focus), as slices and imbl; ranges outside the view still panic with im's text                                      |
| `01:sort-clone-panic`  | panicking `Clone` while sorting a shared Vector                              | the panic propagates and leaves that handle empty (memory-safe; the other handles keep their elements)                                 |
| `01:invariance`        | variance of type parameters                                                  | every collection is invariant in its parameters (the node pointer is a generic associated type); im and imbl are covariant             |

Shape decisions referenced by `same` rows: `01:bounds` (im's `Borrow` lookups, `with_hasher` taking anything `Into<Ptr<S>>`, `hasher()` returning `&Ptr<S>`) and `01:generic` (`Generic*` structs over `P: shared_ptr::SharedPointerKind`, public names are aliases, `HashMap`/`HashSet` keep the `S` parameter). imbl's `Equivalent`/`Comparable` lookup bounds are not provided as such; code that uses them with `Borrow`-compatible key types compiles unchanged. One more difference comes from [DESIGN.md](https://perennial.avarok.net/docs/design/), not 01: the `std` feature, on by default.

## Files and counts

| file                                                                     | rows    | same    | same (imbl) | differs | added (imbl API) | not provided |
| ------------------------------------------------------------------------ | ------- | ------- | ----------- | ------- | ---------------- | ------------ |
| [compat/vector.md](https://perennial.avarok.net/docs/compat/vector/)     | 122     | 102     | 0           | 12      | 6                | 2            |
| [compat/hashmap.md](https://perennial.avarok.net/docs/compat/hashmap/)   | 113     | 93      | 0           | 15      | 4                | 1            |
| [compat/hashset.md](https://perennial.avarok.net/docs/compat/hashset/)   | 69      | 55      | 0           | 8       | 5                | 1            |
| [compat/ordmap.md](https://perennial.avarok.net/docs/compat/ordmap/)     | 129     | 109     | 0           | 13      | 4                | 3            |
| [compat/ordset.md](https://perennial.avarok.net/docs/compat/ordset/)     | 79      | 68      | 0           | 6       | 4                | 1            |
| [compat/crate.md](https://perennial.avarok.net/docs/compat/crate/)       | 30      | 17      | 10          | 1       | 0                | 2            |
| [compat/features.md](https://perennial.avarok.net/docs/compat/features/) | 40      | 11      | 0           | 26      | 0                | 3            |
| **total**                                                                | **582** | **455** | **10**      | **81**  | **23**           | **13**       |

Placement rules: a `From` conversion lives in the file of its target type; the `Generic*` structs, `shared_ptr`, macros and modules live in `crate.md`; features and pool types in `features.md`.

Every item the spec lists is now decided in 01-interface.md; no row awaits a decision.

## Other persistent collection crates

|            | perennial 0.1                  | im / im-rc 15.1              | imbl 7.0.2 | rpds 1.2.1         |
| ---------- | ------------------------------ | ---------------------------- | ---------- | ------------------ |
| Licence    | MIT OR Apache-2.0              | MPL-2.0+                     | MPL-2.0+   | MIT                |
| Maintained | yes                            | no (RUSTSEC-2026-0250/-0248) | yes        | yes                |
| Vector     | RRB, O(log n) concat and split | RRB                          | RRB        | no concat or split |
| OrdMap     | B+tree                         | B-tree                       | B+tree     | red-black tree     |
| HashMap    | CHAMP trie                     | HAMT                         | HAMT       | HAMT               |
| Rc and Arc | two crates, one API            | two crates                   | generic    | generic            |

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://thomaspbraun.com/#person",
      "@type": "Person",
      "name": "Thomas Braun",
      "sameAs": [
        "https://github.com/tbraun96",
        "https://x.com/tbraun96"
      ],
      "url": "https://thomaspbraun.com",
      "worksFor": {
        "@type": "Organization",
        "name": "Avarok",
        "url": "https://avarok.net"
      }
    },
    {
      "@id": "https://perennial.avarok.net/docs/compat/",
      "@type": "WebPage",
      "author": {
        "@id": "https://thomaspbraun.com/#person"
      },
      "dateModified": "2026-12-01T23:57:36Z",
      "description": "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…",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://perennial.avarok.net/#website",
        "@type": "WebSite",
        "name": "perennial",
        "url": "https://perennial.avarok.net/"
      },
      "name": "perennial compatibility table · perennial",
      "url": "https://perennial.avarok.net/docs/compat/"
    }
  ]
}
```
