by jeroenhd · 3y ago · 0 comments
Punycode is a bad compromise but nothing better is available. At this point entire TLDs now rely on it, it cannot be phased out any more. Hopefully this will be a lesson next time someone invents a protocol (though I doubt it will when I read through the comments of some anglophone commenters here).
Punycode is complexity, for sure, and it could perhaps have been avoided by just decreeing that non-ASCII labels are UTF-8 on the wire in DNS. This was considered, and you can imagine the lengthy threads that that topic produced then and still occasionally produces now at the IETF!
There are so many examples of this:
- DNS (for a lot of other reasons than domain names)
- IPv4
- TCP (see the motivation for QUIC)
- a *lot* of incredibly obscure text encodings
- IBM 3270 control codes
- Sometimes even just ancient code no one understands anymore (search for the source code of Plan 9's `troff` for an example)
- …and so on and so forth
…and if someone wants to tackle such a situation, usually the outcome is either: - build another hack to add to the pile of hacks we won't be able to get rid of
- XKCD 927 (n+1 competing standards, because the old one will live on for ever anyway)
- face second system syndrome (resulting in an overcomplicated mess)
- get no traction because not enough people will switch to your new and shiny solution (due to the other calcified things in the stack or new flaws with the new solution)
So, my question: How should our civilization deal with this?