Computer Science

13.1K posts

Computer Science banner
Computer Science

Computer Science

@CompSciFact

Daily tweets about computer science and related stuff @JohnDCook.

Katılım Kasım 2010
17 Takip Edilen251K Takipçiler
Computer Science
Computer Science@CompSciFact·
'One of my most productive days was throwing away 1000 lines of code.' -- Ken Thompson
English
2
7
46
4.3K
Computer Science
Computer Science@CompSciFact·
The Fast Fourier Transform takes O(n log n) operations to transform a vector of length n.
English
0
4
39
5.4K
Computer Science
Computer Science@CompSciFact·
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
English
2
13
84
5.7K
Computer Science
Computer Science@CompSciFact·
“One of the main causes of the fall of the Roman Empire was that-lacking zero-they had no way to indicate successful termination of their C programs.” — Robert Firth
English
2
14
97
7.8K
Computer Science
Computer Science@CompSciFact·
'Premature abstraction is as bad as premature optimization.' -- Luciano Ramalho
English
5
16
103
6.7K
Computer Science
Computer Science@CompSciFact·
The Church numeral for a non-negative integer n is λxy. x^n y
English
0
0
13
4K
Computer Science retweetledi
Philosophy Of Physics
Philosophy Of Physics@PhilosophyOfPhy·
Deleting a file looks weightless. No smoke. No sound. No visible wound in the universe. But physics says something stranger: when information is truly erased, the world must pay a small thermodynamic price. This is Landauer’s principle. In 1961, Rolf Landauer, working at IBM, asked a question that sounded almost too philosophical for engineering: What is the physical cost of computation? The answer was not hidden in the screen. It was hidden in the word erase. A bit can be 0 or 1. If you reset it to 0, regardless of whether it began as 0 or 1, you have destroyed information about its past state. Two possible histories have been compressed into one final result. That is not just a logical operation. It is a physical act. Landauer’s insight was that logical irreversibility becomes physical irreversibility. If a computation throws away information, the missing distinction does not simply vanish into nothing. The entropy has to go somewhere. Usually, it goes into the environment as heat. The famous bound is: E ≥ kBT ln 2 Here, kB is Boltzmann’s constant, T is temperature, and ln 2 appears because one bit has two possible states. At room temperature, this energy is incredibly tiny, around 3 × 10⁻²¹ joules per erased bit. Your laptop wastes vastly more energy than this for practical reasons: resistance, imperfect circuits, speed, error control, architecture. But the principle is not about today’s inefficient machines. It is about the basement floor of physics. Landauer’s principle tells us that information is not an abstract ghost. A bit must live somewhere: in a voltage, a magnetic domain, a trapped particle, a quantum state, ink on paper, or neurons in a brain. To change information, you must change a physical system. To erase information, you must erase a physical distinction. This also helped clarify Maxwell’s demon, the imaginary creature that seemed able to beat the second law of thermodynamics by sorting fast and slow molecules. The demon’s trick depends on information. It measures molecules, remembers results, and uses that knowledge to extract work. But to keep operating, the demon must reset its memory. That erasure has a cost. The demon does not defeat thermodynamics. It becomes part of thermodynamics. This is why Landauer’s principle is so beautiful. It does not make physics more mystical. It makes information less mystical. The lesson is not that thoughts create reality or that the universe is magically made of data. The lesson is more disciplined: Knowledge needs a body. Memory needs a medium. Forgetting leaves a trace. In ordinary life, deleting something feels like making it disappear. In physics, disappearance is never so innocent. Even a lost bit has to go somewhere.
Philosophy Of Physics tweet media
English
25
104
480
32.4K
Computer Science
Computer Science@CompSciFact·
“Having functional programming as an ideal doesn’t imply that programs should never have side-effects. It just means that they should have no more than necessary.” — @paulg, On Lisp
English
0
3
29
3.4K
Computer Science
Computer Science@CompSciFact·
'One person's data is another person's program.' -- Guy L. Steele, Jr.
English
0
5
35
3.9K