5 ms·
The Ternary Manifesto (2012)
- lr1970 6y agoRussians build balanced ternary computer in 1958 [1] and were experimenting improving its design up until early 1970-th. [1] https://en.wikipedia.org/wiki/Setun https://en.wikipedia.org/wiki/Setun
- rthomas6 6y agoProblem is, binary computers have decades of R&D and supporting infrastructure. A lot would have to be retooled for trinary; you can't even power the chips in the same way. Not to mention the surrounding technology such as RAM and bus architecture. You're essentially starting from scratch in a few ways. I'm not saying it couldn't be done, just that it would take a lot of years and a lot of money to get it up to speed.
- spenczar5 6y agoOf course, you are right. But one wonders whether things may change on much longer timescales (hundreds or even thousands of years). Certainly, there have been past technologies which got entrenched in a suboptimal spot, and were later radically altered. “The thing about cars is that everybody already knows how to ride a horse, and you can find a stable in any village in Europe. They work even on rough roads and they are much cheaper. Their “fuel” can be found basically anywhere. Cars may be nice but I can’t see them winning out.” No claim that ternary is to cars as binary is to horses; I think the difference is way less. But its a fun way to think about the argument “we won’t change because the existing technology has too many decades behind it.”
- rcxdude 6y agoIt's not so clear ternary would actually be an improvement: at least in terms of how we can implement circuits today, ternary's radix efficiency is offset by the inefficiency of implementing ternary logic. It might work if you have a new way of constructing logic circuits where this efficiency difference doesn't appear. (see https://arxiv.org/abs/1908.06841 https://arxiv.org/abs/1908.06841)
- kibwen 6y agoIn terms of sheer aesthetics, ternary computing is interesting because base-3 is the integer base with the highest numeric information density (https://en.m.wikipedia.org/wiki/Radix_economy https://en.m.wikipedia.org/wiki/Radix_economy) due to being the nearest integer to e. Of course, the second-best integer base by this metric is base-2, by a rather slim margin. :P That said, I presume this is the basis for: "Donald Knuth argues that [ternary computers] will be brought back into development in the future to take advantage of ternary logic's elegance and efficiency." https://en.wikipedia.org/wiki/Ternary_computer#Potential_future_applications https://en.wikipedia.org/wiki/Ternary_computer#Potential_fut...
- brandmeyer 6y agoRadix economy doesn't make sense on its own, IMO. You've got to incorporate signal strength somehow. Its like arguing that TPSK outperforms BPSK and QPSK on certain metrics. Meanwhile, the world moved on to higher-modulation QAM and OFDM. Phrased a little differently: radix economy is obsolete - you should be using the Shannon channel capacity limit to analyze the system's information density.
- fallingknife 6y agoIn the link base 4 is shown to be equal to base 2 in radix economy. So maybe base 4 is a good choice as it would take up half the number of bits (quits?).
- retrac 6y agoI'm unsure if it counts as elegant. It's so large. But maybe our minds are too small to see the elegance! Ternary logic is an enormous space, mathematically. In two value Boolean, there are 16 distinct binary operators, many of which are useless values (such as identity). We're basically left with the family of NAND/NOR/XOR and their complements. NAND/NOR, or their complement and NOT, are universal and can construct the rest. In some 3VL like Kleene, there's 3^9 (about 20,000) possible operators, many of which are logically universal. Boolean NAND and AND-OR-INVERT are universal and map very nicely to CMOS. But it's likely many (as in dozens or hundreds) of different universal gates in 3VL map nicely into electronic structures. (Assuming the existence of circuits for 3VL.) It's such a large space to explore that we've only begun to scrape the surface.
- LargoLasskhyfv 6y agoThe date of publication is causing irritation.
- dooglius 6y agoStart date is April 1 but other sections were written later, so I'm not sure if this is serious. The main problem I see, unaddressed in my skimming, is the analog level: you need to replace the transistor with something more sophisticated, or possibly two different types of transistors. Worth noting: SSDs do store data in multi-level cells (generally with much more than 3 levels) to get better density out, but they can get away with this because the performance requirements are much lower than those of a CPU and it's not doing any actual logic, just translation.
- bayindirh 6y agoThe manifesto clearly states that > While this work began as something of a joke, there are some very serious reasons that ternary logic may have value. So, it's semi-serious.
- retrac 6y agoThe author (Doug Jones) has a bit of a taste for projections of questionable utility but high didactic value. (I can sympathize!) See his instruction set designs that'll never be implemented, but which offer interesting ideas. This would be a project in that vein. It's very serious. But it's not. Building a ternary computer requires you to think completely outside the box. You even have to pick which kind of ternary "Boolean" logic you'll use, as there's no consensus on how 3VL should work. Then fill out all the 3^9 possible basic logical operations and pick a few logically universal ones as building blocks. And then you have to design circuits to implement them. And none of your existing bit-twiddling logic designs -- or algorithms -- will work. It's total re-invention of the wheel, really. But it's mostly a thought experiment. While there are theoretical advantages, ternary machines are, in honesty, unlikely to ever offer any real advantage over binary ones. More electronic complexity for something you can trivially simulate on a binary machine. But it does make you think.
- rini17 6y agoI think problem in high frequency ternary isn't primarily transistors but interconnection. When using voltage levels like -1, 0, 1 on one wire, switching from -1 to 1 goes through 0 briefly and you need to guard against that. Binary does not have this problem. Using two wires (which take up 2x space) introduces intermediate states instead by timing differences between individual wires. This case is ubiquitous problem also in binary, called hazards. There are various solutions, like gray code (only one wire changes at a time) but they increase complexity. Perhaaaaps if we had photonics with polarization signalling in 3 axes....
- cyberlab 6y agoAt first I thought this was something to do with ternary operators[0]. I know in JS you can do something like this: var resultofexpression = conditionasboolean ? truepart: falsepart; You can actually get away with /never/ using if...else statements and do everything with ternary operators, but it's harder to comprehend the code. Also as a separate observation: Adding quantum computers into the mix of these writings would really jazz it up. [0] https://www.javascripttutorial.net/javascript-ternary-operator/ https://www.javascripttutorial.net/javascript-ternary-operat...
- Twixes 6y agoI suppose in three-valued logic the equivalent would be a… quaternary conditional operator
- buescher 6y agoIHNJH IJLS "Soviet ternary Forth".
- AnIdiotOnTheNet 6y agoA while back I put together the base of an emulator for a fictional balanced ternary computer. I chose a completely different binary encoding method where each ternary value had its negative and positive trits stored separately. This undoubtedly made it slower to emulate arithmetic since my sum implementation has a while loop to deal with carries while the implementation in the article uses a variation of packed BCD math. Good to note if I ever go back to this. I used a sort of balanced heptavintimal representation which differs significantly too. Where positive 3-trit values were represented as expect (0-D) and negative values were represented by the lowercase equivalent of the positive for letters and the symbol above the positive number key on a standard US keyboard. So for instance the number "--00-+-++" would be "c@%". I chose a 9-trit "tryte". Each group of three trits was a called a "tone". Why "tone"? Because in the elaborate back story of the computer's creation one of its primary functions was playing simple music compositions. 3 trits yields 27 values or silence (0) and one octave each above and below including sharps and flats. A grouping of 3 such "tones" is a "tritone" or "tryte" (the spelling with 'y' helps disambiguate from 'trit' when reading). The backstory for this thing was actually significantly more elaborate and complete than the emulator ever was. I did work out how to do parity-block style error recovery with ternary though.