Show HN: I made a web-based notepad with a built in unit calculator (opens in a new tab)numpad.io
488 pointsHi HN
It also supports percentages, dates and variables.
I've been working on this alone for a few years now, so would love to get some feedback.
Comments (239) 97 threads
Earlier commentsI noticed that it doesn't handle remainder/modulo (%) equations:
"10 % 2" results in: "Left hand side of addition cannot be a percentage."
It does look like decimal.js can handle that: https://mikemcl.github.io/decimal.js/#mod
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Looks like there's a mod operator, so "2303 mod 10" gives 3.
> Frink is a practical calculating tool and programming language designed to make physical calculations simple, to help ensure that answers come out right, and to make a tool that's really useful in the real world. It tracks units of measure (feet, meters, kilograms, watts, etc.) through all calculations, allowing you to mix units of measure transparently, and helps you easily verify that your answers make sense. It also contains a large data file of physical quantities...
Looks much like the original idea behind lighttable IDE which is basically a REPL plugin that allows to evaluate certain lines within it. There are several similar projects around.
I was a big fan of Light Table when it first came out and the developers behind it have gone on to do some really interesting things, but I want to keep this project more limited in scope for now.
That can be an issue if you provide a limitless cloud instance, but you can roll the ball to user’s roof with client a side engine, either JS or a local instance, depending your vision for such an app.
This is impressively close to what I have in my desired spec (but already more future proof). Congratz!
https://github.com/xixixao/recomputer
https://xixixao.github.io/recomputer/
All comments shown.
Couldn't load more comments. Check your connection and try again.