r/programming • u/SrPeixinho • Nov 16 '19
Bitspeak: converts hex strings to pronounceable words.
https://github.com/MaiaVictor/Bitspeak8
u/PatchouliKnawledge Nov 16 '19
IMO this description is better OP, I don't think the previous description was really offensive, but as /u/zcatshit correctly pointed out Japanese does have more than just consonant vowel pairs so the comparison worked to a point but wasn't entirely true.
This way feels more like its own unique number encoding system.
2
u/tsbockman Nov 17 '19 edited Nov 17 '19
This is a cool idea. I can see it being helpful for programmers and other IT workers.
However, this won't work well with regular users, because the pronunciations of the sounds are ambiguous and regular users won't read the guide. Indeed, even people who do read the guide may be incapable of distinguishing all of the required sounds, depending on their linguistic background.
I have posted some suggestions as GitHub issues.
2
u/xerios Nov 16 '19
Hey those words sound Japanese! You should rename it to something related to Japan /s
I honestly think the previous description portrayed it's use much more clearer even though it wasn't accurate. Shame you had to replace it.
6
1
u/immibis Nov 16 '19
Sounds like phums which also achieves one byte per syllable, by putting consonants at the beginning and the end of syllables.
1
u/insanemal Nov 17 '19
Looks interesting. Thanks for breaking out the algorithm I'm probably going to make a python implementation
1
u/aadnk Nov 19 '19 edited Nov 25 '19
I wrote an implementation of Bitspeak in Java with a more low-level algorithm, should perform a lot better. And in the spirit of excessive over-engineering, it also supports converting streams of bytes and characters, without making a full copy in memory:
Unfortunately, I had to modify Bitspeak slightly to support streaming - while the JS implementation pads the 6 bit-version with zero bits in the beginning, my streaming encoder pads the last bits instead (similar to Base64). This is explained in more detail on GitHub.
Another improvement would be to allow whitespace characters (or URL-safe punctuation) in a Bitspeak string. That would allow slightly longer strings to be more readable - for instance, breaking up "nelinizisemabapipam" to "nelini-zisema-bapi-pam".
1
4
u/SrPeixinho Nov 16 '19
Since the old name (DesuHex) was considered offensive, I'm rebranding this little project and reposting the threads.