diff options
author | Adam T. Carpenter <atc@53hor.net> | 2023-05-02 21:19:06 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2023-05-02 21:19:06 -0400 |
commit | 4df22583f7ce3cf74c2e1bcfa357eb081e8fa4ce (patch) | |
tree | 59566108d4ab0a1837622f4d10c865755ff5bee3 | |
parent | 8954368b22404f877a07e9a7ac0fedcc76ba188c (diff) | |
download | cps-rust-4df22583f7ce3cf74c2e1bcfa357eb081e8fa4ce.tar.xz cps-rust-4df22583f7ce3cf74c2e1bcfa357eb081e8fa4ce.zip |
feat: more chapter 01 slides
-rwxr-xr-x | 01/readme.md | 64 | ||||
-rw-r--r-- | readme.md | 11 |
2 files changed, 70 insertions, 5 deletions
diff --git a/01/readme.md b/01/readme.md index becb6d9..b1bcf48 100755 --- a/01/readme.md +++ b/01/readme.md @@ -141,7 +141,27 @@ are some things that every computer needs in order to do its job. --- -# Mechanical and electronic computers +# The modern computer + +Many components drive the function of a typical home computer. + +``` +~~~graph-easy --as boxart +[Processor] -> [Memory] +[Memory] -> [Disk] +[Memory] -> [Input] +[Memory] -> [Output] +[Memory] -> [Network] +~~~ +``` + +Inputs can be mouse and keyboard, or touch interfaces. Outputs may be a video +monitor or a printer. The network itself is a glorified input/output device, +allowing for communication between and among groups of computers. + +--- + +# The origin of the modern computer _Computer_ used to be a job description for human beings! @@ -169,6 +189,10 @@ circuits that represent logic. ~~~ ``` +--- + +# Example: a three-pole light switch + ``` ~~~graph-easy --as boxart [hall switch] - on -> [*ceiling lamp*] { border: bold; } @@ -182,12 +206,42 @@ later. --- -# Replace AC power with truth +# Example: a three-pole light switch + +## Replace AC power with truth + +Off: false, 0, "no" + +On: true, 1, "yes" + +These are the building blocks of every digital computer in the world today. + +--- + +# Representing data -Off: false, 0 +> Bits and bytes of information, turning darkness to light. -On: true, 1 +(_Bits and Bytes_, 1983) -Both switches off: light off, false, 0 +So how do we use billions of tiny transistors, on-off switches, or 0s and 1s +into English essays, photographs, or 3D animated feature films? --- + +# Representing data + +Probably before grade school, you learned to count from 1 to 10 on your fingers. +Just like you, the _decimal_ number system gets its name from the ten digits it +has to work with. + +In mathematics, we typically count from 0 to 9 and then increment the next digit +up and start counting over again at 10. + +The _decimal_ system is also called _base 10_ for this reason. + +> 735 = 7 _hundreds_ + 3 _tens_ + 5 _ones_ + +--- + +# Binary data @@ -0,0 +1,11 @@ +# Computational Problem Solving with Rust + +## Slides + +All of my slides are available as READMEs under numbered directories (chapters). +There are CLI prerequisites for running the embedded commands: + +``` +p5-Graph-Easy +fsays +``` |