Microsoft's ONNX Runtime has disappeared from GitHub
Microsoft's ONNX Runtime GitHub repository currently returns a 404, leaving its code and project page unavailable. GitHub provides no explanation for the outage or removal. (github.com)
Martijn Faassen argues that learning Rust reshaped his programming habits because its concepts made him reconsider choices that familiar languages had made feel automatic. Sum types, represented by enums, let a value be one of a defined set of variants, with the compiler requiring every case to be handled. They can model options and errors directly, often with less ceremony than an interface or inheritance hierarchy. Interfaces remain useful when implementations must be extensible, but enums can be a better fit for a fixed domain: adding a variant exposes every place that needs updating. This made enums a central, practical tool in his approach to abstraction.
Rust also clarified the relationship between dispatch and performance. Dynamic dispatch selects behavior at runtime, while enums support checked branching and generics can select concrete types at compile time. For homogeneous collections, compile-time composition avoids runtime checks for variants that cannot occur and lets the compiler reject incompatible operations. Faassen also embraces types as a way to reason about design, not merely to prevent errors or optimize code. As with test- or documentation-driven development, iteratively expressing a domain in types can reveal flaws in its architecture and APIs. His biggest surprise is that Rust can provide capabilities associated with dynamic-language runtimes without runtime type introspection: macros and annotations generate code during compilation. Libraries such as Serde derive serialization and deserialization from types, while Clap turns typed, documented structures into command-line interfaces and supplies parsed, well-typed inputs.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
Microsoft's ONNX Runtime GitHub repository currently returns a 404, leaving its code and project page unavailable. GitHub provides no explanation for the outage or removal. (github.com)
Python’s `isinstance` can support duck typing by checking for expected behavior, not just exact classes. Abstract base classes such as `Iterable` recognize objects that provide the relevant methods. (pythonmorsels.com)
Computer Graphics from Scratch teaches graphics programming through two parts: ray tracing and rasterization. It covers lighting, shadows, reflections, triangles, projection, clipping, shading, textures, and the linear algebra behind them. (gabrielgambetta.com)
jQuery 4.1.0 adds a responseURL field to jqXHR for AJAX requests. The release notes identify this as an enhancement to AJAX handling. (github.com)
Farcall is a Rust emulator for the IBM PC’s 8088 processor that boots DOS and runs classic programs such as Zork and NetHack. Users can SSH into the emulator to try it, which its creator built as a hands-on project to learn how vintage computers work. (dialup.net)
Solid 2.0 is now stable, five years after version 1.0, with a smaller API and diagnostics designed for AI agents. Its reactive graph now handles asynchronous computations, while built-in server functions support RPC calls and persistent Server-Sent Events connections. (solidjs.com)
Today's best Hacker News stories, summarized and screenshotted, one email a day.