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 (2)

  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.