Swipe notes
USThe state of Rust allocators in 2026: stabilised
USHacker News

The state of Rust allocators in 2026: stabilised

fanf2 The state of Rust allocators in 2026: stabilised

Link shared in the post ↗

What people say

ozgrakkurt · Hacker News
Good luck to all people who are going to try implementing allocators! Last time I tried, even the standard containers were giving different layouts to allocate and deallocate. Also as a bonus, you get to put another template parameter to all of your containers!
slopinthebag · Hacker News
at this point I don't see much argument for languages that make allocators explicit. the escape hatch is there in rust for the rare case when you need it, and you get safety and all of rust's other benefits now too. well done to the rust core team to get this stabilised.
xiaogui917 · Hacker News
The part I find most important here is the ecosystem effect: once Allocator is stable, libraries can be allocator-agnostic without splitting the ecosystem between nightly and stable crates. That should make it much easier for a database, game engine, or embedded project to plug in its own allocation strategy without forking every dependency. For most applications the default allocator will still b

Sources

[1] Hacker News