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

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

215 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 (3)

  1. > This isn't something baked into the core language like C++ features tend to be.

    Not much of C++ is baked into the core language, most of it is just the standard library, it includes custom allocators. If you look at libboost, it has always been some kind of a trial ground for future C++ versions, with the best parts ending into the standard, and it is just a library.

    Not so different from what is happening with Rust.

    Replies (1)
    1. C++ has new/delete as keywords, whereas allocation is purely a library concern in Rust.
      Replies (1)
      1. Which is one of the reasons, that unlike C++, Rust has the issue with allocate first on the stack, move into the heap afterwards, instead of directly allocating into the heap.