logoalt Hacker News

hiccuphippo • yesterday at 12:39 PM • 2 replies • view on HN

And many who said they'd never use custom allocators when discussing using Zig will see how neat it is now that they can do it in Rust.


Replies

tialaramex • yesterday at 1:08 PM

Maybe. I don't expect this feature to have wide appeal. It's not useless, there are cases where you want this and it's great that it stabilized, but 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.

kibwen • yesterday at 4:04 PM

People have been able to do this in Rust for longer than Zig has existed. What this new development brings is a standardized interface to streamline interoperability, not any new language capability. The bumpalo crate has been the standard bearer here for nearly a decade now, currently counting 778 million downloads on crates.io.

➕ show 1 reply