There needn't be any "encoding" really. Modern CPUs have a 32-bit compare instruction. The CPU doesn't understand types as a compiler does; it will accept any aligned series of 4 bytes as a comparand. Some implementations of strcmp use that. Forcing the identifiers to 4 bytes eliminates some if-else edge casing before the compare, which might speed things up.
Disclaimer: I don't know anything about urbit. I agree such an optimization is surprising. The more normal pattern is to convert human-readable symbols to integers early, thus avoiding string comparison in performance-critical sections.
This fixed machine-width type of character encoding isn't unheard of. For example, Windows uses tags of this size to identify chunks of memory associated with drivers: https://msdn.microsoft.com/en-us/library/windows/hardware/ff...
Edit: Example from Reddit: "sensible reason there are so many four-letter words is that they are symbols in the kernel, and four-letter symbols fit into 31 bits, which lets us use machine ints as an interpreter optimization rather than calling out to GMP."
Sensible?! Hahahaha! This has to be comedy. They are bigint-encoding identifiers? There is no sane reason to do this.
OK, I'm just going to go through the website here:
"If Bitcoin is money and Ethereum is law, Urbit is land."
Wow, how expositional.
"A 32-bit ship (like ~firbyr-napbes) is called a "planet." A 16-bit ship (like ~pollev) is a "star." An 8-bit ship (like ~mun) is a "galaxy.""
Edward Lear on subnets?
"Much as all real-estate titles in England trace back to William the Conqueror, all certificates in Urbit trace back to ~zod."
All hail!
"As an Urbit user, these basics are all you need to know."
Really? Because I still have no idea what the hell is supposed to be going on here.
"A principle called "Zooko’s triangle" says that a practical identity system can achieve any two of these goals."
Disproved by Namecoin, FWIW.
"For more on Urbit's governance design, see our beliefs and principles and our interim constitution."
Oh great, so this "personal server" project (as described on the front page) has a constitution and a statement of principles?
Seriously, the only way I can interpret this is as some sort of abstract absurdist comedy project.