Hacker News new | ask | show | jobs
by chongli 1238 days ago
You can do math with analog circuits. This was the original purpose of the opamp (operational amplifier) [1].

[1] https://en.wikipedia.org/wiki/Operational_amplifier

1 comments

huh. So the distinction between analog and digital has nothing to do with whether the logic itself is binary, just whether the delivery of signal to gate is absolute or ranged? Something has to gate the signal, right? I always thought "analog" referred to processes that didn't reduce things to a binary at some step along the way...(?)
As far as the circuits are concerned, there’s no such thing as digital. For human engineers, digital is a convention. Well, technically, there are numerous digital logic conventions based on different voltage standards.

For example, you might decide that 0 volts is a logical 0 and 5 volts is a logical 1. If you get everyone to agree to this convention then you can build components that talk to each other. Unfortunately, it’s very difficult (impossible) to get to exactly 0 or exactly 5 volts. So instead you decide that anything less than 2 volts is a logical 0 and anything greater than 3 volts is a logical 1. This setup makes your circuits quite robust to noise.

To further improve things, you might decide that when you want to output a logical 0 you must produce a voltage less than 1 volt and if you want to output a logical 1 you must produce a voltage above 4 volts. This convention allows your system to continually correct voltages away from the undefined region (between 2 and 3 volts). A marginal input of 3.1 volts gets interpreted as a logical 1 and then output above 4 volts. This “self-correction” is what made digital computers the revolution they are.

so .. the only thing I could imagine making a system "analog" would be if each voltage were treated differently, rather than segregated into 0 or 1 as you just described. If a whole range of signal between 0 and 5 volts were directly output to something like a speaker system, that would be analog. I guess I'm wondering how this optical computer would get around the bottleneck of reducing everything to binary as you described with an electrical system.
You'd use an ADC.
opamps aren't binary