Daily tweets about computer science and related stuff @JohnDCook.

Joined November 2010
662 Photos and videos
RSA munitions T-shirt johndcook.com/blog/2026/06/1…
1
6
26
3,498
Does DNA have the equivalent of IF-statements, WHILE loops, or function calls? biology.stackexchange.com/qu…

2
3
34
4,687
Every cellular automaton is a local automaton. -- Curtis Hedlund Lyndon theorem
2
26
3,560
'Security is both a feeling and a reality. And they’re not the same.' -- Bruce Schneier
4
25
4,107
The linear algebra of bit twiddling johndcook.com/blog/2026/05/1…
4
39
3,206
Solving a chess puzzle with Claude and Prolog johndcook.com/blog/2026/06/1…
1
8
34
3,071
'Beware of bugs in the above code; I have only proved it correct, not tried it.' -- Donald Knuth
6
22
179
31,543
'Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function.' -- John Carmack
9
66
4,524
A graph is k-connected if it remains connected when any k-1 vertices are removed.
1
3
22
3,094
'The psychological profiling [of a programmer] is mostly the ability to shift levels of abstraction, from low level to high level. To see something in the small and to see something in the large.' -- Donald Knuth
1
14
57
5,719
The halting problem: You cannot write a program that can tell whether an arbitrary program will complete or run forever.
10
14
67
11,735
'Methods and object can no longer be separated.' -- Werner Heisenberg
2
32
4,136
“Cryptography is a mixture of mathematics and muddle, and without the muddle the mathematics can be used against you.” — Ian Cassels
7
38
3,331
'Writing code is often a constant struggle against distraction.' -- Joy of Clojure
1
4
35
3,490