Live data from Hacker News

Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing

numpad.io

1–10 of 31 posts

Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing

#1
I launched NumPad v1 on here a few years ago, and back then it wasn't much more than a thin CodeMirror wrapper around the calculator engine I'd written.

Now I've rewritten it as a PWA that supports multiple documents, persists them to IndexedDB, and has a syncing service for paying customers. Syncing is handled by Automerge[1] under the hood, which should make it relatively easy to get document sharing working too.

[1] https://automerge.org/

Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
numpad.io

Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing

#3

This is very cool. I was able to so some a small budget to see what my expenses are monthly, it's quite nice. I can see myself using it anytime I need something more than paper, and less than a full spreadsheet. Very cool.

[flagged]

Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing

#4
post #3

This is very cool. I was able to so some a small budget to see what my expenses are monthly, it's quite nice. I can see myself using it anytime I need something more than paper, and less than a full spreadsheet. Very cool.

[flagged]

Clearly he likes notepad calculators.

Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing

#10
post #6

Nice tool, but the calculator executes division before exponentiation. E.g. 2^4/2 is evaluated to 4, not 8. However, it executes exponentiation first before multiplication (e.g. 2^2*3 is evaluated to 12). Is this intentional?

This is intentional, even if unexpected, as shown in line 152 of the link (turn on line numbers in the settings menu). I agree that following PEMDAS would make more sense.

Edit: it's the equation below "Although if you want to find roots higher than 3..."

Post reply on HN