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)
The piece argues that operator precedence is better modeled as a set of allowed expression relationships than as a ranked list of precedence levels. A flowchart shows which kinds of expressions can contain which others, while also marking operators such as comparisons and modulo as non-chaining: their operands cannot use the same operator group. This captures relationships that a simple ordering cannot, including groups that are incomparable rather than strictly higher or lower. The author illustrates the idea with Zig’s expression syntax, then simplifies the chart by removing less familiar operators to make the structure easier to inspect.
To translate the chart into a parser, the author first shows the conventional approach: assign each expression category an integer precedence, from primary expressions down to the general expression entry point. That scheme fails to represent the chart’s branching structure. Instead, each category receives a bitmask encoding which categories are reachable from it; the masks form the chart’s reachability matrix. Parser operations then use bitwise techniques - such as isolating or clearing the lowest set bit and testing intersections - in place of arithmetic on precedence numbers. The proposal is not that levels are useless for ordinary, strictly ordered operators, but that sets can express richer grammar relationships and can be used to convert existing level-based parsers. The author hopes language designers adopt this model, following Zig’s example, rather than forcing every operator into a single hierarchy.
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.