I understand that part of the heat release from a computer comes from resistive heating, but to my understanding it is also linked to entropy changes and information - such that even a superconducting computer must generate some heat. Now I'm neither an expert on information theory, computers, or entropy, so please do correct my inevitable mishaps.
Say we have two registers, A and B, each holding one bit of information. We pass these through an OR
gate, it returns only one bit of information, 0 or 1. It seems then that, in passing two bits into the gate, and getting out only one we have "deleted" one bit of information, corresponding to an entropy decrease $k_b\log(2)$.*
This means that the surroundings (the room the computer is in) must have a commensurate increase in entropy, in accordance with the 2nd Law of Thermodynamics, right? This is why the room must heat up? I'm still confused as to where exactly that energy comes from... Since energy can't be created, for the room to heat up, something else must've lost the energy... Would this simply be the electrons in the wiring/transistors?
Resistive heating I can explain to almost anyone, by analogy of electrons jostling through wires. But as for why going from 2 bits of information to 1 should heat up the room, I struggle to put it simply.
*I suppose a different way of phrasing it is that the macrostate of 2 bits (A and B) has 4 microstates, such that $S=k_b\log(4)$ but passing the OR
gate leaves only 1 bit, with 2 microstates. Thus $\Delta S = k_b \left(\log(4) - \log(2)\right) = k_b \log(2)$.