← All questionsToo earlyLanguages and frameworks

What does Rust's newly stabilised allocator API actually give us?

You are not the only one. Asked 1 time since November 2026, 3 of them in the last 4 weeks.

Read what people asked

Times asked per week

9 Sept – 1 Dec
Week of 9 SeptTimes asked0Week of 16 SeptTimes asked0Week of 23 SeptTimes asked0Week of 30 SeptTimes asked0Week of 7 OctTimes asked0Week of 14 OctTimes asked0Week of 21 OctTimes asked0Week of 28 OctTimes asked0Week of 4 NovTimes asked0Week of 11 NovTimes asked0Week of 18 NovTimes asked03Week of 25 NovTimes asked3
Week of 9 SeptWeek of 25 Nov

Coloured columns are the last 4 weeks.

What people answer

  • One saysStabilising the allocator API took the most effort in reaching agreement among many stakeholders on what to include.
  • One saysStabilisation involved fixing soundness bugs, forbidding panics in allocators and tightening the safety docs, which spawned new unstable traits like AllocatorClone and StaticAllocator.
  • Some sayThread-local allocation can be approximated by a global allocator that consults a thread-local or task-tracking variable, avoiding per-container new_in calls.
  • One saysTruly thread-local global allocators are unsound, since memory must be freed by the same allocator and objects can move across threads, which the type system cannot restrict.
  • Some saySmall static binaries are achievable by other routes, such as musl with C or Zig, with Rust reaching about 300KB with std.

Named in the answersAllocatorCloneStaticAllocatormuslZigglibctracing

A language model summarised 6 public replies and posts. Views are mixed. These are other people's views, not advice from Navigara.

What people asked

Each line is our one-sentence summary. The link opens the original discussion.

Where it is asked

  • Hacker News3

Goes straight to the person who runs this site. No account needed.