3 ms·
Yawn, why re-invent the wheel ? UUID = --> universally unique <-- identifier Why reduce the entropy just to make it look pretty ? As for the people who say o
by traceroute66 6y ago
Yawn, why re-invent the wheel ?
UUID = --> universally unique <-- identifier
Why reduce the entropy just to make it look pretty ?
As for the people who say oh, but I can't remember/recognise "e0e93156-c68b-493d-bf31-19048db7dd9e"...
Well sure, but git invented that wheel before you. Just use the last 11 characters for local discussions/notes/whatever.
Finally, what about people who are non-native/fluent in English ?
"e0e93156-c68b-493d-bf31-19048db7dd9e" flows accross borders and languages
"Romeo Romeo Where For Art Thou Romeo" could easily be meaningless gibberish for a non-native/fluent English speaker, and also opens up totally un-necessary issues of pronunciation and spelling.
There is also the possibility certain words might mean something different in another language. Such as the famous Colgate in Spanish which means "go hang yourself" !
- debdut 6y agoSorry, but information or entropy is not lost, its a bijection, I will soon add the inversion.
- traceroute66 6y agoI'm not claiming to be the world's leading expert on UUIDs but you must be loosing something somewhere ? If its not entropy, you must be opening yourself up to collisions or something ?
- antoinealb 6y agoWhy ? It looks like those ShakespeareIDs (SIDs) are much longer than UUIDs. So I am not sure how you reach the conclusion than the count of possible SIDs is smaller than UUIDs. The author mentions its a bijection, meaning for every UUID you can generate its corresponding SID and vice versa. This, in turn, means there is no higher probability of collision in the SID space than in the UUID one.
- debdut 6y agoNo, I can prove it mathematically, it's an easy bijection exercise.
- tleb_ 6y ago> Why reduce the entropy just to make it look pretty ? You assume a loss of entropy, why? The usage section describes a way to get a "readable UUID" by passing an existing, regular UUID. The reverse operation doesn't seem to be implemented yet though. const id = require('uuid-readable') const uuid = require('uuid') var buf = new Array() uuid.v4({}, buf) console.log(id(buf))
- debdut 6y agoI will add the inversion, it's easy
- irjustin 6y agoI admit I had the same question of "does this open up collisions/smaller UUID space?" But man, the way you asked it. Assumed it was not possible even after the author replies saying they can mathematically prove it. Why ask the question if you're just going to stick your head in the ground? Downvoted.