|
| 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 | + |
| 61 | + |
| 62 | +### Computers as Machines |
| 63 | + |
| 64 | +Computers as machines started later. We started with mechanical, analog and then moved to electronic and then digital. |
| 65 | + |
| 66 | +### How much do we talk about computers? |
| 67 | + |
| 68 | +[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) |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +## Mechanical Calculators |
| 74 | + how do we actually like physically make it be machine |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + 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 |
| 79 | + |
| 80 | + |
| 81 | +  |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + 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 |
| 86 | + |
| 87 | + |
| 88 | +**Why did he make this?** |
| 89 | + |
| 90 | +He was 18 and his father was a tax commissioner in France and he wanted to like reduce his father's workload |
| 91 | + |
| 92 | + 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 |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | +  |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | +```{note} |
| 101 | +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 |
| 102 | +``` |
| 103 | + |
| 104 | + |
| 105 | +## How did this change over time? |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +calculators that are still analog so they're still working with mechanical systems using Waze electricity becomes easier |
| 110 | + |
| 111 | +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 |
| 112 | + |
| 113 | +between Springs and dampers, the mechanical things are used to build these mechanical calculators and the electrical components so resistors transistors. |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | +[timeline of computing](https://www.computerhistory.org/timeline/computers/) |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | +### Model K Adder (1937) |
| 122 | + |
| 123 | +- George Stibitz took some pieces at home from work at Bell Laboratory and got it working on his kitchen table. |
| 124 | +- it can do four bit addition |
| 125 | +- uses a telephone relay switch or an electromechanical switch so they're using like a |
| 126 | + |
| 127 | +```{note} |
| 128 | +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. |
| 129 | +``` |
| 130 | + |
| 131 | +precursor to the complex number calculator |
| 132 | + he demonstrated how this works in combination with Telegraph |
| 133 | +for the first remote access |
| 134 | + |
| 135 | +- complex number calulator was at Bell Labs in New York City at the time in 1940 |
| 136 | +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 |
| 137 | + |
| 138 | +### Intel 4004 (1971) |
| 139 | + |
| 140 | +- First commercially produced microprocessor |
| 141 | +- 2,250 transistors |
| 142 | +- Could perform up to 90,000 operations per second in four bit chunks |
| 143 | +- 740 kHz clock speed |
| 144 | + |
| 145 | + |
| 146 | +### So how do these thigns actually work |
| 147 | + |
| 148 | +- [We can build an adder mechanically with marbles and wood](https://www.youtube.com/watch?v=GcDshWmhF4A) |
| 149 | + |
| 150 | +As electricity became more available, they realized that in terms of mathematical operations, electrical components resemble springs and switches |
| 151 | + |
| 152 | +- first vaccuum tubes: or diodes |
| 153 | +- 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. |
| 154 | +- diodes only are easy for `&` and `|` gates, |
| 155 | +- transistors can operate as a switch or amplifier and can also be used to build logic gates |
| 156 | +- they're faster, smaller, and better at more types of gates than diodes |
| 157 | + |
| 158 | +## Early Computers |
| 159 | + |
| 160 | + |
| 161 | +During this time small, lots of small computers were made, but each was made completely by its creators, there was no standards, per say. |
| 162 | + |
| 163 | +These computers were also stored program computers. Meaning their operation at a program level was fixed by the circuitry. |
| 164 | + |
| 165 | +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 |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | +## von Neumann Architecture |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | +what else do we need besides ALU for to have like a whole computer |
| 181 | + |
| 182 | +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 |
| 183 | + |
| 184 | + |
| 185 | +In 1945 we get a draft of a general template. This is basically what we use today. |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | +## Storage |
| 191 | + |
| 192 | + |
| 193 | +- there are some thigns we have not yet seen in detail in that diagram |
| 194 | +- Ram Is Random Access we can access it whenever we want we can read and write to |
| 195 | +- ROM: is read only memory; the instructions are Permanently |
| 196 | + |
| 197 | + |
| 198 | +In the stored program computers, the programs were in ROM. |
| 199 | + |
| 200 | +The very earliest computers could not store any values without power. |
| 201 | + |
| 202 | + |
| 203 | +- Register: data currently processing |
| 204 | +- Memory: will be required for processing |
| 205 | +- Disk: long term storage |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | +## Questions After Class |
| 210 | + |
| 211 | +```{note} |
| 212 | +these are last semesters. i'm behind on the new ones |
| 213 | +``` |
| 214 | + |
| 215 | +### What are the PC, MAR, MDR, etc. and what do they do |
| 216 | + |
| 217 | +They are various registers that each have a specific role. Learning all of these these in more detail is a good Explore badge or a single one is in more practice. |
| 218 | + |
| 219 | +### how does a motherboard work with all of these |
| 220 | + |
| 221 | +A motherboard contains all most of those components. This is also a good Deeper explroation. |
| 222 | + |
| 223 | + |
| 224 | +### When defining a computer, is it best to define the most current model of a computer? Or how everything functions bare bones? |
| 225 | + |
| 226 | +What definition dependsd on the context. If you are talking to a child who is trying to learn basic typing they need to know different things than a teenager trying to choose what type of comptuer to bring to college, which is different than the model you need to keep in mind when you're working in a high level language, which is different than what you need when you are writing drivers. |
| 227 | + |
| 228 | + |
| 229 | +### How do Quantum computer logic gates differ from what we use now exactly |
| 230 | + |
| 231 | +Quantum computers operate on a fundamentally different object, instead of bits they have [qubits](https://quantum-computing.ibm.com/composer/docs/iqx/guide/the-qubit). There represent, essetially some uncertainty, or randomness in the behavior, so then there are different operations needed. |
| 232 | + |
| 233 | +URI has a [MS in Quantum Computing in the Physics Dept](https://web.uri.edu/physics/quantum/) |
| 234 | + |
| 235 | + |
0 commit comments