NetBSD adds a new beginner-friendly text editor called atto
NetBSD has added a text editor called atto. The editor is designed to be beginner-friendly. (mastodon.sdf.org)
A treap combines a binary search tree, ordered by keys, with a heap, ordered by priorities. Each node stores a key, a priority, and links to its children; choosing priorities randomly makes the resulting tree balanced on average, avoiding the degeneration possible in an ordinary search tree. With this randomized structure, search, insertion, and deletion take expected O(log N) time. A key benefit is that distinct keys and priorities determine a unique tree regardless of insertion order.
The core operations are split and merge. Split divides a tree at a key into nodes at or below the key and nodes above it; merge joins ordered trees while preserving both ordering rules. These operations support insertion and deletion, as well as building a treap from sorted keys in O(N) time. The material also describes combining sets of trees, with union taking O(M log(N/M)) for trees of sizes M and N, and notes that subtree sizes enable order-statistic queries such as finding the K-th element or an element’s index. It extends the discussion to implicit treaps, which represent sequences by position rather than explicit keys, and covers implementation techniques for maintaining subtree information and constructing trees efficiently.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
NetBSD has added a text editor called atto. The editor is designed to be beginner-friendly. (mastodon.sdf.org)
Apple is preparing developers to support touch input on Mac apps, with videos, documentation, design guidance, and sample code. Apple also plans online group labs with engineers and designers in November, while Xcode 27.3 beta tools are listed as coming soon. (developer.apple.com)
Stack Overflow now receives fewer than 1,000 questions per month. The figure reflects a sharp decline in new questions on the programming Q&A site. (data.stackexchange.com)
Small Python implements nearly all Python 3.15 language features and built-ins in 25,000 lines of C11, without Python’s standard library. Designed for embedding, the project was built with AI coding tools over three days. (news.ycombinator.com)
Ruby 4.0.9 became available within minutes through Ruby-maintained Snap and Docker images, while many tools and platforms took hours or days to deliver the security patch. The comparison shows that relying on third-party images or hosting providers can delay deployment during a vulnerability response. (paagman.dev)
GitHub processed 7.4 billion commits in September. To handle the load, it added more than 4 million CPU cores and 160 petabytes of storage. (thenewstack.io)
Today's best Hacker News stories, summarized and screenshotted, one email a day.