2 ms·
What about languages that do not include their own hash tables? C is allowed to, but Rust is not?
by steveklabnik 10y ago
What about languages that do not include their own hash tables? C is allowed to, but Rust is not?
- igouy 10y agoNo, the C programs are not allowed to implement their own hash table -- and as a consequence no C k-nucleotide program was shown for a couple of months. http://benchmarksgame.alioth.debian.org/u64q/knucleotide-description.html#knucleotide http://benchmarksgame.alioth.debian.org/u64q/knucleotide-des... Rust std::collections provides hash table implementations, it's just a matter of using them.
- steveklabnik 10y ago> some use a third-party hash table library. This is what I'm getting at. Since C doesn't provide a built-in hash table, they get to choose one that's good on this benchmark, but other languages can't. That's not great. (I actually have no idea if the std::collections hashmap is deficient in some way, I care about this in the abstract, not specifically.)
- igouy 10y agoNo, they don't "get to choose one that's good on this benchmark". They get to use a third-party library that was not invented for this benchmark -- that would be the point!