Fascinating deep dive on float parsing in Rust:https://www.reddit.com/r/rust/comments/a6j5j1/making_rust_float_parsing_fast_and_correct/ …
-
-
My next goal is to re-write the the float parser using minimal unsafe features. I come from a C++-background, so using pointer ranges and manually checking bounds is habitual for me. But, the compiler should be smarter than me (and I'm writing Rust for a reason).
-
I re-implemented the parser using safe code (I still need to fuzz for arithmetic overflows and do some comprehensive tests, but there's no unsafe reads anymore), and not surprisingly, the resulting code is actually faster.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.