Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
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
    Cover of The Art of Computer Programming, Volume 2

    The Art of Computer Programming, Volume 2

    Donald Knuth

    ProgrammingComputer Science
    Open Library
    Stats for nerds
    1recommend
    5mentions
    4people
    2019–2026years
    20% recommend80% neutral

    Mentions per year

    20192020202120222023202420252026

    What Hacker News says

    1. drallisonSep 2022
      I second this choice. Be sure to get the second edition and to read the various fascicles for Knuth's Volume 4 of Art of Computer Programming. Volume 2 has some useful content as well.
      thread
    2. nyrikkiMar 2026
      > Can't they run an example prompt and verify they get the exact same output token probabilities for all prompts?

      You don’t even get that with GPUs in general, or really floating point in general.

      The Art of Computer Programming. Volume 2: Seminumerical Algorithms section 4.2.2 with explain where it loses floating addition associativity property.

      Apartness relations are another possible lens.

      thread
    3. svatMay 2025
      Knuth also says that "Algorithm R is due to Alan G. Waterman", on TAOCP vol 2 page 144, just below "Algorithm R (Reservoir sampling)". This blog post seems to be a good history of the algorithm: https://markkm.com/blog/reservoir-sampling/ (it was given by Waterman in a letter to Knuth, as an improvement of Knuth's earlier "reservoir sampling" from the first edition).

      > All in all, Algorithm R was known to Knuth and Waterman by 1975, and to a wider audience by 1981, when the second edition of The Art of Computer Programming volume 2 was published.

      thread
    4. svatMar 2024
      BTW that one isn't a joke made up for this site: it's a verbatim quote from The Art of Computer Programming (Volume 2, page 2). TAOCP is full of silly-but-serious jokes like that.
      thread
    5. guessmynameOct 2019
      Read these articles to know what is wrong with Math.random()

      • https://medium.com/@betable/tifu-by-using-math-random-f1c308...

      • https://hackernoon.com/how-does-javascripts-math-random-gene...

      • https://news.ycombinator.com/item?id=10751396

      • https://v8.dev/blog/math-random

      > Many random number generators in use today are not very good. There is a tendency for people to avoid learning anything about such subroutines; quite often we find that some old method that is comparatively unsatisfactory has blindly been passed down from one programmer to another, and today’s users have no understanding of its limitations. — The Art of Computer Programming, Volume 2, by Donald Knuth

      thread

    Related

    Cover of Computer lib
    2008–2026

    Computer lib

    Ted Nelson
    10 recommend · 41
    Cover of The art of computer programming
    2007–2026

    The art of computer programming

    Donald Knuth
    336 recommend · 1,799
    Cover of Computer Lib/Dream Machines
    2009–2026

    Computer Lib/Dream Machines

    Ted Nelson
    37 recommend · 100
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Art of Programming - Volume 3 - Answers to ExercisesDonald Knuth
    2007–2026

    Art of Programming - Volume 3 - Answers to Exercises

    Donald Knuth
    6 recommend · 24
    Cover of Literate programming
    2009–2026

    Literate programming

    Donald Knuth
    18 recommend · 128
    Cover of Code
    2008–2026

    Code

    Charles Petzold
    recommend · 385
    243
    Cover of Concepts, techniques, and models of computer programming
    2007–2026

    Concepts, techniques, and models of computer programming

    Peter Van Roy
    70 recommend · 133