
Daily tweets about computer science and related stuff @JohnDCook.
Joined November 2010
- Tweets13.4K
- Following17
- Followers25K
- Likes270
“After 20 years I finally learned what ‘double buffering’ is”
jeremykun.com/shortform/2026…
Counterintuitive results in operations research or.stackexchange.com/questio…
Computer Science retweeted
If the Generalized Riemann Hypothesis (the stronger version of the Riemann Hypothesis) is proven, these become proven facts:
Algorithms that no longer need randomness
- Primality testing: Miller's fast test becomes proven correct with no randomness
- Square roots mod a prime: becomes solvable fast and with no coin flips (today that's an open problem)
- Cube roots and other roots mod a prime: same.
- Factoring polynomials over finite fields: almost fast (quasi-polynomial) with no randomness, instead of needing randomness
- Building finite fields: you can construct any finite field directly, with no random search
- Factoring vs. φ(n): factoring a number becomes provably as easy as computing φ(n), even without randomness
- Primes with a given remainder: a prime with any allowed remainder mod q exists that's at most about q², so searching for one is fast
Complexity theory
- Polynomial equations: "does this system of equations have a solution?" drops from PSPACE to a much lower class (AM)
- Algebraic P vs NP: Valiant's algebraic version of P vs NP gets tied to the normal P vs NP over the complex numbers
- Turing machines: a known 744-state Turing machine is proven to run forever
Number theory software
- Math libraries: PARI/GP and Magma results computed "assuming GRH" become fully proven
- Class groups: algorithms that compute these number-field structures get guaranteed running times
- Elliptic curve generation: the algorithms used to create curves for crypto get guaranteed running times
Cryptography (no new attacks, only proofs)
- Elliptic curves: proven that if discrete log is hard on one curve, it's hard on almost all similar curves
- Lattice crypto: known quantum attacks on some lattice schemes become proven to work
- Isogeny crypto: known quantum attacks on some isogeny schemes get proven speeds
- Code-based crypto: schemes like BIKE get the guarantee that the special primes they need exist
Prime gaps
- Next prime: there's always one within about √p·log p of p, so "find the next prime" has a guaranteed worst case
What it does NOT do
- It doesn't solve P vs NP
- It doesn't make factoring easy, so RSA and elliptic-curve crypto stay safe
- It doesn't make anything faster in practice, because randomized versions already work today
- Ramanujan graphs, expanders and AG codes are unaffected: they use a finite-field version of RH that was proven decades ago
A faster way to four-color a graph
arxiv.org/abs/2603.24880
'There may, indeed, be other applications of the system [i.e. lambda calculus] than its use as a logic.' -- Alonzo Church, 1932
No Silver Bullet: Essence and Accident in Software Engineering worrydream.com/refs/Brooks-N… [pdf]
Why is division so much more complex than other arithmetic operations? scicomp.stackexchange.com/qu…
Until recently there was more interest in formally verifying software than formally verifying math. Now the tables have turned. Why is that?
AI has made it easier to formally verify math, but hasn't it done the same for software?
Why does quicksort work so well in practice? cs.stackexchange.com/questio…
Shannon's theorem on channel capacity johndcook.com/blog/2024/10/1…
The term 'trie' came from 'retrieval.' Was intended to be pronounced like 'tree' but now is pronounced like 'try.'
'About 1,000 instructions is a reasonable upper limit for the complexity of problems now envisioned.' -- John von Neumann, 1946
New post: Taxis and Hash Functions
johndcook.com/blog/2026/11/1…
🤖 Made with AI
Secure hashing algorithms that have been broken are only broken with respect to collision attacks.
It's still infeasible to infer the original input, or any input, to a hash like MD5 from the output.
(Unless the input coes from a small enough set to attack by brute force.)
Computer Science retweeted
We can all relax now that the PHP security holes, the certificate authority spewing bad certificates, the Microsoft mail outage, and the FAA network failure have been fixed.
Now we won’t have any more problems and things will go back to normal.
Preprocessing text to make it more compressible using the Burrows-Wheeler transform johndcook.com/blog/2024/10/1…


