nowfound

Life & fun · April 25, 2025

Implementing Unsure Calculator in 100 lines of Haskell

Implementing a calculator with normal ranges, embedded in Haskell, using a simplified probability monad.

Implementing Unsure Calculator in 100 lines of Haskell launched on April 25, 2025 with 5 votes and more than 75% of that year's launches. The site was still online in September 2026, 1 year on.

What it does

Implementing a calculator with normal ranges, embedded in Haskell, using a simplified probability monad. The recently trendy Unsure Calculator makes reasoning about numbers with some uncertainty just as easy as calculating with specific numbers. The key idea is to add a new “range” operator (written ~ ) to the vocabulary of a standard calculator. The range x~y denotes that a real value is uncertain, but we are 95% sure that it falls between x and y 1 . Reading the notation is easy: when you see 10~15, you say: “ten to fifteen”. Arithmetic operations and friends (e.g. sin , or log ) transparently operate on ranges and literal numbers alike. Calculation results in a plot with a range of…from alt-romes.github.io

Does a similar job

all alternatives →
  • Unsure Calculator – back-of-a-napkin probabilistic calculator2025 · filiph.github.io · ▲930

    The Unsure Calculator is an online tool that lets you calculate with numbers you’re not sure about.

  • IM
    I made a calculator that works over disjoint sets of intervalsApr 2026 · victorpoughon.github.io · ▲314

    I've been studying interval arithmetic for the past few weeks and it's a really interesting field because while there is a ton of super interesting research published over the past decades, it has never really gotten the recognition that it deserves, IMO. One reason for this is that standard interval arithmetic has really poor handling of division by intervals containing zero. If you compute 1 / [-1, 2] in regular interval arithmetic, you get either [-∞, +∞], or you have to say that the operation is undefined. Both solutions are virtually useless. The real answer of course is [-∞, -1] U…

  • Procal: A simple Qt-based programming calculator2023 · github.com · ▲173

    Simple Qt-based programming calculator. Contribute to fellerts/procal development by creating an account on GitHub.

  • Minimal Lisp in ~70 lines of Haskell2011 · gist.github.com · ▲76

    GitHub Gist: instantly share code, notes, and snippets.

  • val – An arbitrary precision calculator language2025 · github.com · ▲34

    Wrote this to learn more about the `chumsky` parser combinator library, rustyline, and the `ariadne` error reporting crate. Such a nice DX combo for writing new languages. Still a work in progress, but I thought I'd share :)

  • I made an interactive hex calculator in ncurses2019 · github.com · ▲113

    Terminal based bit manipulator in ncurses. Contribute to mellowcandle/bitwise development by creating an account on GitHub.

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, April 2025

the whole month →
  • Hi everyone, I built PyXL — a hardware processor that executes a custom assembly generated from Python programs, without using a traditional interpreter or virtual machine. It compiles Python -> CPython Bytecode -> Instruction set designed for direct hardware execution. I’m sharing an early benchmark: a GPIO test where PyXL achieves a 480ns round-trip toggle — compared to 14-25 micro seconds on a MicroPython Pyboard - even though PyXL runs at a lower clock (100MHz vs. 168MHz). The design is stack-based, fully pipelined, and preserves Python's dynamic typing without static type restrictions.…

    Dev tools · 2025 · runpyxl.com

  • The Unsure Calculator is an online tool that lets you calculate with numbers you’re not sure about.

    Life & fun · 2025 · filiph.github.io

  • https://the-pocket.github.io/Tutorial-Codebase-Knowledge/

    AI · 2025 · github.com

  • Whatting▲898

    The iPad diary, just for you

    Work · 2025 · whatting.com

  • Browser with AI companions that automate web tasks

    AI · 2025 · strawberrybrowser.com

  • Peek▲828

    AI personal finance coach that guides you through decisions

    Work · 2025 · peek.money