最新文章

今日新增 457 篇 · 共 7,564 篇 · 来自 241 个博客

research!rsc··Russ Cox

Play Tic-Tac-Toe with Knuth

AI 摘要Section 7.1.2 of Knuth's The Art of Computer Programming (Volume 4, pre-fascicle 0A) describes nine boolean functions that encode the optimal next move in tic-tac-toe. In a footnote, Knuth recalls how, as a boy, he so baffled a tic-tac-toe machine at Chicago's Museum of Science and Industry that it 'cheated' by making two winning moves at once, giving him a moral victory despite officially losing. A quotation from Charles Babbage's 1864 autobiography reveals Babbage encountered the same paradox—an automaton attempting two contradictory winning motions—more than a century earlier.

research!rsc··Russ Cox

Crabs, the bitmap terror!

AI 摘要The article reflects on the early era of bitmap screen user interfaces, when conventions such as windows being self-contained, protected worlds were still being established. It describes programs that deliberately violate these window protection rules, classifying them as useful (screen printing, magnifying lenses, pen scribbling) or pointless (a magnet that distracts the cursor). The author's first pointless and destructive violation was 'crabs,' a program in which crabs walk across the screen, erasing the applications beneath them.

Without Boats·

404 Page Not Found

AI 摘要The passage describes an empire where cartography became so perfected that a map of a single province filled an entire city, culminating in a 1:1 scale map of the Empire that coincided with it point for point. Later generations, less devoted to the study of cartography, deemed this vast map useless and abandoned it to the ravages of sun and winter. It serves as an allegory about the absurdity of representations that perfectly mirror reality.