In 1958, when the world was still mastering binary logic, a machine was born in Moscow that challenged the very nature of computation—and nearly won.
🔥 1958. The Cold War is in full swing, and the arms race has shifted into a new dimension—digital. In the West, IBM and Remington Rand are churning out vacuum-tube behemoths, devouring kilowatts of energy and occupying entire floors. Their logic is simple to the point of primitivism: zero or one, on or off. The binary system has become dogma, the sacred cow of computing. But within the walls of Moscow State University, a team of engineers led by Sergei Sobolev and Nikolai Brusentsov decides to break this canon. They create the world’s first mass-produced computer based on ternary logic—"Setun" (Setun).
💥 The paradox was that the ternary system wasn’t some exotic curiosity. On the contrary, it was closer to nature than binary. The human brain operates in three states: "yes," "no," and "I don’t know." An electric charge can be positive, negative, or zero. Even the ancient Sumerians had a ternary numeral system. But in an era when transistors were just beginning to replace vacuum tubes, the idea of using three states instead of two seemed like madness. Nevertheless, Setun proved that this madness worked—and worked better.
🧠 Trits instead of bits. At the heart of Setun lay the balanced ternary system, where each digit (trit) could take one of three values: -1, 0, or +1. In the binary system, representing numbers from -3 to +3 requires three bits (8 combinations); in ternary, just two trits (9 combinations). This gave Setun a colossal advantage: 37% more information per digit with the same physical implementation. For a machine whose RAM consisted of just 81 words of 18 trits each (equivalent to ~162 bytes), this was a matter of survival.
🛠️ The hardware of revolution. Unlike the West’s cumbersome vacuum-tube monsters, Setun was built on ferrite cores and semiconductor diodes, making it compact and reliable. A magnetic drum stored 1,944 words (about 7 KB)—laughably little by today’s standards, but enough to solve the complex problems of the time. Moreover, the machine consumed just 2.5 kW (for comparison, the IBM 709 guzzled 100 kW) and cost 2.5 times less than its binary counterparts. The Kazan Mathematical Machines Plant produced 50 units between 1959 and 1965, and each one ran for years without a hitch.
🎯 Logic ahead of its time. The ternary system allowed Setun to perform operations that were impossible for binary computers. For example, rounding numbers happened naturally—without additional commands. The machine could process negative numbers directly, without using two’s complement. And its architecture allowed parallel execution of multiple operations, something binary systems only achieved with the advent of pipelining. Setun wasn’t just a computer—it was an alternate universe of computation, where every trit decided the fate of calculations.
🌪️ Metaphor. Imagine binary computers as trains moving along tracks with only two directions: forward and backward. Setun, on the other hand, was an aircraft, capable of changing altitude, speed, and course in three dimensions. It could do what was physically impossible for trains—but it required a pilot who could think in three coordinates.
🚨 The first cracks. By 1962, Setun had already proven its efficiency. It was used for calculations in nuclear physics, meteorology, and even for controlling industrial processes. Foreign scientists, including specialists from the U.S. and U.K., showed keen interest in the machine. However, the USSR Ministry of Radio Industry refused to fulfill foreign orders, citing a "lack of production capacity." In reality, something far more sinister lay behind this decision: bureaucratic inertia and distrust of "exotic" technology.
💀 Death on paper. In 1965, production of Setun was halted. The official reason: "the unpromising nature of ternary logic." The unofficial one: Nikolai Brusentsov fell victim to academic intrigue. His ideas were declared pseudoscience, and the project itself—a dead-end branch of development. The machine’s prototype was destroyed, and some of the documentation was lost. Setun became a victim not of technical limitations, but of politics and intellectual stagnation. While binary computers in the West evolved into mainframes and PCs, the ternary revolution was strangled in its cradle.
🔄 The last push. In 1970, Brusentsov tried to rehabilitate his brainchild, creating Setun-70—an upgraded version with expanded memory and new peripherals. But the moment had passed. By then, binary logic had already become the de facto standard, and ternary systems were seen as a curiosity. Setun-70 remained an experimental model, and its creator was forced into obscurity.
🔄 What remains of Setun? After the project’s closure, ternary logic didn’t vanish without a trace. In the 1970s, Brusentsov’s ideas found their way into Soviet "Electronika" calculators, which used ternary encoding to save memory. In the 1980s, Japanese engineers at Hitachi experimented with ternary processors but never brought them to mass market. And in the 2000s, a group of Russian scientists at MSU revived interest in ternary logic, creating a prototype ternary processor on modern hardware.
📉 Why didn’t ternary logic take hold? The answer lies not in technology, but in economics. By the time Setun appeared, binary computers had already passed the point of no return: billions of dollars had been invested in the development and production of binary microchips. Switching to ternary would have meant rewriting all software, retraining all programmers, and retooling all factories. Even if Setun had been ten times more efficient, the world wasn’t ready for such a revolution.
📌 Ternary logic today: a ghost of the future. In the 2020s, the idea of ternary computing is experiencing a renaissance—but at a new level. Quantum computers, operating with qubits that have three states (|0⟩, |1⟩, and |2⟩), are essentially bringing us back to ternary logic. In 2023, a team from Stanford unveiled a ternary neuromorphic chip capable of processing data with energy efficiency unattainable by binary systems. And in Russia, the startup Ternary Computing is developing a ternary processor for edge devices, promising a 30% performance boost at the same power consumption.
🔮 What if? The story of Setun is a story of how bureaucracy and intellectual inertia can bury a technological breakthrough. If ternary logic had been developed in the 1960s, we might live in a world today where computers are more efficient, more powerful, and closer to human thought. But history doesn’t tolerate the subjunctive mood. Setun remains in the past—as a reminder that the future doesn’t always win. Sometimes, it’s simply not allowed to be built.