Electronic Computing: Crash Course Computer Science #2
CrashCourse
0:02 Our last episode brought us to the start of the 20th century,
0:06 where early, special purpose computing devices,
0:07 like tabulating machines, were a huge boon to governments and business- aiding,
0:11 and sometimes replacing, rote manual tasks.
0:13 But the scale of human systems continued to increase at an unprecedented rate.
0:17 The first half of the 20th century saw the world’s population almost double.
0:21 World War 1 mobilized 70 million people,
0:23 and World War 2 involved more than 100 million.
0:26 Global trade and transit networks became interconnected like never before,
0:29 and the sophistication of our engineering and scientific endeavors reached
0:32 new heights– we even started to seriously consider visiting other planets.
0:36 And it was this explosion of complexity, bureaucracy, and ultimately data,
0:40 that drove an increasing need for automation and computation.
0:44 Soon those cabinet-sized electro-mechanical
0:46 computers grew into room-sized behemoths
0:48 that were expensive to maintain and prone to errors.
0:52 And it was these machines that would set the stage for future innovation.
0:55 INTRO One of the largest electro-mechanical
1:06 computers built was the Harvard Mark I,
1:08 completed in 1944 by IBM for the Allies during World War 2.
1:12 It contained 765,000 components, three million connections,
1:16 and five hundred miles of wire.
1:19 To keep its internal mechanics synchronized,
1:21 it used a 50-foot shaft running right through
1:24 the machine driven by a five horsepower motor.
1:26 One of the earliest uses for this technology
1:28 was running simulations for the Manhattan Project.
1:30 The brains of these huge electro-mechanical beasts were relays:
1:33 electrically-controlled mechanical switches.
1:35 In a relay, there is a control wire
1:38 that determines whether a circuit is opened or closed.
1:41 The control wire connects to a coil of wire inside the relay.
1:44 When current flows through the coil,
1:46 an electromagnetic field is created, which in turn,
1:49 attracts a metal arm inside the relay,
1:51 snapping it shut and completing the circuit.
1:53 You can think of a relay like a water faucet.
1:55 The control wire is like the faucet handle.
1:57 Open the faucet, and water flows through the pipe.
2:00 Close the faucet, and the flow of water stops.
2:02 Relays are doing the same thing, just with electrons instead of water.
2:05 The controlled circuit can then connect to other circuits,
2:08 or to something like a motor, which might increment a count on a gear,
2:12 like in Hollerith's tabulating machine we talked about last episode.
2:15 Unfortunately, the mechanical arm inside of a relay *has mass*,
2:18 and therefore can’t move instantly between opened and closed states.
2:21 A good relay in the 1940’s might be able
2:24 to flick back and forth fifty times in a second.
2:26 That might seem pretty fast,
2:28 but it’s not fast enough to be useful at solving large, complex problems.
2:31 The Harvard Mark I could do 3 additions or subtractions per second;
2:35 multiplications took 6 seconds, and divisions took 15.
2:39 And more complex operations, like a trigonometric function,
2:42 could take over a minute.
2:44 In addition to slow switching speed, another limitation was wear and tear.
2:48 Anything mechanical that moves will wear over time.
2:50 Some things break entirely, and other things start getting sticky,
2:53 slow, and just plain unreliable.
2:54 And as the number of relays increases,
2:56 the probability of a failure increases too.
2:59 The Harvard Mark I had roughly 3500 relays.
3:02 Even if you assume a relay has an operational life of 10 years,
3:05 this would mean you’d have to replace, on average, one faulty relay every day!
3:09 That’s a big problem when you are in the middle of running some important,
3:13 multi-day calculation.
3:14 And that’s not all engineers had to contend with.
3:16 These huge, dark, and warm machines also attracted insects.
3:19 In September 1947, operators on the Harvard Mark
3:22 II pulled a dead moth from a malfunctioning relay.
3:24 Grace Hopper who we’ll talk more about in a later episode noted,
3:28 “From then on, when anything went wrong with a computer,
3:31 we said it had bugs in it.” And that’s where we get the term computer bug.
3:34 It was clear that a faster,
3:36 more reliable alternative to electro-mechanical relays was
3:38 needed if computing was going to advance further,
3:41 and fortunately that alternative already existed!
3:43 In 1904, English physicist John Ambrose Fleming developed
3:47 a new electrical component called a thermionic valve,
3:50 which housed two electrodes inside an airtight
3:52 glass bulb- this was the first vacuum tube.
3:55 One of the electrodes could be heated,
3:57 which would cause it to emit electrons– a process called thermionic emission.
4:01 The other electrode could then attract these electrons
4:04 to create the flow of our electric faucet,
4:06 but only if it was positively charged- if it had a negative or neutral charge,
4:11 the electrons would no longer be attracted
4:13 across the vacuum so no current would flow.
4:15 An electronic component that permits the one-way
4:17 flow of current is called a diode,
4:19 but what was really needed was a switch to help turn this flow on and off.
4:24 Luckily, shortly after, in 1906,
4:26 American inventor Lee de Forest added a third “control”
4:29 electrode that sits between the two electrodes in Fleming’s design.
4:32 By applying a positive charge to the control electrode,
4:35 it would permit the flow of electrons as before.
4:38 But if the control electrode was given a negative charge,
4:41 it would prevent the flow of electrons.
4:43 So by manipulating the control wire, one could open or close the circuit.
4:46 It’s pretty much the same thing as a relay- but importantly,
4:49 vacuum tubes have no moving parts.
4:51 This meant there was less wear, and more importantly,
4:53 they could switch thousands of times per second.
4:56 These triode vacuum tubes would become the basis of radio,
4:59 long distance telephone,
5:00 and many other electronic devices for nearly a half century.
5:03 I should note here that vacuum tubes weren’t perfect- they’re kind of fragile,
5:07 and can burn out like light bulbs,
5:09 they were a big improvement over mechanical relays.
5:11 Also, initially vacuum tubes were expensive– a radio set often used just one,
5:16 but a computer might require hundreds or thousands of electrical switches.
5:20 But by the 1940s, their cost and reliability had improved
5:23 to the point where they became feasible for use in computers….
5:26 at least by people with deep pockets, like governments.
5:29 This marked the shift from electro-mechanical computing to electronic computing.
5:33 Let’s go to the Thought Bubble.
5:35 The first large-scale use of vacuum tubes for computing was the Colossus
5:39 Mk 1 designed by engineer Tommy Flowers and completed in December of 1943.
5:44 The Colossus was installed at Bletchley Park,
5:47 in the UK, and helped to decrypt Nazi communications.
5:50 This may sound familiar because two years prior Alan Turing,
5:53 often called the father of computer science,
5:55 had created an electromechanical device,
5:57 also at Bletchley Park, called the Bombe.
5:59 It was an electromechanical machine designed to break Nazi Enigma codes,
6:03 but the Bombe wasn’t technically a computer,
6:05 and we’ll get to Alan Turing’s contributions later.
6:08 Anyway, the first version of Colossus contained 1,600 vacuum tubes,
6:12 and in total, ten Colossi were built to help with code-breaking.
6:17 Colossus is regarded as the first programmable, electronic computer.
6:20 Programming was done by plugging hundreds of wires into plugboards,
6:23 sort of like old school telephone switchboards,
6:26 in order to set up the computer to perform the right operations.
6:29 So while “programmable”,
6:31 it still had to be configured to perform a specific computation.
6:35 Enter the The Electronic Numerical
6:37 Integrator and Calculator– or ENIAC– completed
6:40 a few years later in 1946 at the University of Pennsylvania.
6:44 Designed by John Mauchly and J.
6:46 Presper Eckert, this was the world's first truly general purpose,
6:50 programmable, electronic computer.
6:52 ENIAC could perform 5000 ten-digit additions or subtractions per second,
6:56 many, many times faster than any machine that came before it.
7:00 It was operational for ten years, and is estimated to have done more arithmetic
7:04 than the entire human race up to that point.
7:07 But with that many vacuum tubes failures were common,
7:09 and ENIAC was generally only operational for about
7:12 half a day at a time before breaking down.
7:14 Thanks Thought Bubble.
7:15 By the 1950’s, even vacuum-tube-based computing was reaching its limits.
7:19 The US Air Force’s AN/FSQ-7 computer, which was completed in 1955,
7:23 was part of the “SAGE” air defense computer
7:26 system we’ll talk more about in a later episode.
7:29 To reduce cost and size, as well as improve reliability and speed,
7:33 a radical new electronic switch would be needed.
7:35 In 1947, Bell Laboratory scientists John Bardeen,
7:38 Walter Brattain, and William Shockley invented the transistor,
7:41 and with it, a whole new era of computing was born!
7:45 The physics behind transistors is pretty complex, relying on quantum mechanics,
7:49 so we’re going to stick to the basics.
7:51 A transistor is just like a relay or vacuum tube- it’s a switch
7:55 that can be opened or closed by applying electrical power via a control wire.
7:59 Typically, transistors have two electrodes separated
8:01 by a material that sometimes can conduct electricity,
8:04 and other times resist it– a semiconductor.
8:07 In this case, the control wire attaches to a “gate” electrode.
8:11 By changing the electrical charge of the gate,
8:13 the conductivity of the semiconducting material can be manipulated,
8:17 allowing current to flow or be stopped–
8:19 like the water faucet analogy we discussed earlier.
8:22 Even the very first transistor at Bell Labs showed tremendous promise–
8:25 it could switch between on and off states 10,000 times per second.
8:30 Further, unlike vacuum tubes made of glass and with carefully suspended,
8:34 fragile components, transistors were solid material
8:36 known as a solid state component.
8:39 Almost immediately, transistors could be made smaller
8:41 than the smallest possible relays or vacuum tubes.
8:43 This led to dramatically smaller and cheaper computers, like the IBM 608,
8:48 released in 1957– the first fully transistor-powered,
8:52 commercially-available computer.
8:53 It contained 3000 transistors and could perform 4,500 additions,
8:58 or roughly 80 multiplications or divisions, every second.
9:01 IBM soon transitioned all of its computing products to transistors,
9:06 bringing transistor-based computers into offices, and eventually, homes.
9:10 Today, computers use transistors that are smaller
9:12 than 50 nanometers in size– for reference,
9:15 a sheet of paper is roughly 100,000 nanometers thick.
9:18 And they’re not only incredibly small,
9:20 they’re super fast– they can switch states millions of times per second,
9:25 and can run for decades.
9:27 A lot of this transistor and semiconductor
9:29 development happened in the Santa Clara Valley,
9:31 between San Francisco and San Jose, California.
9:34 As the most common material used to create semiconductors is silicon,
9:38 this region soon became known as Silicon Valley.
9:41 Even William Shockley moved there, founding Shockley Semiconductor,
9:44 whose employees later founded Fairchild Semiconductors,
9:47 whose employees later founded Intel-
9:50 the world’s largest computer chip maker today.
9:52 Ok, so we’ve gone from relays to vacuum tubes to transistors.
9:56 We can turn electricity on and off really, really, really fast.
9:59 But how do we get from transistors to actually computing something,
10:03 especially if we don’t have motors and gears?
10:06 That’s what we’re going to cover over the next few episodes.
10:09 Thanks for watching.
10:10 See you next week.