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)
The piece presents a compact way to define C-style bit flags in Ruby without adding a dependency. Calling `BitFlags.for` with names such as `:execute`, `:write`, and `:read` creates a flag set in which each name corresponds to a distinct power of two. The resulting constants can be combined with Ruby’s bitwise OR, and generated predicate methods - such as `Permission.read?` - test whether a flag is present in a combined value. The examples build an execute-and-read permission and check that read and execute are enabled while write is not.
The implementation also provides `parse`, which turns an integer flag value into a form usable in Ruby’s pattern matching. That lets callers branch on cases such as no flags, all flags, an exact combination, the presence of read, or one of two alternatives. The included tests demonstrate these cases with values from zero through seven. The code is released under the CC0 public-domain dedication and can be downloaded and tested directly with Ruby. The author argues against packaging it as a gem because the feature is small and understandable enough to copy and adapt; avoiding a dependency also sidesteps version constraints and supply-chain concerns. The piece additionally suggests that a collection of useful single-file libraries could be worthwhile.
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.