News for hackers. Stuff that matters.
Re:Show HN: High-speed UTF-8 validation in Rust by kouteiheika on Wednesday April 21, 2021 @07:16AM (#26888022)
So are there any plans to eventually contribute this to the standard library, e.g. just like hashbrown was?
Re:Show HN: High-speed UTF-8 validation in Rust by mrec on Wednesday April 21, 2021 @07:33AM (#26888193)
The author discusses this in the corresponding /r/rust thread:

https://www.reddit.com/r/rust/comments/mvc6o5/incredibly_fas...

tl;dr: it's not straightforward, mostly because the standard functionality lives in `core` which doesn't have access to OS support for CPU feature detection.

Re:Show HN: High-speed UTF-8 validation in Rust by bombcar on Wednesday April 21, 2021 @07:46AM (#26888322)
Does Rust allow for libraries to “override” core functionality when available?
Re:Show HN: High-speed UTF-8 validation in Rust by Kinrany on Wednesday April 21, 2021 @07:53AM (#26888392)
If it was all userspace Rust, it would have been possible to choose the implementation at compile time conditional on the presence of std.