一本被盛赞的计算机科学入门书籍,在不同的地方看到推荐,大概有3次以上,根据介绍,推测和 Crash Course 的 CS 课程差不多有趣。

事实证明,这是一本非常有哲学意味,十分有美感的书籍,需要精读,不只针对计算机,对人生也有很大的启发……

本书为1/16的开本,字数:44.2万。

推荐序很不错,但译者序的表达有点小差啊,让我有点担心这部译著的质量了。决定直接看英文了,通过彩云小译简单翻译一下,再进行阅读。

阅读英文需要注意以下几点

  1. 找到句子的主干,即谓语动词
  2. 名词词组:

    1. a big apple
    2. something blue
    3. apple tree
    4. 非谓语动词在名词后修饰:something to eat/the man standing by the window
  3. 时间:过去的过去、过去、过去的将来;现在;将来;
  4. 状态:一般;正在进行时;完成时;

Preface to the Paperback Edition

  • 这本书是讲述计算机如何工作的,但很不同的是讲解的人很牛比!
  • I also hope that you might recognize the computer to be one of the crowning achievements of twentieth century technology and appreeciate it as a beautiful thing in itself without metaphors and similes getting in the way.

    • 译者翻译:计算机是二十世纪技术领域的登峰造极之作,它是一种值得欣赏、具有“美”学文化底蕴的人类伟大成果,这种美不需要明喻与暗喻的额外修饰。
    • 其实作者本意在于:通过认识计算机本身,我们就可认识它有多美,而无需通过比喻和类比,比如作者前面的例子,为了简单理解存储器和内存,人们作了个比喻,把存储器比喻成文件柜,内存比喻为桌面,这确实方便理解,但作者并不满足于这种解释。
  • 译者翻译:我希望这本书能够成为大家理解这些问题的助手,这种理解我希望不是抽象层面上的,而是具有一定深度的,这种深度甚至不逊于“电气工程师”和“程序员”的理解。

    • 这句话的翻译腔太浓了,甚至到了影响正常中文使用者理解的程度。
  • The further back in time you go, the simpler the technologies become.

    • 译者翻译:学习技术发展史的重要意义在于 追溯的历史越久远,技术的脉络就越清晰。
    • ”技术的脉络“,这个词纯粹是翻译者的脑补,作者的意思是越向前追溯,技术就越简单。要说成“技术的脉络”也未尝不可,但有点过度解读的意思。

Chapter 1. Best Friends

  • the code you invented VS Morse code
  • You could say Endlish vocabulary is a type of code
  • Just as Morse code provides a good introduction to the nature of codes, the telegraph provides a good introduction to the hardware of the computer.

Chapter 2. Codes and Combinations

  • Morse code is said to be a binary(literally meaning two by two)code because the components of the code consist of only two things--a dot and a dash.

Chapter 3. Braille and Binary Codes

  • Dissect Braille code and see how it works.
  • We just want some insight into the nature of codes.
  • shift codes
  • escape codes

Chapter 4. Anatomy of a Flashlight

  • all matter——the stuff that we can see and feel(usually)——is made up of extremely small things called atoms.
  • Every atom is composed of three types of particles: neutrons, protons, and eletrons.
  • 物质是由什么组成的?-无名小站
  • 物质是一个科学上没有明确定义的词,一般是指静止质量不为零的东西。
  • 原子的英文名(Atom)是从希腊语ἄτομος(atomos,“不可切分的”)转化而来。

    • 所有可以用肉眼看到的物体都是由原子组成,而原子是由互相作用的次原子粒子所组成,其中包括由质子和中子组成的原子核,以及许多电子组成的电子云。
  • 世界是由什么构成的?-妈咪说

    • 原子:电子 + 原子核(中子 + 质子)
    • 原子核只占原子中一点点点点的小地方
    • 质量、电荷、寿命
    • 只要到这一层就足够啦!
  • 这一章讲了电子、电流(A)、电阻(欧姆)、电压(V)、功率(P)

Chapter 5. Seeing Around Corners

  • You're twelve years old, your second-best friend lives in the house next door to yours.
  • 地球为什么可以被当做导线,用来构建回路?

Chapter 6. Telegraphs and Relays

  • In the early 1800s, you could communicate instantly and you could communicate over long distances, but you couldn't do both at the same time.
  • The electromagnet is the foundation of the telegraph. Turning the switch on and off at one end causes the electromagnet to do something at the other end.
  • The historic day was May 24, 1844.(the first telegraph used the Morse)

    • the practical lightbulb wouldn't be invented until 1879.
  • the relay is a switch, but a switch that's turned on and off not by human hands but by a current.

Chapter 7. Our Ten Digits

  • Numbers are certainly the most abstract codes we deal with on a regular basis.
  • Much of this chapter and the next will be devoted to persuading ourselves that this many(3) apples can also be indicated by writing 11.
  • Roman numerals and Indo-Arbic
  • 0, The lowly zero is without a doubt one of the most important inventions in the history of numbers and mathematics.

    • It supports positional notation because it allows differentiation of 25 from 205 and 250.
    • The zero also eases many mathematial operations that are awkward in nonpositiona systems, particularly multiplication and division.
  • Each position corresponds to a power of ten.

    • we don't need a special symbol for ten because we set the 1 in a different position and we use the 0 as a placeholder.

