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

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

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

View full thread · View on Hacker News

Comment thread (4)

  1. Whataboutism.
    Replies (1)
    1. It is indeed a mote of sand that will actually simplify Rust libs. Arena or bump allocators can tie memory lifetimes to a scope/region, transforming complex ownership and object-lifetime problems into simpler region-lifetime problems.
      Replies (1)
      1. Can Rust’s borrow checker actually take notice of those transformations. I was not aware that using a bump allocator via the allocator API would allow for the static checks to reason about all intra-region allocations as a single entity.

        If you know where there is any information on the borrow checker’s ability to check ‘under’ an allocator Id love to read about their strategy.

        Replies (1)
        1. Yes, this is already possible and done in crates like bumpalo.