Von Neumann Architecture - Computerphile
Professor Brailsford, a lot of people talk about von Neumann architecture and
we've talked about Babbage, we've talked about Turing. Who was von Neumann?
We've done a lot about Turing. We've done a fair bit about Babbage in the generation
earlier. In fact a lot of people, I guess, in the English-speaking world would
regard Turing, in some ways, being the father of computing. He came up with this
very important result in the mid-30s about what was computable. And, as we now
know, to his credit, he wasn't at all afraid to burn himself with soldering
iron and try to create hardware, which he did at Bletchley Park during the war. So,
yes, if he's the father, if Babbage was the grandfather, and if Ada Countess of
Lovelace was the great-aunt, then who on earth was John von Neumann and why is he
mentioned alongside Turing? Well, right at the outset, let's say John von Neumann
was the impossibly talented, impossibly charismatic, very wealthy uncle to
computing. It was he that, in the mid-1940s, in a way, made it all happen by the
force of his own personality and kept it not just in an enclosed community but
encouraged all those who wanted to build general-purpose computers to come along
to this summer school and do it. But that really, I guess, is in the future.
It's where we've got to get to in the von Neumann story. But, yes, you're quite
right, Sean, to say that one of the first phrases that almost any computer
scientist hears about is the von Neumann architecture for computers, which, to a
large extent, we still follow even now, all of what 60, 70 years later. So, we've
mentioned EDSAC before. We'll be coming back to mention this very important
early computer again. But it is a von Neumann machine and all it's saying is
it's very simple. To build a computer you need a store, or memory, as it's more
commonly called nowadays, to hold your instructions and your data. You need a
control unit, often called a CPU now, and you need an arithmetic capability, the ALU,
the Arithmetic and Logic Unit. Again, many of you will know that in modern chips
those two are often combined into what we just call the CPU chip nowadays. And
you need input devices of various sorts, leading back to people's teletypes, input
output devices for backup storage, disks, and so on. You need to be able to do
input and output. So, there it is. It's just one, two, three, four, five boxes. That is
the von Neumann architecture. And it's very, very similar today. There was a big
debate at the time about that store, that memory. Shouldn't you, for safety's sake,
put the instructions of your program in a different sort of memory to your data?
Wouldn't it be safer to do that and better in some ways? On the other hand,
clearly, if you've got a good memory technology that works, the temptation
might be just to put them in separate areas of that same technology and try
and take some sort of precaution about them not interfering with each other.
In EDSAC the only way to get into a subroutine and get back out of it again
was to overwrite part of your program instructions. Let's just return back to
this incredible character, John von Neumann. How does he fit in alongside
Alan Turing? Well, like I said, he's the older, impossibly talented, uncle. Did
Turing and von Neumann know each other? Oh, yes, they did. They were both, basically,
trained as mathematicians. Von Neumann! It's hard to know where to begin and
where to end. You can't exaggerate enough about how good he was. He was Hungarian
and his Hungarian name, where they give surnames first, was, I think, Neumann Janos.
His father was very, very wealthy and when von Neumann was quite young the
family became ennobled in Hungary. It became, basically, at the level of baron,
hereditary baron, I think, over here. Janos was very talented. He was a childhood
prodigy. He could divide one eight-digit number by another eight-digit number in
a fraction of a second when he was aged about six. He loved history. He was a
multi-talented polymath. He easily came top of the class. He effortlessly took in
detail. And that's the first thing that all of his mathematics contemporaries
said about him was his sheer speed at picking up new ideas and seeing the
ramifications of them. So he was notorious, even as a teenager and as a
maths undergrad. He did his early education, I think, up to PhD level, in
Budapest. He almost naturally ended up at a place we mentioned before in
connection with Gödel and Hilbert. I'm talking, of course, about Göttingen
University in Germany. So Neumann Janos makes the journey, via a PhD, to
becoming, effectively, the research assistant to the superstar David Hilbert
at Göttingen. But because his family had been ennobled he's not Janos Neumann
anymore. Neumann Janos, sorry. He's Johann von Neumann.
Impossibly talented. Hilbert, his supervisor, at a seminar given by
Johnny, John, Johann, asked who his tailor was because his impossibly smart
pinstripe suit was just a complete knock-out. So he was a legend almost the
moment he got there and did some fabulously important work there. It was
obvious that, for somebody of his talents, he was going to get a full
professorship very quickly indeed. I think he became impatient, waiting for it
to happen at any German university. So in the late 30s, 37, 38, somewhere around
there, anyway, he got an offer from Princeton in New Jersey. And that was, I
don't know, very timely. It's all fitted in together very well. As part of his
tours of Europe, giving seminars, and on his way to Princeton, I think he met
Turing in the mid-30s, in Cambridge, because he gave seminars there. And a lot
of mutual respect grew up. I mean, obviously, Turing being in awe of von
Neumann wouldn't be so exceptional. But after that 1936 paper of Turing's about
decidability, following on from Gödel, and all that, von Neumann rated Turing.
There's no question about that. This was evidenced by the fact, you will recall,
those of you who've seen my previous videos, that Turing also took a sabbatical
and worked with Alonzo Church at Princeton. Well, von Neumann was there by
that time. Von Neumann was such a superstar they not only made him
Professor of Mathematics at Princeton, at an absurdly early age, probably about
30, something like that. But, some of you will recall, right next door to Princeton,
about a mile and a half across the meadows, is the Institute for Advanced
Studies, which had been endowed in the early 1930s by a multimillionaire. And
this really was the ultimate club to be invited to join. You've got to be of the
quality of Einstein, who accepted the invitation. Hermann Weyl, one of the
founders of quantum mechanics. Gödel. We know about Gödel. Gödel was invited to
just come to IAS, Institute of Advanced Studies at Princeton. Stay as long as you
like. Yes, you're a professor. Everything found, food, accommodation, a lot. All we
want is to have the greatest minds here. Von Neumann was offered a professorship
in that community, I think, at age 35, maybe slightly younger. Unbelievably
young. He'd hardly been at Princeton a year or two as an ordinary mathematics
professor. Everybody thought this is a truly phenomenal person. He reminded many
people of absolute superstars like Newton, Gauss, Euler, Einstein, Hilbert
himself. Even at early to mid-30s they could see that potential in him there.
So, yes, Turing visits Princeton in 1938, worked with Alonzo Church but also, of
course, had interactions at seminars with von Neumann. And then came the big question, if you recall, for
Alan Turing, should I return to England and do my patriotic duty? According to
Andrew Hodges' definitive biography of Turing, Turing's father was all for
Turing staying in Princeton. You know, keep out the war, get a prestigious
mathematic job. And that was underlined by the fact that von Neumann offered
Turing a job. He basically said, Turing, would you like to be my research
assistant at the Institute for Advanced Studies? Now, Turing could see straight
away that just would just make you, as a mathematician, you were invited by the
great von Neumann to be his research assistant at IAS. The only problem was, I
think, first of all, I think Alan Turing did feel a certain patriotism in wanting
to come home and do his bit. There was also the worry that, at that time, von
Neumann had not properly got into computing. He'd not turned his
considerable talents to considering it. And for the research assistantship he
wanted Alan Turing to do quantum mechanics, another of von Neumann's great
love. And I don't think Turing was keen on that because he knew from experience
at Cambridge, where he tried doing mathematical physics, it really wasn't
his arena at all. So, he politely declined, with great thanks, came back to
England and the rest, if you like, is more or less history. Now, there's Johnny, as he'd
now become. Johann von Neumann, speaker of four or five languages, including Italian
and English, once he'd transferred from Göttingen to Princeton, wanted to become
the All-American genius. So, he was, on more formal occasions, he was just John von
Neumann, but to his friends he was Johnny. Oh! You can't exaggerate enough. I mean, his
wife said he can count everything but calories. He was fond of food and drink,
the champagne parties, the glitz, the glamour, the girlfriends. Good old Johnny!
He absolutely was the antithesis of the shy mathematician. He was all-encompassing
and everybody who met him was just stunned by how he could see his way
through problems in no time flat and just do impossible things. And so he was
there in a very, very nice position, Institute for Advanced Studies, even
before the Americans joined the war. But he stayed there throughout the war. But
being who he was, he was endlessly in demand to be a consultant. And most
famously, along with people like J Robert Oppenheimer, he was one of the
consultants employed on the Manhattan Project, the atomic bomb and the hydrogen
bomb. But he was used by the Army, the US Navy, the Air Force. Everybody wanted
Johnny as their consultant. And this even included, as the war developed, the fact
that one of the earliest computers, which we have mentioned in a previous video,
was University of Pennsylvania Moore School of Engineering. They helped
develop the ENIAC, which, if you remember, was a vacuum-tube computer running on
decimal arithmetic and initially devoted to gunnery trajectory calculations. It
was a bit late in 1946 to be of direct strategic use in gunnery. Actually, Johnny,
who by this time, of course, was a consultant to the Moore School, devised a
way, I think, to turn ENIAC into being a general-purpose computer, although it
wasn't a very efficient one. And I believe he used it for some calculations
relevant to the atomic bomb and all that kind of thing. The natural question
arising with everybody at the end of the war went like this. We all know, or even
though it's top-secret at Bletchley Park, we have heard gentle rumours that
computers are being developed all over the place. And you've always got to say
are they special-purpose? Are they general-purpose? Are they binary? Are they
decimal? Are they fully electronic? Or are they electromechanical? And, literally,
there must have been at least a dozen machines around that satisfied some of
these criteria. If you ask Germans about who's the father of computing, they say
Conrad Zuse. He developed electromechanical machines that were
Turing-complete and calculated things. But they never got beyond
electromechanical. You get into electronic ones. You get Atanasov and
Berry's electronic valve-driven thing. Special-purpose, though, could solve
certain differential equations. And even Tommy Flowers and Colossus, we know,
special-purpose can decrypt tiny traffic. Lorenz Cipher, as it later became known as.
So you've got everything happening that, if it's general-purpose, it's not yet
electronic. If it's special-purpose it is electronic. But we want it to be
general-purpose. So, at the end of the war, it was the perfect time to get everybody
together and say, look, now that the war's over, we all want to find the way to do
it correctly. To build general-purpose, probably binary-based, because they're
more reliable, all-electronic digital computers. How do we do it? And who better
to lead the charge and run a summer school and be associated with it than
Uncle Johnny, of course. And the Moore School at Pennsylvania, to their great
credit, did this. They decided that the successor to ENIAC would be a thing
called EDVAC. They said, yeah, it's gonna take us three or four years to do this.
But, in the meantime, here we are, 1946. Why not all of you, all over the world, who
are interested in the quest to build general-purpose, all-electronic, digital
computers, probably based on the binary system, will hold a summer school in the
Moore School of Engineering, 1946. Welcome everybody. Did Turing go to it? He was, I
believe, at that time, at the National Physical Laboratory in the UK. No, he
didn't. Hated conferences, did Turing. He wasn't a clubbable character. Couldn't
stand small talk. Classic, shy mathematician. Not at all like von Neumann,
right? So, Turing wasn't, if you like, the UK representative there. And one wonders
whether he would also have been held back by Bletchley Park and the Official
Secrets Act, because he'd only just left a few years before. The representative from
the UK was somebody who was Turing's exact contemporary. They had both done
mathematics in the early 1930s at Cambridge. They had both got first-class
degrees. Did they get on? Not very well. But who's this other person? His name is
Morris Wilkes. Morris Vincent Wilkes. And by the vagaries of job allocations
around about World War Two, he didn't end up at Bletchley Park, did Morris. He ended
up in Radar. But he knew enough about mathematics and electronics to be in a
good position to do, or make, a von Neumann machine in the UK, in the period
from about 1946 onwards. But we'd better stop there because Morris and his headsack
is an extra story.

