Computer Science

13K 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 Edilen251.3K Takipçiler
Computer Science
Computer Science@CompSciFact·
'Any sufficiently advanced technology is indistinguishable from a rigged demo.' -- Andy Finkel
English
2
6
16
2.2K
Computer Science retweetledi
Dwarkesh Patel
Dwarkesh Patel@dwarkesh_sp·
"Computer science basically got started in the 1930s when Turing and Church just laid down what the theory of everything was. They just said, here's how computation works. And then we've spent 90 years since then just exploring consequences of that and gradually building up more and more interesting ideas."
Dwarkesh Patel@dwarkesh_sp

.@michael_nielsen made an incredibly interesting argument about why the tech tree is actually way larger than we realize, and how our descendants will get to explore very little of it.

English
10
51
409
73.5K
Computer Science retweetledi
Rhys
Rhys@RhysSullivan·
my system handles an edge case i didn't account for
Rhys tweet media
English
28
176
5.7K
163.7K
Computer Science
Computer Science@CompSciFact·
'Projects promoting programming in 'natural language' are intrinsically doomed to fail.' -- Edsger Dijkstra
English
9
22
182
11.2K
Computer Science retweetledi
WalterBright
WalterBright@WalterBright·
Floating Point NaN in #dlang NaNs are a very underappreciated feature of IEEE-754 floating point. In the D programming language, floats get default initialized to NaN, not to 0.0. double y = 0.0; // initialized to 0.0 double x; // initialized to NaN The discussion routinely comes up as "why not default initialize to 0.0?" The reason is a routine mistake in programming is forgetting to initialize a variable. With a floating point 0.0, one may never realize that the floating point calculation results are wrong. But with NaN, the result of a floating point computation will be NaN, which is unlikely to go unnoticed. I don't know of any other programming language with this safety feature. Also, the D `char` type is initialized to 0xFF, not 0, because Unicode says that 0xFF is an invalid character.
English
8
15
98
11.8K
Computer Science
Computer Science@CompSciFact·
'If it's your decision, it's design; if not, it's a requirement.' -- Alistair Cockburn
English
1
5
41
3.7K
Computer Science
Computer Science@CompSciFact·
'Inside every large program is a small program trying to get out.' -- Tony Hoare
English
0
11
62
3.9K