Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    John D. Cook

    johndcook.com · Personal blog · on HN since 2009

    John D. Cook, a consultant in applied math and statistics, writes short posts on numerical computing, probability, and programming.

    Visit blogRSSHN submissions
    MathProgrammingData & Visualization
    What HN says

    Commenters cite his Kalman filter note as helping them understand it, and credit his Gorilla Banana post. His posts draw math discussion.

    Stats for nerds
    648HN people shared it
    1.5Klinked in comments
    26Kstory points
    Dec 2025last shared
    2016people per year2025

    Top posts on HN

    1. 1
      Organizing complexity is the most important skill in software development
      5 people · 1K points · first shared 2015 · 276 comments on HN
    2. 2
      Why programmers are not paid in proportion to their productivity
      8 people · 818 points · first shared 2009 · 306 comments on HN
    3. 3
      Software reuse is more like an organ transplant than snapping Lego blocks (2011)
      2 people · 669 points · first shared 2015 · 228 comments on HN
    4. 4
      987654321 / 123456789
      3 people · 640 points · first shared 2025 · 107 comments on HN
    5. 5
      Estimating the chances of something that hasn’t happened yet
      6 people · 584 points · first shared 2010 · 150 comments on HN
    6. 6
      Doing a database join with CSV files
      1 person · 357 points · first shared 2019 · 111 comments on HN
    7. 7
      Four Hours of Concentration
      5 people · 337 points · first shared 2013 · 86 comments on HN
    8. 8
      Queueing theory: The science of waiting in line
      1 person · 299 points · first shared 2019 · 134 comments on HN
    9. 9
      Don’t invert that matrix (2010)
      13 people · 295 points · first shared 2010 · 42 comments on HN
    10. 10
      Pretending OOP Never Happened
      1 person · 290 points · first shared 2020 · 339 comments on HN

    What HN people wrote when they linked it

    • thaumasiotesJun 2021

      You want to consider, based on a distribution of potential fly populations, what the odds are that sampling two of them will fail to capture two specific ones. For example, you can state with certainty that the population is above 3.

      Closely related (though not quite the identical problem): https://www.johndcook.com/blog/2010/03/30/statistical-rule-of-three/

      Applying that directly, we would estimate that the odds of a fly in your house being marked are less than 150%, which tells us that you should be taking larger samples.

      (With only two marked flies, this estimate will always be less informative than the fact that you sampled n flies -- it will tell you that the population is probably greater than 2/3 of n, while the sampling procedure tells you that the population is necessarily at least n+2. But as you mark more flies, the estimate will be more informative.)

    • mrkeenFeb 2020

      What software are you using that once or twice a year doesn't count as "rarely"?

      My Viaplay app stops streaming and tells me I'm not connected to the internet several times a day (when I'm obviously still connected to the internet.)

      Several times a week my phone's Netflix state doesn't match my TV's state, so I'm either not presented with the controls or when I press them they do nothing.

      Cosmic bit-flips are rare enough to be newsworthy.
      https://www.johndcook.com/blog/2019/05/20/cosmic-rays-flipping-bits/

      If the faults were with the hardware, I'd expect the errors to be spread around the software that I use. But Firefox and Gmail always work for me (even if the JavaScript I'm served makes the machine unresponsive), whereas Netflix, Viaplay and HBO constantly misbehave.

    • rotiferMar 2022

      To the section "Popular Math Books" I would add almost anything by Julian Havil. John D. Cook referred to him as a writer of "serious recreational mathematics" [1]. I would probably put his "Nonplussed!" and "Impossible?" books in the "Level: Easy" group, with the others at least in "Level: Medium". "Gamma" is one of my favorite serious recreational math books.

      If you like getting into the nitty-gritty of problem solving then check out the books of Paul Nahin. They vary between "Level: Medium" and "Level: Difficult", with many of them reveling in the solution of equations, and integrals in particular. Although he recognizes the need for proofs, he makes a point of avoiding them in his books.

      [1] https://www.johndcook.com/blog/2019/09/29/a-sort-of-mathematical-quine/

    • pashAug 2025

      For some definition of “sufficiently introductory”, I’d recommend starting with the first chapter of John Nolan’s book Stable Distributions [0] (20 pages), which presents the class of distributions to which sums of iid random variables converge and builds up to a version of the generalized CLT.

      Note that this generalization of the classical CLT relaxes the requirement of finite mean and variance but still requires that the summed random variables are iid. There are further generalizations to sums of dependent random variables. John D. Cook has a good blog post that gives a quick overview of these generalizations [1].

      0. https://edspace.american.edu/jpnolan/wp-content/uploads/sites/1720/2020/09/Chap1.pdf [PDF]

      1. https://www.johndcook.com/blog/central_limit_theorems/

    • _nalplySep 2021

      I found about posits.

      https://www.johndcook.com/blog/2018/04/11/anatomy-of-a-posit-number/

      Perhaps CFP8 are parameterized 8-bit posits where the parameter is the value es. The larger es is, the greater the dynamic range is at the expense of precision. Two examples:

      posit<8, 0> (es = 0) has as largest positive number 64 and the smallest positive number 1/64.

      posit<8, 1> (es = 1) has as largest positive number 4012 and the smallest positive number 1/4012.

      The formula for the largest positive number for 8-bit posits is:

      2 ^ 2 ^ es ^ 6.

      posits don't have NaNs and only one infinity (±∞), so they can use more of the 8 bit values for numbers than floating point numbers.

      I wonder: is CFP8 = posit<8, es>?

    • latexrMay 2023

      > Also disappointing that they didn't follow up the incorrect responses with corrections. Like if you told gpt that "sorry, your answer is wrong because the stock market is closed on saturday", it would come up wiht a new answer that takes that into account.

      If you have to keep correcting the tool yourself, you won’t arrive at the truth but at the limits of your own knowledge. You’ll have no basis to know which answer is the one you can finally trust.

      That mode of operation reminds me of the Gell-Mann amnesia effect.

      https://www.johndcook.com/blog/2021/01/18/gell-mann-amnesia/

    Related

    Gödel's Lost Letterrjlipton.wordpress.com185 people

    Mihai Pătraşcu 1982–2012

    Gödel's Lost Letter
    Personal · last shared 2021
    Brian Hayesbit-player.org94 people

    Prime After Prime

    Brian Hayes
    Personal · last shared 2025
    Computational Complexityblog.computationalcomplexity.org98 people

    When did computer science theory get so hard?

    Computational Complexity
    Personal · last shared 2026
    Extreme Learningextremelearning.com.au35 people

    The Unreasonable Effectiveness of Quasirandom Sequences

    Extreme Learning
    Personal · last shared 2026
    Norm Matloffmatloff.wordpress.com19 people

    Neural Networks Are Essentially Polynomial Regression (2018)

    Norm Matloff
    Personal · last shared 2022
    Keith Schwarzkeithschwarz.com50 people

    Darts, Dice, and Coins: A beautiful article on a beautiful algorithm

    Keith Schwarz
    Personal · last shared 2026
    Jeremy Kunjeremykun.com194 people

    A Programmer's Introduction to Mathematics

    Jeremy Kun
    Personal · last shared 2026
    MathWorks Blogsblogs.mathworks.com52 people

    Artificial Neural Networks for Beginners

    MathWorks Blogs
    Company · last shared 2026