Unofficial Hacker News companion — get notified on comment replies, and more.

The state of Rust allocators in 2026: stabilised (opens external site)

219 points by fanf2 4 days ago | cetra3.github.io | 90 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. so... what exactly was changed from straight-forward implementation of the feature that has been "unstable" for so many years?
    Replies (1)
    1. * Getting all the bajillion stakeholders to agree on what to stabilize. (I think this is the hardest part.)

      * Fixing a pile of soundness bugs, (the fixes spawned a couple new still-unstable traits in the process: AllocatorClone and StaticAllocator).

      * Specifying that panicking isn't allowed.

      * Rewriting the safety docs of the Allocator trait to be more airtight.

      Replies (1)
      1. Whether it should be dyn-safe or have associated types (mutually exclusive choice) was also a big point of contention.