What Hacker News thinks, at a glance.

The state of Rust allocators in 2026: stabilised

What HN thinks

The discussion centers on the stabilization of Rust's allocator API, with disagreement over whether this standardization is a necessary tool for systems programming or an unnecessary increase in language complexity. Positions range from viewing it as essential infrastructure for specialized domains to seeing it as bloat that complicates the language.

Clear majority (61%) Based on 36 of 70 sampled comments that took a side (82 in the thread).

  1. Stabilization is essential infrastructure for systems programming 61%

    Custom allocators are necessary for specialized domains like embedded systems, kernels, games, and databases to manage memory, performance, and fragmentation. A stable interface prevents ecosystem fragmentation and allows libraries to be allocator-agnostic.

    “having a stable, shared interface is what turns custom allocation from a niche trick into ordinary infrastructure.” — xiaogui917

    22 comments

  2. Rust's allocator implementation is overly verbose compared to C/Zig 17%

    Implementing allocators in Rust is comically bloated compared to C or Zig due to trait requirements, safety constraints, and borrow checker rituals, making low-level memory management more difficult than necessary.

    “if you compare writing an bump allocator in c or zig vs rust, it is comically bloated.” — ozgrakkurt

    6 comments

  3. The feature is a library standardization, not a language change 11%

    Allocators are a library concern rather than a core language feature. Stabilizing the API formalizes existing practices and improves interoperability without imposing tradeoffs on users who do not need custom allocation.

    “features that aren't paid for when not used are great since they stretch the language in an orthogonal direction that doesn't represent any tradeoffs for anyone else” — vlovich123

    4 comments

  4. Custom allocators are niche and not widely needed 8%

    While custom allocators have valid use cases, they are not common for most developers. Users should avoid them until they have a specific problem to solve, as they add complexity without benefit for general-purpose programming.

    “I think they're not very common and so in most cases as with everything else you shouldn't do this until you've got a problem it can solve.” — tialaramex

    3 comments

  5. Custom allocators are unnecessary complexity and bloat 3%

    For most applications, the default allocator is sufficient. Introducing a stable allocator API adds complexity to Rust, risks bloating the language like C++, and pollutes the landscape with features most users will never need.

    “I consider those as unnecessary complexity for a niche use case, and I'm a bit annoyed that they will pollute the Rust landscape.” — speedgoose

    1 comment

Read Later