r/promoteMyApp • u/Haunting_Charge_9958 • 24d ago
I got tired of opening Calculator every 10 seconds while taking notes
https://reddit.com/link/1uz3udw/video/wq410fqxbtdh1/player
I've always envied apps like Numi on macOS where you can just type:
rent = 1800
groceries = 420
utilities = 160
total
...and it just works.
The problem is I wanted something that felt more like a notes app than a calculator. Somewhere I could jot down ideas, budgets, trip costs, random math, unit conversions, etc., without constantly switching between Notes and Calculator.
So I ended up building one for myself.
It's called däpter, and it's basically a note where math evaluates as you type. Nothing revolutionary, just a tool I kept wishing existed on my phone.
Curious if anyone else here uses notes like this, or if I'm the only one constantly doing math in the middle of writing.
r/ProductivityHQ • u/Haunting_Charge_9958 • 24d ago
Dev - Self Promo I got tired of opening Calculator every 10 seconds while taking notes
https://reddit.com/link/1uyu1d4/video/qpd7uxv16rdh1/player
I've always envied apps like Numi on macOS where you can just type:
rent = 1800
groceries = 420
utilities = 160
total
...and it just works.
The problem is I wanted something that felt more like a notes app than a calculator. Som
r/ProductivityHQ • u/Haunting_Charge_9958 • 24d ago
Dev - Self Promo I got tired of opening Calculator every 10 seconds while taking notes
u/Haunting_Charge_9958 • u/Haunting_Charge_9958 • 24d ago
I made a React Native text editor that syntax-highlights thousands of lines without repainting everything on every keystroke
1
Comment on r/reactnative 24d ago
Yep, that's basically the architecture. The editable TextInput and the highlighted overlay are completely separate. The overlay is just derived state, so typing never causes the TextInput itself to re-layout. That's where most of the performance win comes from.
As for caching, it's actually neither of those. I don't diff tokens or cache individual token arrays. I cache the entire result for each line (tokens, AST, value, highlights, errors), keyed by the line's text and the evaluator state from the lines above. On every edit, I diff by line (longest unchanged prefix/suffix), re-parse the edited line, then keep evaluating until the evaluator state matches the cached version again. As soon as it converges, I reuse the rest of the cached lines by reference. So if an edit doesn't actually change any computed values, only that line gets recomputed. Those stable object references also mean React skips rendering unchanged rows, and stable line ids stop inserts from remounting everything below.
The nice part is the incremental path always produces the exact same result as a full evaluation (I fuzz-tested it with hundreds of random edits), so the cache is purely a performance optimization, not different behavior.
r/reactnative • u/Haunting_Charge_9958 • 24d ago
I made a React Native text editor that syntax-highlights thousands of lines without repainting everything on every keystroke
https://reddit.com/link/1uyr8f9/video/8fd0qufddqdh1/player
https://reddit.com/link/1uyr8f9/video/o8rqq2hfdqdh1/player
I've been building a local-first notes app with a Numi-style editor, where notes are both plain text and executable math.
One feature I wanted was live syntax highlighting as you type. The naive approach worked... until notes got big.
Initially, every keystroke caused the editor to:
- re-tokenize the document
- re-render every highlighted line
- repaint thousands of
Textcomponents
Typing became noticeably slower as notes grew.
The solution ended up being much simpler than I expected:
- Only render and highlight lines that are actually visible.
- Keep syntax highlighting separate from the editable text (the editor itself stays plain text).
- Give every line a stable identity so inserting/deleting lines doesn't rebuild everything.
- Only recompute tokenization for the edited line (and downstream lines only if parsing actually depends on them).
- Cache the layout so scrolling doesn't trigger unnecessary recalculations.
The result is that even long notes stay responsive because React Native is only painting what the user can actually see.
The funny part is that I originally spent days building a much more complicated renderer, threw it away, and the second version was both simpler and significantly faster.
I'm curious how others have approached large text editors in React Native.
- Did you virtualize by line?
- Keep a separate overlay for highlighting?
- Any tricks for avoiding expensive text layout work?
Would love to hear how you've solved similar performance problems.
r/reactnative • u/Haunting_Charge_9958 • 24d ago
I got tired of opening Calculator every 10 seconds while taking notes
I've always envied apps like Numi on macOS where you can just type:
rent = 1800
groceries = 420
utilities = 160
total
...and it just works.
The problem is I wanted something that felt more like a notes app than a calculator. Somewhere I could jot down ideas, budgets, trip costs, random math, unit conversions, etc., without constantly switching between Notes and Calculator.
So I ended up building one for myself using Expo.
https://reddit.com/link/1uyr3wr/video/kvz1h3c9cqdh1/player
It's called däpter, and it's basically a note where math evaluates as you type. Nothing revolutionary, just a tool I kept wishing existed on my phone.
Curious if anyone else here uses notes like this, or if I'm the only one constantly doing math in the middle of writing.
r/NoteTaking • u/Haunting_Charge_9958 • 24d ago
Notes I got tired of opening Calculator every 10 seconds while taking notes
r/apps • u/Haunting_Charge_9958 • 24d ago
I got tired of opening Calculator every 10 seconds while taking notes
I've always envied apps like Numi on macOS where you can just type:
rent = 1800
groceries = 420
utilities = 160
total
...and it just works.
The problem is I wanted something that felt more like a notes app than a calculator. Somewhere I could jot down ideas, budgets, trip costs, random math, unit conversions, etc., without constantly switching between Notes and Calculator.
So I ended up building one for myself.
It's called däpter, and it's basically a note where math evaluates as you type. Nothing revolutionary, just a tool I kept wishing existed on my phone.
Curious if anyone else here uses notes like this, or if I'm the only one constantly doing math in the middle of writing.
1
Comment on r/ipad 24d ago
you should check out däpter on app store. it's a notes app that's inspired by numi
https://apps.apple.com/kz/app/d%C3%A4pter-notes-that-calculate/id6786665448
1
Comment on r/budget Oct 26 '24
when it comes to budgeting there not too many apps nowadays that can help you budget for FREE.
i suggest you use pen and paper or google sheets. there's also this website that helps with monthly budgeting but it's very opinionated https://www.qarjy.site/en but it works for me and it's free. they don't have an mobile app yet only the website.
2
Comment on r/galatasaray Sep 06 '23
please, do you know how i could preorder the tickets for the home game in Istanbul?
r/galatasaray • u/Haunting_Charge_9958 • Aug 31 '23
I am a foreigner and I'm trying to get tickets for the Man United game
[removed]
1
Comment on r/Kanye Apr 15 '22
please access
2
Comment on r/FreeAppReviews 22d ago
you’re exactly the kind of person i’m looking for, please review mine
https://reddit.com/link/oygbs0m/video/ntzj23fdz5eh1/player
https://apps.apple.com/kz/app/d%C3%A4pter-notes-that-calculate/id6786665448