3 ms·
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
by fungos 10y ago
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.
- steveklabnik 10y agoYou'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.
- igouy 10y agoWhere is it forbidden for programs written in C to use FNV? For example https://github.com/haipome/fnv/blob/master/fnv.c https://github.com/haipome/fnv/blob/master/fnv.c
- steveklabnik 10y agoI'm referring to my reply to you above about not being able to implement a different map, not the hash function itself.
- deleted 10y ago[deleted]