Advent of Code 2026
Advent of Code 2026 begins December 1 at midnight EST (UTC−5), when the first puzzles unlock. The annual programming puzzle event also offers calendars, leaderboards, and stats. (adventofcode.com)
A playful tour of floating-point quirks argues that IEEE 754 is less elegant than surprising. On many modern CPUs, invalid calculations produce Infinity or NaN rather than raising exceptions. Infinity compares equal to itself, while NaN does not; NaN generally propagates through calculations, though an operation such as raising it to the zero power can produce 1. The examples then contrast languages: C treats NaN as true in a Boolean condition, while JavaScript treats it as false. JavaScript’s bitwise conversion also makes expressions involving NaN and Infinity unexpectedly compare equal.
The piece moves from these rules to practical oddities. In JavaScript, numbers are floating-point values, so repeatedly adding 1 to a number around 10^16 may not change it, leaving a loop stuck. NaN can also be used as an object key: property access converts it to the string “NaN,” so looking up the same key through a NaN calculation retrieves the stored value. Finally, a short C program uses the sign of the NaN produced by dividing zero by zero to distinguish some x86 CPUs from ARM CPUs. A closing comment extends the joke, describing “1-bit floats” that can represent only NaN and Infinity.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
Advent of Code 2026 begins December 1 at midnight EST (UTC−5), when the first puzzles unlock. The annual programming puzzle event also offers calendars, leaderboards, and stats. (adventofcode.com)
Sebastian Raschka’s beginner-friendly PyTorch tutorial covers tensors, automatic differentiation, neural network training, data loaders, and model saving. It also explains GPU acceleration, including training across multiple GPUs, to help readers build deep learning models such as LLMs. (sebastianraschka.com)
Anthropic’s formal-math repository includes Lean definitions, papers, and proofs related to lattice attacks. It also provides challenge and solution directories alongside supporting documentation and scripts. (github.com)
GIMP has added a canvas-based Shape tool for creating lines, rectangles, ellipses, polygons, stars, and spirals as vector layers or on raster layers. The feature fulfills a request first publicly made in 2001 and includes customizable fills and strokes. (gimp.org)
Device is a free, open-source digital audio workstation for Mac, Windows, and Linux. It offers tools for recording, editing, and producing music across major desktop platforms. (devicedaw.github.io)
WallHop maps the Transformers codebase like Google Maps, guiding users through how a text-generation pipeline is built and runs a prompt to the model’s forward pass. Its interactive walkthrough breaks the process into ten steps. (mindmap.twing.dev)
Today's best Hacker News stories, summarized and screenshotted, one email a day.