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 · ▲930The Unsure Calculator is an online tool that lets you calculate with numbers you’re not sure about.
- IMI 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 · ▲173Simple 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 · ▲76GitHub Gist: instantly share code, notes, and snippets.
val – An arbitrary precision calculator language2025 · github.com · ▲34Wrote 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 · ▲113Terminal based bit manipulator in ncurses. Contribute to mellowcandle/bitwise development by creating an account on GitHub.
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 3d ago · permit.petercai.com
- IV
Life & fun · 15d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 16d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 10d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 14d ago · carrierexplode.com

Life & fun · 24d ago · space.bl2.net
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


