MoofTCP – A modern replacement for MacTCP on 68k Macs
MoofTCP is a drop-in replacement for Apple’s MacTCP networking software on System 6 and 68000-based Macs. The open-source project is hosted on GitHub under the MIT license. (github.com)
Zig’s master branch now treats selected combinations of operators as ambiguous instead of assigning them a fixed precedence. When an expression mixes such operators, the compiler requires parentheses, making the intended grouping explicit rather than relying on programmers to remember a long and sometimes surprising precedence hierarchy. Familiar combinations, such as addition with multiplication and comparisons, can still be written without extra parentheses where their precedence remains unambiguous. The change aims to reduce mistakes caused by misremembered rules; in a deliberately complex example, adding parentheses makes the grouping visible even though the expression remains hard to read.
The change implements a proposal first opened in 2016, and its practical impact appears limited: only 353 lines in Zig’s million-plus-line codebase needed edits. Existing code can be updated manually as compiler errors arise, or with the temporary `zig fmt --upgrade` option, which inserts parentheses while preserving the old evaluation order. Manual fixes are recommended because reconsidering unusual expressions can reveal bugs; automated changes should also be reviewed for unexpected groupings or redundant parentheses. Going forward, programmers need to learn only the precedence rules that remain unambiguous: the compiler will flag other operator combinations and indicate where clarification is needed.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
MoofTCP is a drop-in replacement for Apple’s MacTCP networking software on System 6 and 68000-based Macs. The open-source project is hosted on GitHub under the MIT license. (github.com)
Declarative Dragging lets developers define which application states a draggable element can reach, then automatically generates drop zones and animations. The Dragology library implements this model-driven, composable approach for SVG web interfaces, reducing the effort needed to build rich drag-and-drop interactions. (declarative-dragging.github.io)
A gym member reverse-engineered the gym’s Flutter app to isolate its changing check-in QR code from an unwanted social feed. They found the app could generate valid codes offline and used code-inspection tools and AI assistants to investigate how it worked. (shayon.work)
Window Sweaters is a macOS menu-bar app that adds knitted borders to desktop windows. The open-source project is built for desktop customization and window management. (github.com)
FastBCP 1.6 exports SQL Server tables directly from .bak backups to Parquet without restoring them or running SQL Server. On a 320 GB backup, it exported a 175-million-row table in 29.6 seconds using 24 threads. (blog.arpe.io)
A smarter output buffer can display complete lines promptly while batching writes for much better performance than traditional line buffering. This avoids slow per-line output in tools such as archive extractors without hiding their progress. (nullprogram.com)
Today's best Hacker News stories, summarized and screenshotted, one email a day.