2 ms·
Are the Rust benchmarks better because of Rust or because the Rust packages are just better written?
by smt88 9y ago
Are the Rust benchmarks better because of Rust or because the Rust packages are just better written?
- kodablah 9y agoSurely the latter. Most of Rust's optimization comes from LLVM, so clang and others get the same benefit.
- rbanffy 9y agoIt could also be that Rust exposes more information that can be used to optimize the code it generates to LLVM. Its explicitness makes for a very complete depiction of dependencies and side effects.
- smt88 9y agoThat's interesting and makes sense. I had always thought of LLVM as being lossy when compiling anything more explicit than C++, but that's obviously nonsense since there are front-ends for things like Haskell. Cool!
- steveklabnik 9y agoFor ripgrep, its author weighed in on programming Reddit: https://www.reddit.com/r/programming/comments/7z64nr/oxidizing_fedora_try_rust_and_its_applications/dulmy2d/ https://www.reddit.com/r/programming/comments/7z64nr/oxidizi...