Show HN: High-speed UTF-8 validation in Rust
1–10 of 48 posts
Re: Show HN: High-speed UTF-8 validation in Rust
#2Re: Show HN: High-speed UTF-8 validation in Rust
#3So 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
#4So are there any plans to eventually contribute this to the standard library, e.g. just like hashbrown was?
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
#5So 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
#6Process the input (as quickly as possible) and never fail, but replace each invalid sequence of bytes with U+FFFD (bytes 0xEF 0xBF 0xBD).
Re: Show HN: High-speed UTF-8 validation in Rust
#7So are there any plans to eventually contribute this to the standard library, e.g. just like hashbrown was?
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
#8One flavour I would expect to be valuable that isn't present here is this: Process the input (as quickly as possible) and never fail, but replace each invalid sequence of bytes with U+FFFD (bytes 0xEF 0xBF 0xBD).
Re: Show HN: High-speed UTF-8 validation in Rust
#9Earlier quoted context omitted.
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.
Does Rust allow for libraries to “override” core functionality when available?
Re: Show HN: High-speed UTF-8 validation in Rust
#10One flavour I would expect to be valuable that isn't present here is this: Process the input (as quickly as possible) and never fail, but replace each invalid sequence of bytes with U+FFFD (bytes 0xEF 0xBF 0xBD).