Emacs Turns 50
Emacs debuted at MIT in 1976, bringing programmers a full-screen text editor that remains widely used today. Its roots in TECO and a culture of sharing helped shape the free software movement and GNU/Linux. (technologyreview.com)
Commenters found the stackless flood-fill technique useful for avoiding recursion or an explicit stack, especially in memory-constrained settings. They described it as storing traversal state in special pixel values: the image itself becomes a linked path, with each pixel recording where the algorithm came from and which directions it has checked. One commenter planned to replace a recently written flood fill with this approach; another wondered whether an AI could invent it. Some found the backtracking explanation unclear, particularly how the algorithm handles narrow gaps, while another commenter explained that it retraces predecessor directions and resumes exploring at branch points.
The main disagreement concerned how to account for the algorithm’s memory cost. One commenter argued that saving a path is effectively a bounded stack, and suggested using a heap area instead. Another replied that the proposed implementation can reserve 16 of 256 color values as markers, costing only about 0.09 bits per pixel in reduced color capacity - far less than a four-bit-per-pixel heap representation, though restoring displaced colors could itself require substantial storage. Commenters also noted that this tradeoff depends on the image’s available colors: spare palette entries make the technique attractive, while using all 256 colors complicates matters. Union-find or connected-components labeling was offered as another non-recursive option, with O(N) storage and runtime.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
Emacs debuted at MIT in 1976, bringing programmers a full-screen text editor that remains widely used today. Its roots in TECO and a culture of sharing helped shape the free software movement and GNU/Linux. (technologyreview.com)
C++ lookup tables can be optimized for extremely high query throughput, with the title claiming a billion queries per second. The topic is techniques for building fast lookup tables. (lemire.me)
Moxnox 1.0 is an NT-like, POSIX-compatible operating system that runs atop Btrfs. Its source code is available on GitHub. (github.com)
china-policy-data provides a free daily JSON feed of Shanghai government grant and subsidy notices. The feed is designed for researchers and AI agents. (github.com)
Linux 7.4 adds opt-in DMA-BUF read and write support through io_uring, enabling hardware memory buffers to move through the I/O path without CPU copies. The initial implementation supports NVMe block devices, with buffers up to 4 GB. (phoronix.com)
After a year running Dioxus fullstack apps, one Rust codebase and shared types across server and client make development and refactoring simpler. The major drawback is a 90-minute release build on GitHub Actions, and an all-Rust stack still has some exceptions. (oxidt.com)
Today's best Hacker News stories, summarized and screenshotted, one email a day.