Skip to content

Commit 37a346f

Browse files
committed
rough
1 parent 4402729 commit 37a346f

File tree

2 files changed

+339
-0
lines changed

2 files changed

+339
-0
lines changed

_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ parts:
3434
- file: notes/2022-11-02
3535
- file: notes/2022-11-07
3636
- file: notes/2022-11-14
37+
- file: notes/2022-11-16
3738
- caption: Activities
3839
chapters:
3940
- file: activities/kwl

notes/2022-11-16.md

Lines changed: 338 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,338 @@
1+
---
2+
jupytext:
3+
text_representation:
4+
extension: .md
5+
format_name: myst
6+
format_version: 0.13
7+
jupytext_version: 1.10.3
8+
kernelspec:
9+
display_name: Python 3
10+
language: python
11+
name: python3
12+
---
13+
14+
15+
```{code-cell} ipython3
16+
:tags: ["remove-input"]
17+
18+
from IPython.display import Markdown, display
19+
20+
date = '2022-04-14'
21+
practice = '../_practice/' + date + '.md'
22+
prepare = '../_prepare/' + date + '.md'
23+
```
24+
25+
26+
# What *is* a computer?
27+
28+
29+
- how, physically, do we get the components we have seen?
30+
- what other components do we need?
31+
- how are those implemented
32+
33+
34+
How have computers changed over time?
35+
36+
- at the physical level
37+
- what was the context and motivation for these advances?
38+
- how does that context influence how we use computers today?
39+
- how does that influence computing as a discipline?
40+
41+
42+
## Let's start with a dictionary
43+
44+
45+
46+
[we can start with a dictionary](https://www.oed.com/oed2/00045995)
47+
48+
- note that this starts with reference to a person.
49+
50+
51+
52+
### Computers as people
53+
54+
and this text this particular dictionary is useful because it also includes where does the term originated like where does in that particular usage start appearing and so these are these are pretty all right this is starting 1646 1707
55+
56+
- Use of the word computer to refer to the person still common how recently 1950s
57+
- the movie [hidden figures](https://www.imdb.com/title/tt4846340/) is available on Disney+ with subscription or other streaming platforms for ~$4 streaming rental.
58+
- the book [hidden figures](https://uri-primo.hosted.exlibrisgroup.com/permalink/f/10nopmq/01URI_ALMA21128298920002396) is available at URI's library
59+
60+
<!-- I know you're not in that you've seen it can you tell us a little bit about that movie
61+
62+
it was it was yeah to get a person to the Moon requires a lot of math right like rockets all of that it's a lot of math for that to happen
63+
64+
NASA's initial setup computers
65+
66+
67+
68+
was rooms full of people with small talk to you later and they were doing all the calculations were being paid the jobs they were doing the
69+
70+
the computers in to take it over and do the actual like get the numbers out yes that was a next question so women were computers man were mathematicians if women went to college and got like a bachelor's degree in math they could then we'll be a computer and work
71+
72+
what the mathematicians were all men about time which is not pleasant I feel like cringing discomfort like tensions but that's what the women were computers that's all the way
73+
74+
because when NASA and other places started buying actual physical machine computers people who have been doing the calculations were then taught to
75+
76+
77+
78+
part of that movie's plot is that they got the computer and then they actually the first ones who became proficient with those particular computer is on that particular site in Virginia and the others left, and all that stuff but
79+
80+
-->
81+
82+
83+
### Computers as Machines
84+
computer starts to be termed talking about a machine must later so that 1897 is a long time after 1646
85+
86+
you like ideas
87+
88+
most of them are physical really things like you can see there's a couple things early but most of it starts around 1944 46 around then what was going on
89+
90+
91+
92+
they weren't ya so early computer people were mathematicians by like training and their own identity but then they kind of blurred into things too the world was very dark place and it is today they're worried about
93+
94+
other like it was a lot of applications it was also like the Manhattan Project was one of the things that motivated them like this is why we need to build a lot of calculations and then later at the end of the 56 the Moon that was also a lot of math like we need to make sure these Rockets can like go up and come back down the way we expect them to
95+
96+
97+
98+
99+
### How much do we talk about computers?
100+
101+
[how much do we talk about them changes over time ](https://books.google.com/ngrams/graph?year_start=1800&year_end=2019&corpus=26&smoothing=7&case_insensitive=on&content=computer&direct_url=t4%3B%2Ccomputer%3B%2Cc0%3B%2Cs0%3B%3Bcomputer%3B%2Cc0%3B%3BComputer%3B%2Cc0%3B%3BCOMPUTER%3B%2Cc0#t4%3B%2Ccomputer%3B%2Cc0%3B%2Cs0%3B%3Bcomputer%3B%2Cc0%3B%3BComputer%3B%2Cc0%3B%3BCOMPUTER%3B%2Cc0)
102+
103+
104+
how much do we have to talk about them so Google does this thing with Google Books
105+
106+
it's me what's surprising about that surprising
107+
108+
if you talk to you not the
109+
110+
is there talk about things when they're new
111+
112+
- note that we talk about things a lot using their basic name when they're new
113+
- we don't talk about normal things
114+
115+
hey I think things are trained on news Corporal and do not like otech bodies of news text from the internet
116+
117+
they would consider murder a very high frequency and blinking very low frequency of that
118+
119+
don't talk about blinking we do it all the time like I'm sure since I started talking with my king every one of us has blank more than once
120+
121+
## Mechanical Calculators
122+
how do we actually like physically make it be machine
123+
124+
125+
126+
well we've we've talked we handed out that like it's going to reduce down to or isn't my check and logical operations write those de back much further than
127+
128+
129+
![pascal](https://upload.wikimedia.org/wikipedia/commons/7/78/Pascaline-CnAM_823-1-IMG_1506-black.jpg)
130+
131+
132+
133+
what is the mechanical calculator it works by like incrementing it doesn't do the logic like they took not a binary representation it's not adding via input two numbers and then it goes forward its where's my income as you put in one number then you can add the next number and it kind of works the wheels have like the numbers on them and it uses like 9 supplement to carry over to the next bit so there's a gear that when it hits a certain point that turns the next year and then it goes for it any Castles in the Sky why the semi did
134+
135+
136+
**Why did he make this?**
137+
138+
He was 18 and his father was a tax commissioner in France and he wanted to like reduce his father's workload
139+
140+
so he invented this calulator machine and received roayl privilege from France in 1649 to be only person allowed to build a manufactured Computing a calculator is like mechanical calculators
141+
142+
143+
144+
![pascal schematic](https://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/Pascaline_-_top_view_and_mechanism.jpg/1920px-Pascaline_-_top_view_and_mechanism.jpg)
145+
146+
147+
148+
```{note}
149+
Contrast this royal privelege with the 1970s where in resolving some other conflict, a court that declared the content of the computer that they cannot be found it at all and it's free for anyone to use the concept of a computer
150+
```
151+
152+
153+
## How did this change over time?
154+
155+
156+
157+
calculators that are still analog so they're still working with mechanical systems using Waze electricity becomes easier
158+
159+
we can start doing like electrical signal processing so we can move analog signals and start doing our agents and calculations with those are not what was really used through for transmitting information like telegram telephone all of that is analog thing
160+
161+
162+
163+
between Springs and dampers, the mechanical things are used to build these mechanical calculators and the electrical components so resistors transistors.
164+
165+
166+
[timeline of computing](https://www.computerhistory.org/timeline/computers/)
167+
168+
169+
170+
### Model K Adder (1937)
171+
172+
- George Stibitz took some pieces at home from work at Bell Laboratory and got it working on his kitchen table.
173+
- it can do four bit addition
174+
- uses a telephone relay switch or an electromechanical switch so they're using like a
175+
176+
```{note}
177+
Relays are designed to repeat, or relay, a signal to the next circuit to compelte long distance telegraphs and early telphone. As the signal transpits down the cable (one circuit) it gets weaker due to loss, so it has to be repeated at some point to amplify the magnitude of it for the next length of the journey.
178+
```
179+
180+
precursor to the complex number calculator
181+
182+
he demonstrated how this works in combination with Telegraph
183+
184+
for the first remote access
185+
- complex number calulator was at Bell Labs in New York City at the time in 1940
186+
at a Confrence at Dartmouth in Hanover New Hampshire and he use a telegraph to do remote calculations on this calculator and bring them the numbers back
187+
188+
### Intel 4004 (1971)
189+
190+
- First commercially produced microprocessor
191+
- 2,250 transistors
192+
- Could perform up to 90,000 operations per second in four bit chunks
193+
- 740 kHz clock speed
194+
195+
196+
### So how do these thigns actually work
197+
198+
- [We can build an adder mechanically with marbles and wood](https://www.youtube.com/watch?v=GcDshWmhF4A)
199+
200+
As electricity became more available, they realized that in terms of mathematical operations, electrical components resemble springs and switches
201+
202+
- first vaccuum tubes: or diodes
203+
- diodes prevent flow of electricity in one direction and allow in the other. they can be used to create circuits that behave like the logical operations, and create the gates.
204+
- diodes only are easy for `&` and `|` gates,
205+
- transistors can operate as a switch or amplifier and can also be used to build logic gates
206+
- they're faster, smaller, and better at more types of gates than diodes
207+
208+
## Early Computers
209+
210+
211+
During this time small, lots of small computers were made, but each was made completely by its creators, there was no standards, per say.
212+
213+
These computers were also stored program computers. Meaning their operation at a program level was fixed by the circuitry.
214+
215+
switch the circuit to do different things between the numbers so this would get us bitwise operations of an indoor and outdoor on our numbers
216+
217+
218+
we had the first program later this eniac computer
219+
220+
which athlete came out certainty 43 wasn't finished for a little while this this all this is one computer and see there's several people in this room doing this one computer this was programmed manually like changing the circuits because it helped me had and that point in time they only had read-only memory you could put something into memory we don't have memory like what kind of memory that you could keep when you said the power off for a long time what's the powers off then what was that whatever was in Army was on and all we had was just reading the numbers you could program the computer stuff is working out to do the thing we're going to do and then you could go do that calculation many times you needed an Ordy bug a program that it took weeks to value of all experience the pain of debugging rarely it takes two weeks to debug one error correct
221+
222+
right yes maybe it hurts sometimes it's like a long night not enough sleep but like this week's of like moving cables did anyone get his memory we need some way about you storing things and writing things down and we need a way that actually can store memory that first they do more vacuum tubes do the same sort of switching on and off with store stuff but the problem with that is the power off
223+
224+
so but this
225+
226+
stored program computers they only had read only memory and eventually we got random access memory which we could write and read and change whenever we wanted
227+
228+
which we can have including storage without power
229+
230+
so and not but we have three types of places we store information we got registers which store information that is currently being processed so we look back at our circuits these inputs here we're turning onto just as B were treating them as switches but these are actually implemented as register if you have a register at the input and a register register the input for each of the inputs to b l u r i a registered but it's only live it's got some number of bits in it so see if you're paying attention and putting things together we talked about a computer system having like operating doing some type of some type of a b s what device stores that many bits
231+
232+
Dell computers we have
233+
234+
so what what is Ashley's what is the thing that has that number of bits is a limitation of the device equipment stores at me I guess I should have changed the options but we'll go look what it is
235+
236+
237+
## von Neumann Architecture
238+
239+
240+
what else do we need besides ALU for to have like a whole computer
241+
242+
we eventually need clocks to time things and synchronize things to like know when to clear and when to change so that you if you want to do multiple things in sequence you can do that what else you need or want to do multiple things in sequence but don't know what else we need a general now
243+
244+
store more insturctions and data
245+
246+
my diagram didn't work so the basic architecture we used to talk about all the main component we need is called the Von Neumann architecture this is a slightly expanded version of it could be slightly simpler than this but
247+
248+
theater image put the volume in architecture
249+
250+
was from 1945 was written by people at 10 and this is basically how we still design computers for the most part we have you control unit
251+
252+
some memory and some registers together all of these things or the CPU
253+
254+
these can talk to Ram which is memory random-access memory so this is a memory that can be changed any time we want it Amanda storage or hard drive which is now not as physically different from these two but that's there
255+
256+
257+
In 1945 we get a draft of a general template. This is basically what we use today.
258+
259+
260+
261+
![Von Neumann Architecturediagram ](https://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Von_Neumann_Architecture.svg/2560px-Von_Neumann_Architecture.svg.png)
262+
263+
264+
![a bit mroe detail](https://upload.wikimedia.org/wikipedia/commons/4/4e/Computer_Systems_-_Von_Neumann_Architecture_Large_poster_anchor_chart.svg)
265+
266+
267+
268+
269+
## Storage
270+
271+
272+
- there are some thigns we have not yet seen in detail in that diagram
273+
- Ram Is Random Access we can access it whenever we want we can read and write to
274+
- ROM: is read only memory; the instructions are Permanently
275+
276+
277+
In the stored program computers, the programs were in ROM.
278+
279+
The very earliest computers could not store any values without power.
280+
281+
282+
- Register: data currently processing
283+
- Memory: will be required for processing
284+
- Disk: long term storage
285+
286+
287+
(class22prep)=
288+
## Prepare for next class
289+
````{margin}
290+
```{note}
291+
The text in () in these sections is an explanation of *why* that task is assigned
292+
```
293+
````
294+
295+
296+
```{code-cell} ipython3
297+
:tags: ["remove-input"]
298+
299+
display(Markdown(prepare))
300+
```
301+
302+
303+
304+
(class22practice)=
305+
## More Practice
306+
307+
308+
309+
```{code-cell} ipython3
310+
:tags: ["remove-input"]
311+
display(Markdown(practice))
312+
```
313+
314+
315+
316+
317+
318+
## Questions After Class
319+
320+
321+
### Do we eventually switch our computers to use more than 64 bits?
322+
```{toggle}
323+
We really get just about all of the precision we need out of 64 bits and creating registers, ALUs, buses, etc with more than that is more expensive and slower, so mostly there seems to be no need, for general purpose computing.
324+
325+
Switching from 32 to 64 was important not only for precise calculations because we can use memory tricks to circumvent that anyway, but for the ALU to participate in addressing memory. With 32 bit registers we can only express 2^32 addresses for the RAM, so we can only access 4Gibibytes or 3.8GB RAM (we'll cover this translations later), with 64 bit registers we can address 2^64= 2^32*2^32 so we squared the amount of memory we can address this is 16 Exibbytes or a little bit fewer Exabytes, which is far more than we need for regular computing, while more than 4GB of RAM is quite desirable for everyday use.
326+
327+
So, it's really that the extra cost provides no realizable benefits, more than the absolute cost.
328+
```
329+
330+
### Are certain gates more commonly used in CPU design?
331+
```{toggle}
332+
See the exercise from the last class, but yes!
333+
```
334+
335+
### How like literally how is even remotely possible to assemble modern day cpus and the size and scale they are
336+
```{toggle}
337+
Computers got smaller by better physics that allows for smaller implementations of the gates. This is a good topic for a deeper exploration.
338+
```

0 commit comments

Comments
 (0)