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)
TScert is a research project that aims to provide stronger type-safety guarantees for a supported subset of TypeScript than the standard compiler offers. TypeScript permits constructs such as `any`, type assertions, unchecked array reads, and covariant arrays that can let values violate their declared types at runtime. TScert rejects unsafe functions unless it can validate a proof that their formal translations respect their annotations. For example, it catches a function that removes an array’s last element and then returns that element as a definite string; declaring the possible `undefined` result makes the function acceptable. The guarantee is that, for inputs and heap states matching declared types, a checked function’s translation neither gets stuck nor returns a value outside its result type. It may still throw or run forever.
The system parses TypeScript and its declarations, translates functions into a small calculus defined in Lean, and checks certificates against that translation. An OCaml producer and a certificate-search tool propose information, but their claims are untrusted; the Lean checker validates the proof, and its soundness is formally established. Trust still depends on the fidelity of the TypeScript-to-calculus translation, reviewed library contracts, callers and imports honoring declarations, and Lean itself. The supported fragment includes common control flow, arrays, objects, classes, functions, generics, and native promises; unsupported forms are refused with explanations, while `any` and type assertions provide no evidence. At version 0.94, the project reports checking 643 of 686 functions in its own front end, underscoring both its progress and its unfinished, bounded scope.
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.