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)
The piece presents a bit-provenance abstract domain for optimizing integer-operation traces. Unlike a known-bits analysis, which records whether each bit is zero, one, or unknown, provenance records the original bit behind each position, including whether it has been inverted. This lets the optimizer recognize when bits in different values are identical even after masking or shifting. For example, if two operations produce the same low four bits of an input, the domain can prove that a later combination is redundant and replace it with one of those values. The goal is to capture chains of bit movement and reuse without requiring a growing collection of local rewrite rules.
The implementation represents each bit as a constant or a reference to a source operation and bit position. Transfer functions propagate this information through logical shifts and bitwise AND, OR, XOR, and inversion. They simplify cases such as a bit combined with itself or its complement; when a result cannot be described precisely, they assign it fresh provenance. Constant shifts preserve or reposition known bits, while an unknown shift discards useful relationships. The article builds these rules in a small optimizer, checks them with examples and property-based tests, and describes how the resulting analysis can expose constants, identities, reusable earlier values, and simpler shifts. It also considers evaluation in Pydrofoil and PyPy.
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.