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

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

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

  1. > Last time I tried, even the standard containers were giving different layouts to allocate and deallocate.

    Do you have some concrete examples? I couldn't reproduce this but maybe I'm looking in the wrong places.

    Replies (1)
    1. It was in this code.

      https://github.com/ozgrakkurt/s_alloc

      Test were failing until adding this

      https://github.com/ozgrakkurt/s_alloc/blob/42adbd31e9835cc17...

      Also I remember finding that allocator trait explicitly mentions this after finding the error.

      Replies (1)
      1. Ah I see, that makes sense.