r/computerscience • • Jan 12 '26

Mechanical Computers

Hi. I've recently become very intrigued by the fact that mechanical computers can do any computation an electric computer can. For example Babbage's Analytical engine. Does this mean that any algorithm such as an Artificial Intelligence, like an LLM could theoretically run fully mechanically given enough time and resources? Or even a full Operating System?

45 Upvotes

26 comments sorted by

View all comments

Show parent comment

6

u/GreenFox1505 Jan 13 '26

as fast as the voltage can rise on the output

And so if you were designing such a machine, you'd want to make sure that you didn't sample that voltage until you were certain that the operation would have been completed. You would find the operation that took the longest and set your sampler to delay until that time (there are ways to have variable delay but let's simplify for this example).

Okay, what would YOU call that delay? How long you would have to wait after each operation before you would expect the output to be valid? I would call that a clock speed. That is pretty much exactly how digital computers work also. This particular element is not that architecturally different.

2

u/currentscurrents Jan 16 '26

Not necessarily. You can build an asynchronous analog computer, for example this spiking neural network accelerator.

The neurons in an SNN only do one operation; they wait for a capacitor to fill, and when it crosses a threshold, they fire. This fills the capacitors on connected neurons, which may then fire, and so on.

You don't wait or sample anything. Neurons are triggered by other neurons, not by a rising or falling clock edge, and may fire at any time.

1

u/SirClueless Jan 13 '26

We seem to be mixing up a lot of terms here?

  • An analog computer is still an analog computer even if it has a digital clock signal.
  • OP is talking about mechanical computers which are neither analog nor digital computers.

2

u/GreenFox1505 Jan 13 '26

? I was responding to "an analogue computer doesn't need a clock", which was stated in the comment immediately above mine.