Axiom’s memory model
RECAP
Automatic ownership for everyday values. Checked regions when you need a bounded allocation lifetime. Reference counting and arenas work together, with no tracing collector or borrow checker.
- Region-scoped
- Choose an allocation lifetime with
region. The compiler checks visible reference escapes. - Effect-checked
Alloc,MutandUnsafedescribe memory operations and participate in effect checks and restrictions.- Counted
- When the final share ends, owned fields are released and eligible small blocks become reusable.
- Arena-hybrid
- Region resets reclaim their allocation extent, including cycles within it. Counting also works inside regions.
- Predictable reclamation
- Ownership events and reset boundaries define reclamation points, without a constant-time guarantee.
Know the boundaries: cycles and larger dead blocks wait for an arena reset. Some ownership paths still retain shares. Raw-address validity remains an unsafe obligation; effect checks do not prove it.
Read the guarantees and limits