I've been dabbling with computer math since I was asked to spend 3 months writing test vectors for an IEEE 754 Weitek FPU back in the 80s in C. More recently I have tried my hand working on a Polars adaptor for Raku…
Thus Omasheet [https://omasheet.org] which as the name implies is partly inspired by DHH Omarchy project to reinvent the OS. Omasheet is a simple one line `curl` install on Omarchy, Arch, Mac and Windows if you would like to try it - built on Rust and Qt6.
In a recent HN thread - Beating Floating Point at Its Own Game: Posit Arithmetic [1] - two sentences echoed my thoughts and led me to read what William Kahan, father of IEEE 754, wrote about that [2]. And so I went back and rewrote the Omasheet type system a little to make the bare system more in line to Kahan's thinking.
I coined these 4 Laws of Numerics[3] to explain the design thinking:
- Law 1: each type has a literal form
- Law 2: nothing is lost
- Law 3: the full value is shown
- Law 4: typed columns are strict
As anyone who has worked closely with numerics knows, this is a complex area with many subtle trade-offs and judgements to be made. I am by no means an expert - hats off if you are. My choices are opinionated and try to cover both bases of user comfort, application speed and numeric fidelity which means some compromises. Happy to receive and discuss any feedback and try to take on board any suggestions.[1] https://news.ycombinator.com/item?id=50685334
0 comments
No comments yet.
Related stories
- Hacker News · 1 points · 3 days ago
- Hacker News · 1 points · 2 months ago
- Hacker News · 421 points · 2 months ago
- Hacker News · 1 points · about 17 hours ago
- Hacker News · 1 points · about 21 hours ago
- Hacker News · 6 points · 2 months ago