I’ve long been interested in cases where inventions were delayed longer than seems reasonable.
Like the bicycle. Anyone could have built a reasonable pedal-driven bicycle in the mid 18th century. It’s not rocket science. The tyres would have been not great: perhaps some non-vulcanised solid rubber or gummed cotton, but it would have better than a kick in the bum. Instead, the first real pedal-powered bicycle appeared in 1853, around the same time as the invention of the four-stroke petrol engine (which, in my view, is a much more advanced piece of engineering).
Relay logic is another case: the use of electromagnetic relays to create logic gates for computing.
A relay is in this context is any electrically operated switch that can make another electrical circuit closed or open. Logic gates are the AND, OR, NAND, NOR, NOT etc gates that are at the very heart of digital computing.
In order to use electromagnetic relays for computing, you need a) the concept of a logical gate and b) the invention of an electromagnetic relay (duh), and both of these predate the invention of relay logic by a long period.
By 1700, Liebnitz had written extensively on binary algebra and symbolic logic, and this largely laid the table for Boole’s later work on logical operations in 1847. Around the same period (1840 to 1870), Babbage conceived on and continued to refine his Analytical Engine, and Ada Lovelace created the first computing algorithms. Babbage’s Analytical Engine did not use binary logic but instead used decimal gates, but his ingenious methods of carrying out storage and conditional operations using a mechanical leant itself very easily to binary logical gates that we associate with modern computing. Babbage never really got it working as well as he’d like but that was mainly because of mechanical nuisances: his son built a working version not long after Babbage’s death.
Various kinds of relays were built during the early 1800s (using electrolytes or mercury etc) but the proper electromagnetic relay was probably invented by Samuel Morse around 1840, as part of his improved telegraph methods, though he didn’t call it a relay.
Now, if you’ve got a relay set up such that when voltage A is on, then voltage C is the same as voltage B … you basically have the makings of an AND gate. With a few variations you can create all the basic logic gates.
No one even thought of it until 1886, when American mathematician Charles Sanders Pierce communicated the idea to Allan Marquand, and Pierce (not really a hands-on kind of guy) didn’t develop the concept further.
Not until the late 1930s was the concept seriously worked on. Konrad Zuse and Claude Shannon independently developed relay logic technology, and Zuse built the first programmable computers based on relay logic, the Z2 and Z3, during WW2.
Of course, relay logic eventually gave way to valves and semiconductors but both of those relied on 20th century physical developments. All of the pieces for computing based on relay logic were in place by 1850 (the demand, the logic theory, the computing algorithms, the physical mechanism) but no one put those pieces together. It really would have just taken a lightbulb moment for electrical computing to have begun in earnest 170 years ago.