Also is it possible to use CRDT as rich undo history, not only syncing?
Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
11–20 of 31 posts
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#12Nice 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..."
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#13Nice 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..."
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#14Regarding the CRDT side of things what's the main driver? Syncing is probably better off without CRDT (I'd rather know a note had 2 copies significantly edited differently and now I have a sync conflict rather than no sync conflict but a hacked up note) so I'm assuming paid customers get (or will soon get) live multi user editing (i.e. you can trade local for concurrent usage)
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#15Handling of "to" is a bit odd though.
150 kn in km/h [277.79976 kph] - this is unit convertion
150 kn to km/h [-276.79976 kph] - this is unexpectedly subtraction. I expected the unit conversion here, because of Raycast and Google
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#161 https://github.com/gtg922r/obsidian-numerals 2 https://mathjs.org/
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#17This is really cool. I’m not sure what I would ever use it for, but it’s a cool idea and seems well executed.
I find them super useful. Using natural language and storing the context along with the calculations helps me to sort of think through problems.
Being able to define variables on the fly is also very useful — I often use them for pricing out materials for projects. E.g.:
"8ft 4 × 4" = $15
"8ft 2 × 4" = $4
"8ft 2 × 8" = $12
"8ft 2 × 6" = $6.50
"3/8in x 8in carriage bolt" = $3.50
Adjustable stand
"8ft 4 × 4" × 4
"8ft 2 × 4" × 2
"3/8in x 8in carriage bolt" × 12
Plans $12
(What you can't see here is that Soulver gives all the totals in a bar on the right).Soulver has some examples of other uses on their homepage: https://soulver.app
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#18Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#19I use Numerals(1) in Obsidian for this, and it works great. It's built on mathjs(2) and has things like @total functions which automatically sum all uninterrupted lines above it. 1 https://github.com/gtg922r/obsidian-numerals 2 https://mathjs.org/
Re: Show HN: I rewrote my notepad calculator as a local-first app with CRDT syncing
#20I use Numerals(1) in Obsidian for this, and it works great. It's built on mathjs(2) and has things like @total functions which automatically sum all uninterrupted lines above it. 1 https://github.com/gtg922r/obsidian-numerals 2 https://mathjs.org/
Mate this is a show HN post, not a "recommend me something" post. Don't be rude.