The Switch
At the bottom of the stack, there is no code. There are no functions. There are no "If" statements.
There is only Voltage and State.
Imagine you are holding a single electron. To you, it is just a unit of charge. But to a computer engineer, an electron is a problem. It is chaotic, it creates heat, and it moves probabilistically. To build a machine that can "think," we have to force this chaotic matter to behave. We have to beat it into submission.
The Valve of Reality
We do this using a device called the MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor). Forget the name. Think of it as a Valve.
the same, but instead of water, we use electrons, and instead of a hand turning a handle, we use an electric
field (Voltage)
to squeeze the pipe shut.
(Note: The electrons do not flow into the gate; the field alone controls the channel.)
Try the switch above. When you apply 5 Volts to the Gate, the valve opens. The "Source" connects to the "Drain", and current flows (The light turns on).
This simple action—flowing or blocking—is the only thing a computer can actually do. Everything else—from Grand Theft Auto to the AI reading this text—is just billions of these switches opening and closing in a very specific rhythm.
Why don't we use 2.5 Volts? Why only 0V and 5V?
Because reality is noisy. If we tried to make a computer that understood "2.5", a tiny fluctuation in
temperature or wire length might change it to "2.4", and the math would break.
Digital computing won because it is aggressive. It rounds everything. 4V? That's a 1.
3V? That's a 1. 0.5V? That's a 0. We tolerate the noise by ignoring it.
The Cost of Switching
There is one more catch. The valve does not open instantly. The Gate has Capacitance—it takes time to fill up with electrons before the field is strong enough to open the channel.
This Switching Delay is one of the fundamental speed limits of the universe. It is why your CPU cannot run at 100 GHz. We are waiting for the physics to settle.
Because switches take time to settle, computers must agree on when a value is valid. This agreement is enforced by a global rhythm — the Clock.