Chapter 8. Alternatives to Ten

  • When you're working with number systems other than decimal, you can avoid some confusion if you pronounce a number like 10 as one zero.

    • Similarly, 13 is pronounced one three and 20 is pronounced two zero.
    • To really avoid confusion, we can say two zero base eight or two zero octal.
  • Anytime we have a binary number composed of a 1 followed by all zeros, that number is a power of two.

    • The power is the same as the number of zeros in the binary number.
  • bit: binary digit

    • Around 1948, Tukey decided to coin a new shorter word to replace the unwield five syllables of binary digit.
    • He considered bigit and binit but settled instead on the short, simple, elegant, and perfectly lovely word bit.

Chapter 9. Bit by Bit By bit

  • The thing about the bit is that it conveys very little information.

    • A bit of information is the tiniest amount of information possible. Anythin less than a bit is no information at all.
  • If you can't express something in words, pictures, or sounds, you're not going to be able to encode the information in bits.
  • As we shall see later in this book, bits can represent words, pictures, sounds, music, and movies as well as product codes, film speeds, movie ratings, an invasion of the British army, and the intentions of one's beloved.

    • but most fundamentally, bits are numbers.
    • All that needs to be done when bits represent other information is to count the number of possibilities.
    • This determines the number of bits that are needed so that each possibility can be assigned a number.

Chapter 10. Logic and Switches

  • The + symbol in Boolean algebra means a union of two classes.
  • The x symbol in Boolean algebra means an intersection of two classes.
  • To avoid confusion between conventional algebra and Boolean algebra, sometimes the symbols U and ∩ are used for union and intersection instead of + and x.

    • But part of Boole's liberating influence on mathematics was to make the use of familiar operators more abstract, so I've decided to stick with his decision not to intorduce new symbol into his algebra.
    • class and set
    • we can use the symbol and or instead of x +, the not means 1-.
  • This simple circuit to be wired in series is actually performing an AND operation in Boolean algebra.
  • The circuit to be connected in parallel is performing an OR operation.

Chapter 11. Gates(Not Bill)

  • Logic gates perform simple tasks in logic by blocking or letting through the flow of electrical current.
  • Although this circuit contains nothing that wasn't inented in the nineteenth century, nobody in that century ever realized that Boolean expressions could be directly realized in electrical circuits.

    • This equivalence wasn't discovered until the 1930s, most notably by Claude Elwood Shanno(born 1916), whose famous 1938 M.I.T.master's thesis was entitled "A Symbolic Analysis of Relay and Switching Cricuits."
    • Ten years later, Shannon's article "The Mathematical Theory of Communication" was the first publication that used the word bit to mean binary digit.
  • control panel
  • The swithches are an input device in computer terminology.
  • Input is information that controls how a circuit behaves.
  • Relays have an advantage over switches in that relays can be switched on and off by other relays rather than by fingers.
  • Connecting relays is the key to build logic gates.
  • AND Gate: To avoid excessive drawing, electrical engineers have a special symbol for an AND gate. That symbol looks like this: Input - - ——output
  • OR Gate: It's somewhat similar to the symbol for the AND gate except that the input side is rounded, much like the O in OR.
  • Inverter: A single relay wired in this way is called an inverter, because it inverts 0 to 1 and vice versa.

    • Notice the little circle mean that the signals are inverted at that point.
  • Buffer: The output of the buffer is the same as the input.
  • If you look at the two inputs to each AND gate to see where they're coming from and try to ignore where they're also going, you'll see that the circuit works.
  • There are two relays in every AND gate and OR gate, and one relay for each inverter.
  • NOR Gate: This behavior is precisely the opposite of what happens with the OR gate. It's called NOT OR, more concisely, NOR.
  • NOT AND Gate: NAND
  • So now we have four logic gates and the inverter. Completing this array of tools is just a regular old relay.
  • De Morgan's Laws: <Formal Logic>.1847

Chapter 12. A Binary Adding Machine

  • If we can build something that adds, we're well on our way to building something that uses addition to also subtract, multiply, divide, calculate mortgage payments, guide rockets to Mars, play chess, and foul up our phone bills.
  • There's no way that anyone could make sense of 144 relays wired together in strange ways.
  • XOR Gate: 1+1 = 0 这个可以用来表示加法进位后的情况
  • Half Adder(半加器):它将两个二进制数相加,得出一个加法位和一个进位位
  • Full Adder(全加器):两个二进制数相加,还有加上前一列的一个进位数字即3个数字相加
  • Ripple carry: 这一章可以进行更深一层的原理巩固和动手制作

Chapter 13. But What About Subtraction?

如果觉得我的文章对你有用,请随意赞赏