• I’m lost on how a transistor can just stay 0 or 1 when it’s just a super teeny tiny circle of wire, basically. Like, I know the typical explanation, but it doesn’t really make it any clearer. Electricity moves in a magic shape, and stuff happens. 🤷🏻‍♂️

    • Opisek@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      6 个月前

      The thing is, it never stays in a constant state! It’s more like a water dam with a steady water flow that you can open and close. You said you know the typical explanation already, so I won’t cry to explain it again.

    • bstix@feddit.dk
      link
      fedilink
      English
      arrow-up
      11
      ·
      6 个月前

      I’m not sure what the typical explanation is, but a transistor is not a wire.

      A wire is a conductor. It conducts electricity from end to the other.

      A transistor is a semi-conductor device made from semi-conducting materials, so it conducts electricity between 2 ends with a variable electrical resistance. This variable can be controlled by putting voltage on the third leg. This way a transistor is basically a resistor with a variable resistance, which unlike a resistor is also controllable by a third input.

      This ability is a property of the material. It cannot be constructed by a regular wire.

    • Aceticon@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      6 个月前

      The memory is generally done by something called a capacitor (though there are more techniques) which just can hold a little electrical charge - roughly having an electrical charge means it’s a 1, otherwise it’s a 0.

      Get 8 of those things and you have a byte.

      It’s generally easier to think of it as water: electrical lines are tubes moving water, capacitors are little containers that can have water (meaning bit = 1) or be empty (bit = 0), transistors are one-way water valves which are controlled by water (imagine they have a pressure button that opens the gate if there is water running in the tube passimg by that button, putting pressure on it).

      From this simple basis you can actually create a lot of complexity by having a LOT of these things combined in weird ways.

      Further, there’s also a lot of complexity due to the Physics of the real world being less than perfect (for example, the “capacitors” leak water, so not only do you have to say that bit=1 is “water above a certain level” rathe than “full” - since as soon as it’s filled it starts losing water - but you even have to check them once in a while and top up the ones which are supposed to be full before so kuch water leaks that the level has fallen below that treated as a “1” - this is actually how DRAM memory works, though with electric charge rather than water).