Re:Rust vs C Pitfalls
by steveklabnik on Wednesday December 28, 2016 @12:14AM
(#13268575)
The Benchmarks Game has more rules than that. It's not about "morals."
[ Parent
| on HN ]
But people are criticizing C because the way it is implemented is not "realistic". Or that the "hash" is a hack that will never work in real life.
I don't know the background of these people, but they couldn't be more wrong. So that looks like "morals" or just they don't ever saw real C code out there.
Re:Rust vs C Pitfalls
by steveklabnik on Wednesday December 28, 2016 @12:13PM
(#13271889)
You're making an assumption that the C code is allowed to have the same algorithm as the Rust code. This is not actually exactly true, based on the rules of the game.
Where is it forbidden for programs written in C to use FNV?
For example https://github.com/haipome/fnv/blob/master/fnv.c
Re:Rust vs C Pitfalls
by steveklabnik on Wednesday December 28, 2016 @01:58PM
(#13272701)
I'm referring to my reply to you above about not being able to implement a different map, not the hash function itself.