News for hackers. Stuff that matters.
Re:Ask HN: Why is binary used instead of ternary? by kedean on Friday March 13, 2015 @02:20PM (#9198845)
It's completely possible, but it's just not worth it. The information density of ternary is higher than binary, sure, but you now need 3 states to represent it. This applies to ternary vs base 4, and so on. As it turns out, it's been proven that binary has the optimal ratio of info density to symbols, and any higher of a base gives you no net benefit. Unfortunately I don't have a link to the proof on hand, but if someone else does I'd appreciate it.

We would also lose decades of knowledge on binary operations and how best to do it. Two's complement is out the window, for instance.

Additionally, the entire CS mindset is built around boolean logic. Exclusive-or, for instance, makes no sense when you remove binary operation. There's not much to gain from it either, since any sort of ternary operation can be implemented as a binary operation without that much overhead.

Re:Ask HN: Why is binary used instead of ternary? by mcshaner1 on Friday March 13, 2015 @05:15PM (#9200105)
I think the optimal base is actually the natural log e, or about 2.71. I saw a derivation of this before but can't find the reference. Ternary actually comes about a bit better from an information density standpoint, but all the other points you made about difficulties with base 3 and benefits of base 2 still stand.
Re:Ask HN: Why is binary used instead of ternary? by kedean on Saturday March 14, 2015 @01:07PM (#9203295)
Good point, 2 is the optimal integer base.