Slashdot Mirror


Ternary Computing

eviltwinimposter writes: "This month's American Scientist has an article about base-3 or ternary number systems, and their possible advantages for computing and other applications. Base-3 hardware could be smaller because of decreased number of components and use ternary logic to return less than, greater than, or equal, rather than just the binary true or false, although as the article says, '...you're not going to find a ternary minitower in stock at CompUSA.' Ternary also comes the closest of any integer base to e, the ideal base in terms of efficiency, and has some interesting properties such as unbounded square-free sequences. Also in other formats."

113 of 375 comments (clear)

  1. The future holds that... by purduephotog · · Score: 3, Insightful

    ... the choices will be 0, 1, and Maybe :)

    Actually not a bad step- I wonder when they look at quantum computers using light ... this might be an easier step to integrate. There was a previous article here talking about light based quantum computing- give it a few years :)

    1. Re:The future holds that... by LS · · Score: 2

      Not a bad step? Towards what? What do you mean, an easier step to integrate? I don't understand much about quantum computers using light. What does ternary computing have to do with quantum computers using light?

      --
      There is a fine line between being a cultivated citizen and being someone else's crop. - A. J. Patrick Liszkie
    2. Re:The future holds that... by Tumbleweed · · Score: 4, Funny

      > the choices will be 0, 1, and Maybe

      You're all wrong.

      There can BE only ONE!

      :)

    3. Re:The future holds that... by purduephotog · · Score: 3, Insightful

      Light has infinite wavelengths (not in reality as only certain wavelenghts are emitted, but you can combo those with different techniques to get infinite). I'm sorry you don't undertand much about quantumn computers constructed with light- i suggest reading up on it.

      Since you have an infinite number of selections to choose from, and as was demonstrated that base E is the most efficient to represent numbers in (ie, infinite representation in base e is better than other bases), then it stands to reason that quantumn computers based on light should be designed to utilize base e, but since that isn't very practical ternary might be the first logical step.

      And howcome I got rated offtopic? Quantumn computing is the logical next application of ternary computing, since binary is pretty much entrenched in everything from your local computre reseller to every time you toss a dime for 'heads or tails'.

    4. Re:The future holds that... by ReelOddeeo · · Score: 2

      the choices will be 0, 1, and Maybe

      So does this mean that computers and consumer electronics devices' power switches would stop being labeled with just 0 and 1?

      Doesn't it make sense that your Ternary computer from BestBuy would have a three state power switch?

      --

      Those who would give up liberty in exchange for security and DRM should switch to Microsoft Palladium!
    5. Re:The future holds that... by nihilogos · · Score: 2

      I wonder when they look at quantum computers using light

      Quantum computers using photons is a good idea because photons are very well insulated from noise and decoherence, however it is a bitch to make them interact with each other for the same reason, so gates like controlled nots will be next to impossible to implement.

      There is, however, a non-deterministic QC based on linear optics where multi-qubit work gates 1/16th of the time or something. I don't expect it will ever be useful for doing real computing though

      The paper is here.

      --
      :wq
    6. Re:The future holds that... by nomadic · · Score: 2


      I don't understand much about quantum computers using light

      Nobody knows much about quantum computers using anything...

  2. Does this mean by Amazing+Quantum+Man · · Score: 4, Funny

    They've finally invented my favorite circuit... the Maybe gate?

    --
    Fascism starts when the efficiency of the government becomes more important than the rights of the people.
    1. Re:Does this mean by SecretAsianMan · · Score: 3, Funny

      They've finally invented my favorite circuit... the Maybe gate

      Good... Hopefully this will let us design computers with much less Bill gates.

      --

      Washington, DC: It's like Hollywood for ugly people.

    2. Re:Does this mean by Luyseyal · · Score: 2

      All those modal logic guys can finally implement the decidable portions of their theory without base-level translation. woot. or wait, I forgot about all those other truth value schemes... like the boolean complete truth value system. drat.

      <g>
      -l

      --
      Help cure AIDS, cancer, and more. Donate your unused computer time to worldcommunitygrid.org. Join Team Slashdot!
    3. Re:Does this mean by Glytch · · Score: 2

      Dear god, Intercal in hardware. I'll never sleep again.

  3. well known by 4im · · Score: 2, Insightful

    In theoretical CS classes, we learned all about it, it's not exactly news.
    The thing is, it's simpler to manufacture binary logic than ternary.
    So, no big deal really... the choices were made some time ago.
    Next step: quantum computing.

  4. Not base3 again by GunFodder · · Score: 4, Insightful

    Seems like someone has to bring up base3 computing every once in a while, just like asynchronous circuit design. I'm sure there are plenty of reasons why they are technically superior. But it has taken us 50+ years to get to this point with synchronous circuit design and binary logic. It would take many years to get to this point using totally new technology, and in the meantime the current computer industry would continue to grow exponentially. I'll believe in these technologies when I see a useful example of them.

    1. Re:Not base3 again by Mannerism · · Score: 3, Interesting

      I agree that a practical ternary computer is unlikely. Rather, the value of the theory might lie in helping us to realize the shortcomings of the binary approach, and the way our familiarity with it molds our thinking. How many of us would have come up with the ternary solution to the coin balance problem?

    2. Re:Not base3 again by Tom7 · · Score: 3, Insightful


      The reason that the computer industry grows exponentially is exactly these kinds of paradigm-changing technologies.Most of these have happened in manufacturing processes, but I think as we exhaust that field we will be pushing the changes higher up the architecture. (x86, your days are numbered!)

      That said, base 3 is probably pretty stupid. Asynchronous circuits, however, might really make a difference some day...

  5. Ternary has been known to be efficient... by ponos · · Score: 5, Informative

    Try reading Knuth's The Art of Computer Programming, Vol. 2, Section 4.1, Positional
    Number Systems.

    There is an extended discussion on the balanced
    ternary system and some other exotic number
    systems (base 2i etc). There are some merits
    to the ternary system but it would be
    harder to implement with transistors.

    1. Re:Ternary has been known to be efficient... by Asic+Eng · · Score: 5, Informative
      but it would be harder to implement with transistors.

      Very apt. A binary transistor has two states, idealized "on" and "off". From a more analog view that's low current and high current - appropriately connected with a resistor that results in low and high voltages.

      The nice feature is, that a high voltage at the input opens the transistor, a low voltage closes it. So we get a relatively complete system, I can get from hi to lo, from lo to hi.

      Tertary would put us into "middle" voltage. But middle on the input, creates middle on the output, no direct way to get either high or low - making basic circuits more complex.

      But the real killer with "middle" is manufacturing. Let's say we use 2.8 Volts for the high level, 0.2 Volts for the low level. Due to manufacturing tolerances some chips transistors would be "fully" open at 2.3 Volts, others at 2.7 Volts. Easy to compensate on binary designs, you just use the 2.8 to switch the transistor, but for the middle level? What's required to switch a transistor to middle on one chip, is sufficient to open the transistor completely on another chip...

      So your manufacturing tolerances become way smaller, and that of course reduces yield which increases cost.

      Add to that, that chips today work with a variety of "hi" voltages like 5, 3.3, 2.8 ... Most lower-voltage chips are compatible with higher-voltage ones, they produce voltages which are still over the switching point and accept higher voltages than they operate on.

      With ternary that becomes impossible and chip manufacturers need to progressively lower the voltages for higher speed.

      Plus disadvantages in power consumption and and and...

      Admittedly the article doesn't seem to suggest that ternary is viable, just that it's pretty. Which may be true for a mathematician. :)

    2. Re:Ternary has been known to be efficient... by Teratogen · · Score: 3, Interesting

      A really cool number system that is rarely mentioned is factorial base notation. What makes factorial base interesting is that all rational number are represented by finite factorial base numbers, and transcendental numbers like e and pi are represented by infinite but nonrandom factorial numbers. So, somehow factorial notation "captures" and "tames" the complexity of the real number continuum in a way that decimal notation can't.

      --
      --- even the safest course is fraught with peril
    3. Re:Ternary has been known to be efficient... by t14m4t · · Score: 2
      What about MOSFETs? As I understand it, there is a channel which is either opened or closed (depending on how it is created). A third state would be neither. In this case, you can either fully shut the channel, fully open the channel, or leave it in a half-open state.

      Now, I'm obviously not a EE major (I just happen to know a smidgen from my current job), so i may be WAY off base. But...?

      weylin

      --
      67.5% Slashdot Pure I guess I need to work on that.... :)
    4. Re:Ternary has been known to be efficient... by Anonymous Coward · · Score: 2, Interesting

      It may be difficult using conventional transitors, but an interesting approach might be a spin-valve transistor.

      Simply put it's a transistor that has different transport properties for either spin up or spin down electrons. The Giant Magneto Resistive (GMR) head in your fancy new 100GB hard disk is a fine example of spin effects being used in every day life. A similar device could be used for doing base 3 arithmatic.

      A while back I did some simulations (admittedly simple and first order) of seperating different spins without using ferromagnetic materials. Which are used in GMR devices and are basically nasty things to use in device fabrication that should be avoided if at all possible. I found that you can get pretty good separation from the geometry of the device and an applied external magnetic field. This was all done with device sizes and parameters that were reasonable (a few microns in size, not huge magnetic fields, etc) for real life.

      Imagine a transistor with a single source and two drains one for spin up and one for spin down.

      Not to say it would be easy, just that it's possible given a little ingenuity to make a transitor that has 3 states.

    5. Re:Ternary has been known to be efficient... by maraist · · Score: 2
      What about MOSFETs? As I understand it, there is a channel which is either opened or closed (depending on how it is created). A third state would be neither. In this case, you can either fully shut the channel, fully open the channel, or leave it in a half-open state.


      "neither" is vague. It's close to saying it's either light, dark or neighter. Transistors have two basic modes of operation (that I'm aware of) that fits a garden hose analogy; You either step on the hose (blocking current) or physically remove the foot (to allow current). You have to physically attach the gate to either a positive source or a negative drain, otherwise static charge will keep it in what-ever state it was previously. The output of a MOSFET is usually the gate of another mostfet. Moreover, the gate of a MOSFET is like a capacitor, so the role of the gate-controller logic is to charge or discharge the gate-capacitor. Thus having some "dim" state that is neither blindingly bright nor pitch dark only slows the process of opening or closing (charging/discharing) the targeted gate.

      You might hear about a third "Z" state (cheater latches), but that's just when you don't connect the source of the FET to power or ground, but instead to the output of some other combinational logic. The idea is that when the FET is pinched off, you've electrically isolated one logic component from another. This is good for multiplexing (like memory arrays), where you'll have the output of multiple logic devices connected to a single input of another logic device, and you "activate" only one output device at a time. (The alternative would be to risk having the output of one device +5V, and the output of another device 0V, thereby short-circuiting).
      Bipolar transistors are even worse since they never truely pinch-off, and even leak current into the control. But they have more efficient current characterisitcs (higher current swings) and thus work well to amplify the charging /discharing of the FET capacitors. Hence the buzword BiCMOS.

      These are the basic uses of FETs that I've encountered in my undergraduate EE cariculum. End result, there's no free lunch with trinary logic systems and current transistors.

      -Michael
      --
      -Michael
    6. Re:Ternary has been known to be efficient... by nathanh · · Score: 3, Insightful
      Tertary would put us into "middle" voltage. But middle on the input, creates middle on the output, no direct way to get either high or low - making basic circuits more complex. But the real killer with "middle" is manufacturing. Let's say we use 2.8 Volts for the high level, 0.2 Volts for the low level. Due to manufacturing tolerances some chips transistors would be "fully" open at 2.3 Volts, others at 2.7 Volts. Easy to compensate on binary designs, you just use the 2.8 to switch the transistor, but for the middle level? What's required to switch a transistor to middle on one chip, is sufficient to open the transistor completely on another chip...

      Why would you choose such a brain dead scheme? 2.8V as your "middle" choice? A sensible scheme would have been +ve rail, -ve rail, and ground. This builds upon 100 years of analog electronics and op-amps. Locking a voltage to a rail is extremely easy AND fast.

      Plus disadvantages in power consumption and and and...

      The benefit of a ternary scheme is that you have LESS power consumption to achieve the same work. Your individual flip-flap-flops are more complex than a binary flip-flop, but you need fewer flip-flap-flops. Overall you'll have fewer transistors and subsequently less heat than the equivalent binary circuit.

      So your manufacturing tolerances become way smaller, and that of course reduces yield which increases cost.

      The fact that fewer transistors are required to achieve the same work (despite the fact that there are more transistors per gate) will INCREASE the yields. This DECREASES costs.

      How in hell did your post get modded up?

    7. Re:Ternary has been known to be efficient... by markmoss · · Score: 2

      A sensible scheme would have been +ve rail, -ve rail, and ground.

      First, in a ternary scheme, you have high, middle, and low voltages. You can call low, middle, or high "ground" but it makes no difference to the circuit design. Since transistors only work one way, what you seem to be suggesting would come out as a dual binary circuit -- one half processing plus or ground signals, the other half processing ground or minus signals. 100% more circuitry for 50% more information. It does save on wiring between circuits -- but in most cases for the cost of a ternary system you could instead make a binary circuit run twice as fast and get more data down the wire.

      The other alternative is to simply ignore ground and reference everything to the supply rails. Analog op-amps do this. It really doesn't make any difference to low-power analog circuitry whether "ground" is considered to be one of the supply rails or a point half-way between. You could certainly use such circuitry to perform trinary logic, but in terms of price vs performance it's probably an anti-optimal design.

      The fundamental advantage of binary digital circuits is that they are quite easy to stabilize. You want each transistor to go all the way on or all the way off, so as to give outputs that are as close as possible to the supply rails. For example, with a 3.0V supply, typical output voltages would be almost ground and almost 3V, or about 0.2 and 2.8V. In the most basic circuit (an inverter) inputs that aren't that sharply distinguished (say 1.0 and 2.0V) get amplified into 2.8 and 0.2V outputs, and this works even with widely varying transistor characteristics, and without requiring additional components for negative feedback. So binary circuits operate reliably even in a noisy world with only a few components for each bit.

      Analog circuits require in-between inputs to produce proportionally in-between outputs. Transistor gain and other characteristics vary quite widely from transistor to transistor, and vary in the same transistor with operating temperature. To reliably represent a middle voltage, you have to use resistors (resistor values are much more consistent) to create negative feedback loops. This feedback discards most of the transistor's gain, in order to ensure that the gain is set by the resistors and not by the transistor. The low effective gain then requires adding more transistor stages to get the required performance. So analog circuits require more transistors and many more resistors. Using one as a tri-level logic device does not make much sense; it is going to cost at least twice as much, with only 50% more information carried. If you really want to carry logic signals through analog circuitry, use more than three voltage levels to carry more information.

      Ternary is quite nice mathematically, but the only practical application seems to be ternary decision trees and menus.

    8. Re:Ternary has been known to be efficient... by nathanh · · Score: 2
      Since transistors only work one way, what you seem to be suggesting would come out as a dual binary circuit -- one half processing plus or ground signals, the other half processing ground or minus signals. 100% more circuitry for 50% more information.

      Gates in electronics aren't single transistors. They are many transistors and a handful of passive components. An actual gate will start with an unoptimised design and then remove redundant components. Your assumption that ternary gates would require exactly twice as many transistors is completely flawed. Check out any 74xx diagram in a National Semiconductor book: they show the internal schematic down to the transistor level.

      Ternary is quite nice mathematically, but the only practical application seems to be ternary decision trees and menus

      The incredible nonsense of all this is that ternary is already in use in electronics. It's just not called ternary. People abstract their circuits back to binary before passing info to the next gate, but in the schematics for any gate you can clearly see ternary logic used as an optimisation of the internal design.

      This is why I'm annoyed with you armchair electronic hobbyists going on and on about resistor values and middle voltages. I even saw a previous poster inexpertly try to explain why quiescent current proves the non-viability of ternary logic. You seem to be explaining away what the circuit designers are already doing!

    9. Re:Ternary has been known to be efficient... by nathanh · · Score: 2
      6 years as an electronics repair technician, USAF. BSEE. 13 years as a test engineer. I don't design logic IC's, but I might know more about circuit design than you.

      With all due respect, you do know that this is like saying "19 years as a mechanic, I think I know more about thermodynamics than you do". That's not an insult against your skills as an electronics repair technician: electronics is larger than any one person can lay claim to.

      And really, the problem here isn't about YOU knowing more about electronics than ME. It's not even about YOU knowing more about ternary logic than ME. It's about YOU or others like you who are saying they know more about ternary logic than the scientists and engineers working on this stuff. That really gets my goat.

      And I don't see ternary logic in gate schematics... They can be tri-state, but the third state is to turn both transistors off, allowing other chips to put binary signals on the same wires.

      Now, I don't understand how you can say both sentences in the same paragraph without alarm bells going off in your mind. Design a circuit without tri-state logic. Now design the same circuit with tri-state logic. Which one required more transistors and will therefore consume more power and produce more heat? A good example that proves the point is a 4-bit bus. Binary logic forces you into a power-wasting ring-bus design.

    10. Re:Ternary has been known to be efficient... by markmoss · · Score: 2

      (1) AFAIK, there aren't any scientists and engineers working on ternary logic, just mathematicians. Can you point me to any circuit designs, or anyone working on this that is capable of designing practical circuits?

      (2) Tristate is NOT ternary logic. The input circuits on tristate chips are just binary; I think a ternary input circuit would need two comparators, where a binary input uses one. On the output end, if you want the same performance as binary you need four transistors -- two to bring the output to the middle state from either direction, plus the normal high and low transistors. If you don't mind wasting power and slowing the transition to "middle", you could use two output transistors (like tristate) plus resistor(s) to bias it to the middle voltage when both transistors are off. (Do you know what Resistor-Transistor-Logic was?) (Some busses require resistor termination anyhow for proper behavior at high-speed, but in modern designs a capacitor and resistor termination, with no steady-state current draw, is usually preferred to just a resistor.)

  6. Trits? by ceswiedler · · Score: 4, Funny

    Setun operated on numbers composed of 18 ternary digits, or trits

    Awww...they shied away from the obvious choice, tits.

    1. Re:Trits? by miked50 · · Score: 2, Funny

      I thought tits were binary... unless you've seen the movie Total Recall

    2. Re:Trits? by tswinzig · · Score: 5, Funny

      Awww...they shied away from the obvious choice, tits.

      No, I think that was a good decision. When I think of tits, I always imagine them in pairs.

      --

      "And like that ... he's gone."
    3. Re:Trits? by kerrbear · · Score: 2, Informative
      Setun operated on numbers composed of 18 ternary digits, or trits

      Awww...they shied away from the obvious choice, tits.

      Just to be more serious and perferctionistic about it. Shouldn't the word digit in this case be a trigit? Since the very word digit is prefaced with di which means two? I guess I could be wrong about that, but it seems to make sense.

    4. Re:Trits? by rgmoore · · Score: 2, Informative

      IIRC, the origin of digit is not from di- meaning two, but from digit meaning finger or toe. This makes some sense if you think about where numbering systems came from. FWIW, one advantage of binary is that it's very easy to count in binary on your fingers; your thumb is the ones bit, index finger twos bit, middle finger fours bit, etc. Not quite as easy to do in ternary.

      --

      There's no point in questioning authority if you aren't going to listen to the answers.

    5. Re:Trits? by kerrbear · · Score: 2
      Think about it. If they were called digits from di- for two, don't you think that it would be called dinary instead of bi nary?


      Well, it is language, not math, we are really discussing. And language isn't always known for it's logic. The prefix di does mean two in some instances. Hydrogen-dioxide for one. We don't call it Hydrogen-bioxide do we? Anyway, you were right and I was wrong in regard to my initial post so somebody feel free to take my one karma point away :-)

    6. Re:Trits? by ncc74656 · · Score: 2
      And language isn't always known for it's logic. The prefix di does mean two in some instances. Hydrogen-dioxide for one. We don't call it Hydrogen-bioxide do we?
      I thought it was dihydrogen monoxide that people were all worked up about...
      --
      20 January 2017: the End of an Error.
  7. Good Old binary and Floating Point. by RGreen · · Score: 5, Interesting

    Ternary numbers are an interesting sidetrack and some similar techniques are used in fast chip-based systems to speed up adding (each bit also caries it's own overflow and sign bits, turning the classic serial add-with-carry into a more parallel operation).

    It must be remembered that, for floating point numbers, base 2 is *the* most efficient representation, as argued in the classic paper "What Every computer Scientist Should Know About Floating Point Arithmetic" by David Goldberg. The deep understanding behind IEEE754 is a masterpiece of numerical engineering that is often overlooked, IMO.

  8. No, please don't! by DahGhostfacedFiddlah · · Score: 2, Funny

    2 4 8 16 32 64 128 256 512 1024 2048 4096...
    10 seconds

    3 9 27 81...ummmm...crap
    10 seconds

    This'll make all my computer-numbering knowledge obsolete

  9. Trinary Digits by aridhol · · Score: 2, Funny

    What will we call the digits? Click here to find out:


    http://www.schlockmercenary.com/d/20001226.html

    --
    I can't say that I don't give a fuck. I've just run out of fuck to give.
  10. astronomers used it since 80's by Anonymous Coward · · Score: 5, Interesting

    As far as I know radio astronomers user 3-level data recording for their VLBI (Very Long Baseline Interferometry) data. One of the equipment was from JPL at Caltech lab. Their problem is to detect a weak signal in presence of strong noise. In this case, it doesn't make sense to do 8-bit digitization. Instead people do 1-bit, 2-bit digitization and average out many sample of data. They found that the recording efficiency was highest when they used 3-level digitization.
    I myself worked on VLBI in the same lab but our machines were using 1-bit digitization (BTW, we used regular video cassette and somewhat modified VCR to record 7 GBytes on single 2-hour tape).

  11. Re:Less than, greater than, or equal? by po_boy · · Score: 5, Funny
    I thought the three states were 'true', 'false' and 'I don't know'.

    Nope: one, zero, and CowboyNeal.
  12. Re:Faster to just get rid of 0's by Happy+Monkey · · Score: 2, Funny

    And just think of the 2's! They'll get hooked around the slightest obstruction, and all the other numbers, causing constant clogging. And if the added number is -1, that's adding TWO SYMBOLS per bit instead of one!

    --
    __
    Do ya feel happy-go-lucky, punk?
  13. SETUN - Russian ternary computer by m_ilya · · Score: 5, Informative

    I have seen in one book that there was created a ternary computer long time ago. I have tried to find anything with google and found this page.

    --

    --
    Ilya Martynov (http://martynov.org/)

    1. Re:SETUN - Russian ternary computer by RelliK · · Score: 2

      Yeah, my OS design prof was very proud of the fact that he worked with the only working trinary computer in existence.

      --
      ___
      If you think big enough, you'll never have to do it.
  14. Re:Nondigital computing: Root Not by Sebastopol · · Score: 4, Informative

    Close, but you are still doing digital computing! Just because it's not binary doesn't mean it isn't digital.

    The problem is understanding the new metaphors required to implement new modes of math. Simply adding a third state doesn't get you a revolutionalry new mode of computation, it just gets you more bits per wire. For example, look at flash technology: they now store multiple bits per cell by designing sense amps to convert the analog level to a binary pattern.

    Read the book "An Introduction to Quantum Computing". I forget the author, but it's the one that comes with the CD of mathematica examples.

    In this book they discuss a simple adder that Feynman derived. The realization of the Hamiltonion operator (similar to the transfer function H(s)) requires a gate called:

    Square root of NOT!

    It's pretty crazy, but when you walk through the example step-by-step, it becomes more clear why it is needed to build the simple adder.

    Now how you actually build a root-not gate is another problem, but I'm just making this point to illustrate how "meta" the new concepts have to be to truly revolutionize computation.

    There's simply nothing better than binary right now.

    --
    https://www.accountkiller.com/removal-requested
  15. Consider base -2. by jcr · · Score: 3, Interesting


    Think about applying it to D/A and A/D conversion for AC signals. It could simplify a flash converter,a nd conversion to convention twos-complement signed integers can be performed by a hard-wired lookup table.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
    1. Re:Consider base -2. by Amazing+Quantum+Man · · Score: 2

      Think about applying it to D/A and A/D conversion for AC signals

      Do Anonymous Cowards provide signal? What's the S/N ratio for ACs, anyways?

      --
      Fascism starts when the efficiency of the government becomes more important than the rights of the people.
  16. Best Quote by bn557 · · Score: 2, Funny

    "Cheaper by the Threesome"

    I can always go for a cheap three-some.

    Pat

    --
    Humans are slow, innaccurate, and brilliant; computers are fast, acurrate, and dumb; together they are unbeatable
  17. what a pain... by inepom01 · · Score: 2, Interesting

    One of the advantages of digital over analog is that between the 1 and the 0 you have a ton of space that you can consider an error so if your signal is distorted (long wires), you still know what's going on- and you know when you have an error in transmission. In fact, when you read a binary signal, you can have true, false, and no output. With 3 possible inputs, the neutral zones between accepted values would become smaller and would significantly increase chances of error. In fact, the higher the base you take, the less margin of error.

  18. It's axiomatic by gelfling · · Score: 2

    Something is : A member of set of elements called 'yes', a member of the set of elements called 'no' and a member of the set of elements called the intersection of 'yes' and 'no'.

  19. Nifty. Looks like... by rnturn · · Score: 2

    ... I might find that that adaptive image compression scheme I was using years ago might turn out to be useful after all. (Some parts of it would have been tons more practical if you used a ternary coding.) Now if I can find the source code amongst all those 360KB floppies that I've been meaning to burn onto CDs and convert it from FORTRAN...

    --
    CUR ALLOC 20195.....5804M
  20. Ternary Logic...... by the_2nd_coming · · Score: 2

    if YX switch right

    it seems to me that this is valid logic, now if we can just come up with a transister that can do this sort of thing.

    I am sure we can come up with a muti transistor system made of 2 transisters, but what would be the economic savings of having a ternary logic system if you double the transisters?

    --



    I am the Alpha and the Omega-3
  21. Re:Ternary Logic......Opps dumb HTML by the_2nd_coming · · Score: 2

    damnit
    if Y&ltX stop
    if Y=X swithch left
    if Y&gtX switch right

    --



    I am the Alpha and the Omega-3
  22. Yes! Tits! by corebreech · · Score: 5, Funny

    If bits becomes tits, then I say bytes should become teats.

    And, instead of a 'nibble' being four bits, we'd have a 'suckle' equaling three tits, like that babe in the movie Total Recall.

    Instead of dealing in megabits or gigabytes, we'd have gigatits, which could be abbreviated as DD, saving vast amounts of bandwidth -- which might as well be called handwidth now -- or terateets, abbreviatable as DDD.

    With all the sexual content in technical lingo (e.g., male and female plugs, master/slave, unix, etc.) this is only a natural development, and given that half of these machines are used for nothing but downloading pictures of naked breasts anyways...

  23. Fascinating, but not practical, here's why: by Uttles · · Score: 5, Informative

    I looked over the article and it made a good arument for a ternary computing architecture, however there are some big problems with this that were not addressed in the article. Although I'm not a math expert, I did gain a math minor in college during my computer engineering curriculum, and I have to say ternary computing seems to have too many complex problems that need solving to be worth it.

    First of all, hardware is getting smaller and smaller all the time, so the whole premise behind ternary computing (base 3 would use less hardware) doesn't apply, especially since brand new gates would have to be made in order to distinguish between 3 signal levels rather than 2, and that would be taking a HUGE step backwards.

    Secondly, doing things on a chip or two is great, but the main problem in computing is communications. The major part of creating efficient communications protocols is determining the probability of a bit error. Probability is a very complicated science, even using the binary distribution, which is a very simple function (that just happens to escape me at the moment.) Now, add another bit, and you have to use a trinary distribution, which I'm sure exists but isn't very common (and not surprisingly, I can't recall that one either). Long story short, this theoretical math has been made practical in computer communications over a long period of time dating back 50 years, starting all over with 3 bits rather than 2 would be extremely complicated and VERY, VERY expensive.
    Finally, figuring out logical schemes for advanced, specialized chips is a daunting task. Engineers have come up with shortcuts over the years (K-maps, state diagrams, special algorithms, etc) but adding in a 3rd state to each input would make things almost impossibly complicated. All computer engineers working at the hardware level would have to be re-educated, starting with the simplest of logical gates.

    Overall, in my humble opinion, we'll never see large scale use of ternary computing. There's just too much overhead involved in switching over the way of doing things at such a fundamental level. The way hardware advances each year, things are getting smaller and smaller without switching the number base, so until we reach the limit using binary, we'll probably stick with it.

    --

    ~ now you know
    1. Re:Fascinating, but not practical, here's why: by the_2nd_coming · · Score: 2

      well I hope this does not boed the same for Quantom Computing. I realy hope that, when the final brakthrough of having a working machine is complete, we make the move. the computational value is much to great to ignore it.

      --



      I am the Alpha and the Omega-3
    2. Re:Fascinating, but not practical, here's why: by dprice · · Score: 2, Interesting

      The major part of creating efficient communications protocols is determining the probability of a bit error.

      You have made some very good points, and the bit error problem is one of the big ones. When you go to ternary logic levels, you reduce the noise margin, so you have to slow down the clock and/or spread out the logic (more space) which offsets the gains you might get from ternary logic.

      I once saw a point-to-point ternary logic data bus design that looked very clever on paper. It allowed simultaneous transfer of data in two directions on the same wires. Both ends of the bus were allowed to drive 0 or 1, and both ends watched the ternary logic level on the bus. If the middle state, "M", was observed, then the other end must be driving the opposite logic level.

      This looks like a big win since the same wires can carry twice as much traffic than a normal binary bus, but the reality of noise margin made the bus impractical. The noise from the dynamic voltage swing between 0 and 1 made it difficult to reliably discriminate the smaller 0/M or M/1 voltages at high clock rates. The clock rate had to be slowed to less than half the speed of a binary bus which made the ternary bus lose its apparent advantage.

      I won't even get into the headaches that ternary logic design would cause. It makes my binary brain hurt.

    3. Re:Fascinating, but not practical, here's why: by afs · · Score: 2, Insightful

      On the contrary--the "theoretical math" was never developed for a specific representation of information, much less binary. In fact, information theory accomodates any representation, all the way back to Shannon..

      The real difficulty is physical implementation. Coming up with coding schemes is trivial.

    4. Re:Fascinating, but not practical, here's why: by nels_tomlinson · · Score: 3, Informative

      Now, add another bit, and you have to use a trinary distribution, which I'm sure exists but isn't very common (and not surprisingly, I can't recall that one either).

      Well, I don't think that the probability is really much worse. Instead of binomial, we have in general multinomial, and here trinomial: pdf=(n!/(x_i!*x_j!*x_k!))(p_i^{x_i}*p_j^{x_j)*p_k^ {x_k)).
      See Berger's Statistical Decision Theory and Bayesian Analysis. Or here or here.

      There are some hardware problems; I posted a possible solution . (It's a joke, mostly!)

      A more serious problem is mentioned by anohter poster: floating point is where we really, really care about speed and efficiency, and it seems that binary has that sewn up.

      ... we'll never see large scale use of ternary computing. There's just too much overhead involved in switching over the way of doing things at such a fundamental level.

      Quite right. This is the only argument against it which doesn't have an answer, I suspect.

  24. And there's already a language for it! by Chris+Burke · · Score: 3, Funny

    As if in precognition, a language has already been developed for ternary computers:
    TriINTERCAL! (the link is about INTERCAL, chapter 6 is about the TriINTERCAL extension)

    I can't wait until college courses are taught in this truly wonderous and -- who would have thought -- futuristic language.

    --

    The enemies of Democracy are
  25. I patent... by SIGFPE · · Score: 2
    ...the use of the operators <<< and >>> to mean ternary left and right shift, ie.

    x <<< 3 is (usually) x*3

    and x >>> 3 is (usually) x/3.


    The representation of negative numbers is interesting but there is a 3's complement scheme that works. Eg. ....22222222222 is -1 (like the 3-adics). So -1 <<< 3 would be .....222220, ie. -3. So everything works out fine.

    --
    -- SIGFPE
    1. Re:I patent... by bnenning · · Score: 2
      x <<< 3 is (usually) x*3


      Wouldn't that be x*27? x <<< 1 would be x*3.

      --
      How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
  26. How would you get clean state transitions? by Carmody · · Score: 2

    With a binary system, you can change from a 1 to 0 state, and a 0 to 1 state without having to pass through an intervening state. (You can call 1 high voltage, 0 low, or 1 a high tone and 0 a low tone) Only two states to worry about.

    I don't see how one can design something as fast as a binary system, and still allow us to go from 0 to 2 without going through 1. If you are doing voltages, the intermediate value theorem forces you to go through state 1. Similarly if you are doing tones.

    One can design a logic system, with "forbidden" state transitions. But then you would have to argue that "ternary logic with forbidden transitions" is significantly better than "binary logic." It seems to me that you would lose 90% of your advantage if you forbade 0 - 2 and 2 - 0 transitions.

    --
    God is real unless declared integer
  27. not to be an engineer... by nadador · · Score: 4, Informative

    and rain on the computer scientist's parade, but...

    The reason that you can't get, and won't for a long time, anything greater than base 2 is that setting and sensing more than two logical levels in a given voltage range is very hard. Those ones and zeros you like to look at and think about discretely are not really ones and zeros, but voltages close to those that represent one and zero, close enough to not confuse the physics of the device in question.

    For example, if you arbitrarily define 0 volts to be a 0 and 1 volt to be 1 in an equally useless and arbitrary circuit, and you monitor the voltage, what do you assume is happening if one of your discrete samples is .5? Is it your ternary maybe, or is it the circuit switching from 0 to 1? And what about the case when your manufacturing process introduces errors greater than you expected? What if 1 comes out .75? Is that in the maybe range or the 1 range?

    Now, I remember something about double flash memory densities by sensing 4 voltage ranges in each cell, but I imagine the timing precision required to do that correctly is orders of magnitude easier to do (and still a royal pain) than putting ternary logic into a modern microprocessor (with tens of millions of transistors, implementing everything created in the entire history of computing that might be even marginally useful so that you can 3 more frames per second in quake3).

    --

    Outside of a dog, a book is a man's best friend. Inside a dog, its too dark to read.
  28. Difficulties in Implementation by uslinux.net · · Score: 2, Insightful


    I vaguely remember discussing this in a Computer Science class on circuit design four or five years back. While this might be possible for some sort of non-copper processor, I imagine the difficulty would be in rapidly distinguishing correct voltages for each bit on today's technology.

    In simplistic terms, presently, if you have two bits, at a clock cycle, the electrical current is either 0 (0 volts) or 1 (3.3 volts). Theoretically, you could have an infinite number of bits, provided you had infinite voltage precision. Thus, 0=0v, 1=.1v, 2=.2v, ..., 33-3.3v - a 34-bit computer.

    However, your processor is probably designed with a tolerance in mind, thus 3.1 volts is probably a 1, and .2 volts is probably a 0. I really don't knwo the specs, but you might even presume 0-1.65v=0 and 1.66-3.3v=1. The amount of effort required and the reduction in speed required to slow the clock cycle down to ensure that .5v is ACTUALLY .5v and not .6v would probably impact performance too greatly.

    I'm sure there's a PhD EE somewhere in this crowd that can explain this even better, but my point is that I don't think anything but binary computers are useful with current electrical technology. Presently, there's a reason we use two bits - because it's easy and *fast* to check "on or off" without having to determine how "on" is "on". Now, if one was able to use fiber and send colors along with the pulses, then you might have something...

  29. Re:base e, base schmeee by WolfWithoutAClause · · Score: 2

    I prefer to write pi as 10.... atleast that's how it is written in base pi!

    ;-)

    --

    -WolfWithoutAClause

    "Gravity is only a theory, not a fact!"
  30. Re:Nondigital computing by crumbz · · Score: 2, Interesting

    Electron, proton, neutron
    Up, down, top,
    bottom, strange, charmed
    blue, red, green

    Yikes!

  31. Re:Efficiency of base? by Derek+Pomery · · Score: 2

    Reading the article would've answered your long expression of puzzlement.

    Just as there may be practical limitations behind precisely maximising the volume for a soup can, doesn't mean that getting close will not allow you to approach the maxima of the function.

    A better question would've been why use his measurement of efficiency, a question the article examines.

    --
    -- perl -e'print pack"H*","6e656d6f406d38792e6f7267"' /. ate my old sig. Bastards.
  32. Turing Theory... Complexity Analysis .. blah blah. by Samuel+Nitzberg · · Score: 2, Insightful

    I like what was written, and it is interesting, but I don't think that this will change much in terms of how computation is performed or perceived.

    One of the earlier posters had something mentioned about it all being two dimensional... actually, a good way to look at computation is using what Turing devised - a one dimensional model of computation based upon a single tape.

    In studying Turing Machines, the mathematical model based upon (potentially infinitely long) tapes is used extensively. Move the tape right, left, and modify what is under the head, for example, are the primitive operations. A set of functions defines how symbols are changed, and when computation halts, as well as the resulting halt state.

    A basic examination of binary versus ternary systems, based on Turing Machines, and some (basic) complexity Theory...

    In binary systems, computation trees build at the rate of 2^n, where n is the number of computational steps...

    In a trinary system, we are looking at 3^n.

    So, performance could be considered in terms of - I believe 3^n - 2^ n, i.e., polynomial, not exponential) differences in processing power.

    But, any binary system could by used to -simulate- a 3^n system through the use of a (at worst polynomially larger) set of functions and / or chunkings of data (to represent the 3 states in binary, repeatedly). Also, necessary encodings could be performed by 'chuncking' the ternary data into blocks.

    Polynomial gains are nice, but at best, we don't have an earth-shattering enhancement.

    P.S. Some of this may be a bit rusty, so if anyone has a more concrete analysis or corrections, feel free...

    Sam Nitzberg
    sam@iamsam.com
    http://www.iamsam.com

  33. grammar nazi Re:how about quadratic? by Luyseyal · · Score: 2

    I believe the word you're looking for is quaternary.

    <g>
    -l

    --
    Help cure AIDS, cancer, and more. Donate your unused computer time to worldcommunitygrid.org. Join Team Slashdot!
  34. Been done by apilosov · · Score: 2, Informative

    As a matter of fact, there was a ternary computer built in Russia, called Setun' (apostrophe signifies a soft n).

    Russian translation of Knuth's Volume 2 was quite funny. Knuth is saying that "Somewhere, some strange person might actually build a ternary computer". The russian translation had a translators footnote "Actually, it has been built in russia in 1960s".

    See this page for more information about setun:
    http://www.computer-museum.ru/english/setun.htm

  35. Gratuitous rain? by leighklotz · · Score: 5, Interesting

    I am shocked, shocked to discover that a fundamental computer architecture explored in the 1950's, rejected as unworkable, and forgotten is in fact unworkable.

    The feeling that this induces has no word in English, but in Japanese it's called yappari.

  36. Re:'e' is the perfect base? by renehollan · · Score: 2

    The product of the number of digits and symbols for a number X, in base e notation, is less than in any other base.

    --
    You could've hired me.
  37. Old idea, but causes problems... by hpa · · Score: 2

    Ternary computing is an old idea; in fact it is said that there were a group of computer scientists in the old USSR who were quite enamored with the idea, especially the balanced ternary form (-1, 0 +1).

    The problem is that although you reduce the number of gates, the gates themselves get horribly complex. There are only 16 possible two-input binary gates, of which two are trivial, two are wires, two are NOTs, two are ANDN, two are ORN, and one each of AND, NAND, OR, NOR, XOR and XNOR. All of these are familiar gates. However, there are no less than 19683 two-input ternary gates. If you sacrifice some of the combinations, you suddenly are doing less than true ternary computation, and you're wasting the power of your machine.

    That, in combination with the sheer commonality of true/false type states, means, in my opinion, that binary is here to stay.

  38. Re:Efficiency of base? by Happy+Monkey · · Score: 2

    I think they meant "most efficient" in terms of "highest information density"," as a function of the size of a digit versus highest numerical value the digit can hold. The ease of operation on this number was not taken into account. They leave all that stuff up to the engineers to work out.

    --
    __
    Do ya feel happy-go-lucky, punk?
  39. Units? by ajs · · Score: 4, Funny

    A friend and I were thinking about representations on a ternary system. We had to figure out what units of storage would be available.

    Obviously, there's the basic unit of storage (1, 0, -1; on, off, undefined; true, false, maybe; whatever). We called this a trit for obvious reasons of parallel to the binary world.

    Ok, good enough so far. Then, there's the basic unit that's used to store characters or very simple numbers. We decided that 9 trits would be good (this was to allow for UNICODE-like representations). This seemed to be a shoe-in for the title, tryte.

    Then, you occasionally want to have something that is used in firmware to sub-divide trytes into various fields. In binary we call this a nibble, so in honor of Star Trek we called this one (3 trits) a tribble.

    But, there it stopped, as we soon realized what we'd be measuring the system's word-size in.... Man, I thought SCSI was a painful phrase to use all the time ;-)

  40. Re:Ternary Computing and the rw measure by hpa · · Score: 2

    The parent comment is exactly on target when it comes how things are implemented in electronics... you have to detect n-1 threshold levels, not n. It's actually even worse, because generating a single threshold level comes almost "for free" with an appropriate combination of transistors -- this very fact is the basis for CMOS logic, which has by and large taken over as the *only* way to implement logic circuits...

  41. Ternary RAM by BlueTurnip · · Score: 2

    It occurred to me while reading the article that even if you could build a ternary microprocessor with more bang for the buck than the standard binary variety, in order to be useful in a microcomputer, you would need ternary RAM as well, so I began think about the problem.

    Most desktop computers use dynamic RAM to achieve high densities at low cost. (It's not unusual for new desktop systems to have 1G of RAM in about 4 modules.) They work on the principal of charging tiny capacitors. Charged represents a 1 for instance and not charged represents a 0. But capacitors can be charged in one of two polarities (one plate negative with respect to the other, or positive). Thus it seems that it would be a small step to go from binary dynamic RAM to ternary. The supporting electronics and refresh circuitry would be a bit more sophisticated, but the capacitor array might be basically the same, resulting in increased capacity (log3/log2) with about the same real estate! So perhaps dynamic RAM is really optimal in ternary as well.

    I'm not an electrical engineer; the above is merely speculation off the top of my head. Does anyone more qualified than myself have any thoughts on this?

    1. Re:Ternary RAM by BlueTurnip · · Score: 2

      Well, the problem with your scheme would be addressing. In a standard SDRAM module, each chip contains only one bit of each byte. A memory lookup addresses exactly one bit in a chip, and one capacitor is checked. Your scheme of using ternary DRAM as binary DRAM would involve examine several capacitors for each bit lookup. I think this would slow down the addressing efficiency considerably.

      But, if the computer uses ternary logic, then to keep the one to one correspondence between capacitors and lookups (which I think would be necessary for efficiency) one could use a three state system: not charged, and charged with either of two polarities. This, I think, would be as efficient as far as timing goes, and give you the 50% savings in size.

  42. Q: Ternary in software? by dstone · · Score: 2

    This is interesting stuff. Does anyone have links to software experiments in ternary computing? Obviously, running on binary hardware, such projects probably won't have storage or execution advantages, but are there application domains where ternary representation makes a more elegant software solution?

  43. Insults by Michael+Woodhams · · Score: 2

    So I may have to exchange my geek insult "couldn't figure out the logarithm to the base 2 of 65536 without a calculator" into "couldn't figure out the logarithm to the base 3 of 19683 without a calculator."

    --
    Quattuor res in hoc mundo sanctae sunt: libri, liberi, libertas et liberalitas.
  44. Intercal by mikeee · · Score: 3, Funny

    Excellent. This will translate Tri-Intercal, with native bitwise trinary operators, into much more efficient machine code.

  45. Ternary trees by mauddib~ · · Score: 2, Offtopic
    Dr. Dobbs recently had an interesting article about ternary trees (http://www.ddj.com/articles/1998/9804/9804a/9804a .htm), which also discussed some performance comparisons between binary trees and hashes.
    We just did some testing, comparing those search algorithms with eachother. Although hashes are more or less comparable in speed with ternary trees, binary trees are much slower.

    Some sample output: (btw, we didn't balance the ternary tree, although we did some really basic balancing on the binary tree).


    testing binary tree
    elements = 235807
    235807 insertions in 97.995633 seconds
    tree depth = 7882
    235807 lookups in 95.111857 seconds

    testing hash table
    elements = 235807
    235807 insertions in 0.442643 seconds
    tree depth = 63709 (number of buckets in use)
    235807 lookups in 0.345933 seconds

    testing ternary tree
    elements = 235807
    235807 insertions in 0.744229 seconds
    tree depth = 93
    235807 lookups in 0.386081 seconds


    Clearly the ternary tree and hash are much faster than the binary tree. Although there are still some optimisations to make, we believe that the ternary tree will outperform the binary tree at all times.

    We also made some (very) cool graphs with Graphviz, but unfortunately have no good place to share it with the rest of the /. reading audience.
    --
    This is a replacement signature.
  46. Huh? by booch · · Score: 2

    How is the problem of distinguishing a .75 voltage in your ternary system different than distinguishing a .5 voltage in a binary system?

    A/D controllers do this all the time, for larger bases, often on the order of 256 to 24 million. Granted, the digital results don't have logical consequences. But you can't ignore the fact that binary systems have to set tolerance levels just the same as ternary systems.

    --
    Software sucks. Open Source sucks less.
  47. Don't get hung up on transistors. by nels_tomlinson · · Score: 5, Interesting

    As long as we're turning the world on its ear, lets go all the way, and use triacs. We implement it (the tri-state gate, that is) like an inverter, more-or-less. These have two (non-linear ) on states plus off, and are just right for implementing an inverter. They'd probably be great for trinary logic, too.

    I just dug out my old physical electronis book (Micro Electronics, by Jacob Millman, First edition), and can't find them in there, so here's a slightly less academic reference.

    There might be some problems with trying to get the clock speed high enough to compete with the Intel/AMD marketing, though; it says that they can be triggered into conduction by high dV/dt.

  48. Re:Efficiency of base? by Derek+Pomery · · Score: 2

    Yes, I think so. Obviously an irrational number is a poor choice of base. It merely expresses the minima of the function.
    Integer steps in the function are the correct choices, just like a soup can probably needs to fit certain machine constraints.
    I was taking exception to your claim that chosing the closest integer was meaningless.

    In any case, a darn cool article. Well written, clear, and entertaining - so my nitpickiness threshhold has climbed significantly.

    --
    -- perl -e'print pack"H*","6e656d6f406d38792e6f7267"' /. ate my old sig. Bastards.
  49. Why this is useful by ChenLing · · Score: 3, Insightful

    I've read a lot of posts on how this will be difficult to implement using voltages and circuits....and you know what? It *IS* difficult to sense 3 different voltage.
    The solution? Don't use electric circuits...don't use transistors.

    Electric circuits will only get us so far, and then we'll have to move on to more 'exotic' hardware -- optical computing, molecular computing, quantum computing.......

    Suppose a qubit's state is describe by the spin polarization of an electron pair -- they can either be both up, both down, or one of each -- you can't tell which one, so it's actually 3 states (balanced at that)......

    In optical computing, suppose you can push the frequency of the lasers a little in either direction of 'neutral'...this is also base 3.

    So what I'm trying to say is, don't just say "base-3 computing is not practical with current technology" -- because it isn't, but it WILL be practical (perhaps even more so than binary computing) with future technology.

    And to finish with something lighter...
    troolean x, y, z;
    x = true;
    y = false;
    z = existentialism;

    :)

    --
    "You have the option of insanity. I do not. And that makes me crazy!" - Brian to Angela, My So-Called Life
  50. The answer... by mortenf · · Score: 2, Funny

    I don't like this.

    Any system that can't spell "42" is not worth it.

    --
    Don't make fun of my speling, english is my 2nd language...
  51. Re:Nondigital computing: Root Not by volpe · · Score: 2

    Close, but you are still doing digital computing! Just because it's not binary doesn't mean it isn't digital.

    Did anyone say it wasn't digital? Or did you confuse "variants of digital computing" with "alternatives to digital computing"?

  52. Re:Nondigital computing: Root Not by Kaufmann · · Score: 2
    Did anyone say it wasn't digital?


    Yep. Look at the thread's title.


    -- Kaufmann

    --
    To the editors: your English is as bad as your Perl. Please go back to grade school.
  53. the Epiphany of the File Cabinet by Jonathunder · · Score: 2

    Then came my Epiphany of the File Cabinet a few weeks ago ...

    When counting, thou shalt not stop at One. Neither shalt thou go on to Three.

  54. What about software? by Florian+Weimer · · Score: 2, Interesting

    C is defined for a binary machine, like most programming languages (if they are defined properly at all). That's why it's hard to believe that we're going to see non-binary computing anytime soon. It would be very inefficient to reuse old software, making the theoretical effiency gain rather worthless. (Hmm, but this didn't prevent Intel/HP/et al. from developing the IA-64 architecture, may be they start trinary computing next?).

    By the way, Ada does have support for trit operations (in some bizarre way), but this was merely an accident.

  55. Re:Yes! Tits! by ceswiedler · · Score: 2

    There's a bird called the Tufted Titmouse. The name for a group of these birds is a "rack".

  56. Never work by Syberghost · · Score: 2

    They tried this on Star Trek, and it went berserk and blew up starships. It'll all end in tears, mark my words.

  57. Re:Nondigital computing: Root Not by Sebastopol · · Score: 2


    There is nothing strange about sqrt of NOT, except its name.

    yes, but you say that and then you go on to give a really strange explanation! ;-)

    the interesting point is:

    a -- sqrtNot --> b

    ...is a probability, but...

    a --> sqrtNot --> sqrNot --> b

    ...is absolutely certain as it reduces to a = ~b. kinda like the three-polaroid filter experiment for light, i guess.

    regardless, i think in the early stages of any new science it's ok to use the term 'weird', maybe even, 'bizzarre', or as some may so, 'hella dope".

    --
    https://www.accountkiller.com/removal-requested
  58. Didn't your mom ever tell you? by Uttles · · Score: 2

    It's not nice to put words in someone else's mouth. I did read the article. The article didn't address the technical problems I was speaking of and others have posted. As an engineer I also am responsible for delivering working products, not just a bunch of theoretical promise. The most important thing in engineering is not chasing down wild new concepts and getting them to work (that's what professors are for,) it's making money using your problem solving skills.

    --

    ~ now you know
  59. Ternary is cheaper for mathematics, not engineers by Petrus · · Score: 2, Insightful

    The hypoteticaly "cheap" ternary system assumess, that the need for hardware scales linearly with the base. That is, e.g. it binary gate requires 2 transistors, ternary needs 3 transistors. In such a case 2^3=8 is less than 3^2=9.
    So system with 2*3=6 transistors can count to 9 in ternary while in binary only to 8. When searching maximum for f(x) = x^(const/x), one ends up with e for all const>1. That's why the mention that the 3 is the closest to e - an number base ideal. I remember having that case in mathematics competition way back in 8th grade.

    In engineering practice, that is quite far from truth. In ECL logic the ternary half-adder requires the same number of transistors as in binary logic. It requires the same number of wires to carry ternary digit as binary one. However we all know why is ECL nearly extinct - its high consumption prevents high integration.

    The benefits of binary logic can be seen in CMOS, where we have two states, each of which consumes also no power and still has low output impedance.

    Petrus

  60. happy juice by Splork · · Score: 2

    I'm glad to know that unbounded square-free ternary sequences exist. Life has a meaning now.

  61. Re:Nondigital computing by spiro_killglance · · Score: 3, Informative

    Actually apart from the colors, all the other
    particles are come in (isospin) pairs.

    Under SU(2) (weak force pairs)

    Electron Neutrino
    up down
    strange charmed
    bottom top
    proton neutron (which is up down again)

    blue red green because color has
    SU(3) symmetry

  62. Applications on Clockless Logic by Amoeba+Protozoa · · Score: 3, Interesting

    First of all, hardware is getting smaller and smaller all the time, so the whole premise behind ternary computing (base 3 would use less hardware) doesn't apply, especially since brand new gates would have to be made in order to distinguish between 3 signal levels rather than 2, and that would be taking a HUGE step backwards.

    You really couldn't be more wrong! Ternary logic is at the basis of some of the hottest research in asynchronous logic design right now.

    For instance, if you had a group of transistors that computed multiplication and stored the output in a register you might see the value of that register change several times until the computation was completed. Right now, the only way that you know a computation is complete is that logic is designed to complete an action in X cycles; as long as you feed in the data and wait X cycles you will get the proper result. Clock cycles can be waisted here, because a simple multiplication might be completed in a single clock while harder multiplications might take the full amount of time the logic area is spec'ed for.

    Using async logic, this can be done much more effciently. The multiplication happens just as soon as input data is given and the next stage of the logic knows when the operation is complete because its wires has three states: 0, 1, and not-yet-done. As soon as all the wires are 0 or 1, the computation is finished (consequently, this is how input works to). There are no "wasted" clock cycles, stuff moves through the logic as quickly as it is completed.

    Of course, there has been some debate whether three states are needed on each wire, or an just additional acknowledgement wire is needed (say 8 wires + 1 for an 8-bit computation block). But, believe it or not there are already patents for both methods!

    I guess, by having true ternary logic on each wire, you could have logic that will grab a result just as soon as X% of the wires report they are done with the computation to get "good enough" answer if the logic is iteratively improving a problem.

    -AP

  63. Re:base e, base schmeee by Luyseyal · · Score: 2

    Yeah, that was a pretty clever hoax. The sort of thing your average elitist idiot would fall for.

    http://www.urbanlegends.com/legal/pi_indiana.htm l

    -l

    --
    Help cure AIDS, cancer, and more. Donate your unused computer time to worldcommunitygrid.org. Join Team Slashdot!
  64. Another reason... by pspeed · · Score: 2

    Another reason that the computer industry grows exponentially is because the computer industry uses computer technology... which is growing exponentially. In other words, if I design my chip using a computer, as computers get faster so does chip design. As chip design gets faster, it becomes feasible to design more complicated chips... thereby allowing me to design more complicated chips which allow me to design more complicated chips...

    --
    Edu. sig-line: Choose rhymes with lose. Chose rhymes with goes. Loose rhymes with goose.
    Comparing? THEN use THAN.
  65. Can it run MIT's new "Cesium OS"? by 6EQUJ5 · · Score: 2


    Imagine what you could do with Cesium OS running on a ternary computer. Even better, a distributed system of Beowulf clusters running Cesium-based ternary processes! And perhaps a Natlie Portman wall paper, while looking at your fake Britney Spears porno at 3am, eating a taco with an old X-Files on television in the background...

    --

  66. That's a cut and paste from Usenet -- again! by BierGuzzl · · Score: 2

    Check it at google.com .

  67. Re:Nondigital computing by CaseyB · · Score: 2

    This comment was stolen off of Usenet.

  68. Niche applications by Pseudonym · · Score: 2

    You're right about the communication problem, IMO. That's why if ternary computing takes on, it will be limited to "inside" a single chip for a while. For example, an FPU or a DSP processor could make use of ternary arithmetic internally, converting to and from binary when you need to go off-chip. That may have advantages. A general-purpose ternary computer, however, probably won't be useful for a very long time if at all.

    --
    sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
  69. Re:Nondigital computing: Root Not by volpe · · Score: 2

    Whoops! Thanks :).

  70. Why not base four? by Randym · · Score: 2
    1) Can emulate *either* base 2 or base 3, as well as actually being base 4.

    2) DNA is written in base 4 -- native language.

    3) Half the representation cost of base 2.

    4) Your own hands are naturally base 4 -- the thumb is a carry.

    --
    DNA is a Turing machine. You, however, being dynamic and emergent, are not.
    1. Re:Why not base four? by Black+Acid · · Score: 2

      The problem with base 4 is that 4 states do not naturally occur. Electrical states are negative, neutral, and positive, of arbitrary voltage. Four states would require a window detector. With base 3, you don't care about the voltage - only the polarity.

  71. Say no to base two fixation! by Ed+Avis · · Score: 2

    Perhaps the possibility (if still a while off) of ternary computing devices will encourage some people to avoid meaningless powers of two when picking arbitrary limits. I'm talking about things like the maximum length of a filename: no point making it 64 characters, when 50 or 100 would work just as well and not cause the reader of the code to worry about whether the power-of-two-ness was significant.

    Of course for buffer sizes you sometimes want the space to fit into an exact multiple of pages in memory. But a structure definition that has one int, one char and an int[128] is really pointless. Just make it a round number in base ten!

    --
    -- Ed Avis ed@membled.com
  72. No difficulties in Implementation by DarkMan · · Score: 2

    Um, sorry. Listen to something.

    Doesn't matter what, but your speakers and sound card are well able to reporduce a signal to within 0.5 V.

    There are operational amplifiers working at radio frequencies, that have plenty of resolution and precision.

    Besides, if you were looking to do a ternery computer, you'd use -5V, 0V and +5V as your markers, drawing on decades of knowledge from analouge tecniqies, and then not have to worry.

    For those that don't know, the standard RS-232C serial bus uses a tri-state signal. Has done scince it's introduction.

  73. Stranger in a Strange Land, too by cryptochrome · · Score: 2

    If I'm not mistaken, the martians from Heinlein's "Stranger in a Strange Land" also used a base-three system of mathematics. Interesting. I wonder why he was so fond of it.

    --

    ---If you can't trust a nerd, who can you trust?

  74. Re:Of course that's what I mean by SIGFPE · · Score: 2
    What the hell is >>> in Java?


    Ignore this part of my post - it's just to pad the time spent writing this comment out to 20s so /. accepts it without me getting bored just sitting around and counting the seconds by on my watch which really is an exce

    --
    -- SIGFPE
  75. Re:Faster to just get rid of 0's by Black+Acid · · Score: 2
    Those pesky fat zero's are what's clogging up the communications, compared to those sleek 1's that just fit down the wires so easily.
    Actually, this statement has some truth to it. Particularly T1's (DS1 Hi-Caps) use the 1s to time repeaters. 12.5% 1s density is required, which is why B8ZS (bipolar 8-zero substitution) is needed. In short, B8ZS substitutes every 4 bits for 5, eliminating any series of eight 0s.

    In fact, T1 test equipment has the test patterns all 1s and all 0s. Guess which transmits faster...

  76. Re:Two? Such a number is not possible! by Black+Acid · · Score: 2
    From Futurama:
    "Ahhh, what an awful dream. Ones and zeroes everywhere...and I thought I saw a two." -- Bender

    "It was just a dream, Bender. There's no such thing as two". -- Fry
  77. Trinary.cc: Implementation, Gates, Schematics, ... by Black+Acid · · Score: 2
    It seems as if most of the discussion around trinary logic is if it should be done. Authors cry, "Why doesn't anyone use trinary?!" yet don't even explore trinary themselves. Fortunately, someone has.

    I'm talking about Steve Grubb of Trinary.cc. His website has everything you wanted to know about trinary logic.

    Interesting to note there are six unary gates: invert, rotate up/down, shift up/down. I independently verified every one of the 27 unary functions can be created using those six.

    More interesting is the binary operators. Min analogous to OR, Max to AND, XMax to XOR. There's even a Mean and Magnitude to average and compare values of two trits, respectively. It's not all theory, though.

    Heck, Steve even has tested schematics of trinary gates. Too bad they're so complex, I expect something simplier is possible.

    Yet, chip manufacturers won't budge. Until trinary is more well-researched, I don't expect them too either. As Steve Grubb said,

    Where's the Chips !?!