hn.today

Beating Floating Point at Its Own Game: Posit Arithmetic [pdf]

johngustafson.net52 points16 comments
Screenshot of Beating Floating Point at Its Own Game: Posit Arithmetic [pdf]

The discussion weighs posit arithmetic as an alternative to IEEE 754, with commenters describing its variable-length encoding and quire accumulators as promising for some numerical domains. Supporters point to the possibility of using a narrower posit where a wider float is needed, and one commenter cites a newer format extension intended to improve both numerical properties and hardware design. Critics emphasize that posits lose precision more quickly at large magnitudes, lack NaN and infinity, and can silently saturate into seriously wrong values. They also raise concerns about non-uniform relative error in numerical verification and machine-learning workloads.

Commenters disagree over whether posit hardware can be simpler or more efficient than floating-point hardware: one cites recent implementations that, in their view, show variable-length fields and wide accumulators add substantial area, while others argue those results do not rule out better designs. The Rust library maintainer describes support for basic arithmetic, square roots, conversions, comparisons, and quire operations, while noting that operations use an intermediate mantissa-and-exponent representation. A spreadsheet developer discusses using exact fractions as a slow fallback and asks about posit support in Rust and Parquet. Another commenter notes that Excel’s user-facing number behavior can depart from IEEE 754, underscoring that arithmetic compatibility involves more than choosing a numeric format.

Read on johngustafson.net16 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Science

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.