
Daily tweets about computer science and related stuff @JohnDCook.
Joined November 2010
- Tweets13.4K
- Following17
- Followers25K
- Likes270
Numerical computing tip: If something goes wrong in theory *at* 0, expect difficulty in practice *near* 0.
4
1,291
Computer Science retweeted
If you remove different representations, you find out that many algorithms are either the same, or almost the same.
Shortest path is semiring based computation.
More here: sciencedirect.com/science/ar…
I realized this when I was writing my book on OR algorighms. There are hundreds of algos I went through. Sometimes, you could find 40-50 algorithms, that are different only in one parameter, or one function in the function composition.
---
I am 100% sure, there are abstract algorithms in space search + reduction, that could simplify what already exist and provide dozens of real world useful algos for thousands of various usecases.
Computer Science retweeted
🤖 Made with AI
Turns out we could have just written 6 million lines of Lean to verify Signal instead of messing with these papers and symbolic models this whole time deepmind.google/blog/introdu…
The early development of programming languages. Knuth and Pardo, 1976 bitsavers.org/pdf/stanford/c… [pdf]
The quality of an RNG depends on what you want to use it for johndcook.com/blog/2022/06/2…
Parsing expressions by recursive descent engr.mun.ca/~theo/Misc/exp_p…
'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
Conceptually you define sinh in terms of exp, but numerically it's better to compute exp in terms of sinh. johndcook.com/blog/2020/08/0…
The Euclidean algorithm is not optimal among uniform processes
github.com/jasondavies/eucli…
How much can Boolean expressions be simplified? johndcook.com/blog/2020/11/1…
“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
How a programmer might reinvent the projective plane
johndcook.com/blog/2026/11/0…




