Unofficial Hacker News client - receive Push Notifications on replies.

Beating Floating Point at Its Own Game: Posit Arithmetic [pdf] (opens external site)

100 points by xenophonf 1 day ago | www.johngustafson.net | 33 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (2)

  1. I'm the maintainer of fast-posit. It is not "feature complete" in the sense that it doesn't implement all those elementary functions prescribed by the standard, with 100% correct rounding (far beyond my powers :)). It does impl the four basic operations, sqrt, conversions between it and all fundamental Rust numeric types, comparisons, all quire operations (add, sub, dot product): everything correctly rounded, and tested exhaustively or with proptest. It also supports "bounded-posits" (one more parameter you tweak to make sure your type covers your expected domain accurately).

    You're welcome to give it a try! https://github.com/andrepd/posit-rust/

    I'm not sure how relevant it is to you, since you require exact arithmetic! In fact I'm not sure how you even use floats at all.

    Replies (1)
    1. thanks! I'll take a look ... one of the scary/fun things about LLM era development is we could just make a posit spreadsheet ... the question is "why" ;-)