Unofficial Hacker News client - receive Push Notifications on replies.

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

182 points by fanf2 2 days ago | cetra3.github.io | 73 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (2)

  1. It's not just syntax. Depending on the allocation scheme used it can be very difficult to prove to the borrow checker that it's all safe, or even impossible (the same way some data structures in Rust can only be implemented with `unsafe`).
    Replies (1)
    1. If you stick to single ownership and stack tied or static lifetimes it's not too bad. If you're trying to pass parameters with lifetimes that extend beyond the stack frame and aren't static, then yes, that is painful. Callbacks or async style code in particular is challenging.