logoalt Hacker News

koverstreet • yesterday at 10:35 AM • 1 reply • view on HN

This isn't something baked into the core language like C++ features tend to be. This is standardization of library code, thoroughly vetting what people already had to do but in incompatible ways.

This is the kind of work that is making Rust far easier and more productive for systems work, including even kernel development, than the bad old days of when every project was a monolith and everyone was reinventing the wheel.

Over the past several months I've been converting bcachefs to Rust, and as part of that I have a whole truckload of code that I can now release as small self contained crates that anyone can use: safe RCU, an async runtime suitable for kernel IO paths, a fully lockless implementation of Cuckoo - custom allocators getting standardized is directly pertinent because now all that code (RCU, especially) will compose much better with other people's crates.


Replies

GuB-42 • yesterday at 4:01 PM

> This isn't something baked into the core language like C++ features tend to be.

Not much of C++ is baked into the core language, most of it is just the standard library, it includes custom allocators. If you look at libboost, it has always been some kind of a trial ground for future C++ versions, with the best parts ending into the standard, and it is just a library.

Not so different from what is happening with Rust.

➕ show 1 reply