The state of Rust allocators in 2026: stabilised (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (1)
Vec<u8,Goose> and Vec<u8,Global> both implement AsRef<[u8]> and AsMut<[u8]> which means code which doesn't want to grow or shrink the Vec needn't care about the Goose allocator or interact with it in any way.
In C++ today you can write this way using std::span<T> from C++ 20, and enough people write C++ 20 that it probably won't cause overwhelming anger from people you've shut out, but in C++ 17 it could not be expressed at all, so that means even today some places cannot use your code.