Samuel
moving my brain dumping thread here. I think there’s two issues at play w.r.t. perf
Samuel@samuel.fm· 25 Jan
I tried putting it behind useDeferredValue, but it didn't do anything as it seems like the scroll handler has an unstable identity for no good reason
1 4
Samuel
1. List component rerendering. we need to change a scrollview prop on iOS. I already scoped this to iOS-only, so it’s not a perf concern on Android, but it’s got a massive over-render problem. changing this one tiny prop causes every list item to rerender, which is ridiculous
1 2
Samuel
Easy solution - take my existing useScrollsToTop hook, and put a useDeferredValue on it. therefore we can defer this nonsense until after the lightbox has finished rendering alas no. List rerender anyway. Profiler blames onScroll, and I added logging and yeah it changes on that initial ctx change
1 2
Samuel
I’m pretty sure it’s just unstable, I.e. different identity on each render, which shouldn’t be the case - it’s not doing anything here! next step is to narrow down what’s causing it to change. Reanimated has some magical auto-dep-array stuff which is probably to blame - likely doesn’t mesh w/ RC
1 2
Samuel
2. Slow on Android Perf on Android is still unacceptable, especially for 2+ images. I have yet to dig in but I have speculation. the animation gets triggered in a requestAnimationFrame. I’m guessing the main thread is getting locked up so it has to wait a really long time?
2 2
Samuel
Each time each image in the lightbox loads, it re-renders with its image dimensions. So we have 4 fairly heavy components (each image) rendering invisibly before the animation can begin, and each one re-renders as they load. maybe the animation is queued behind that whole process?
1 2
Samuel
what I will try is deferring rendering the other 3 images until after the animation is complete. they’re being prefetched already so it shouldn’t cause any functional changes?
1 1
Samuel
accidentally saw the slop vortex of someone else’s TikTok feed over their shoulder, day ruined
4 58
Samuel
why is it always clips of that one move where they’re stuck up a really tall pole
8
Samuel
up until claude was invented, all programming languages were typed languages (you had to type them in to the computer)
9 10 152
Samuel
thus the “untyped” language was invented (language that already lives in the computer already)
25
Samuel
I already reposted it 5 months ago but For You showed it to me and I want to repost it again
15
Samuel
this is verifiably true as you can read his Soul, it’s available as a PDF or an ePub
1 44
Samuel
claude should be allowed to wipe your hard drive if you’re being annoying
6 7 82
Samuel
claude code iOS really needs a built-in stop hook for failed CI
10
Samuel
social-app fandom was not something I expected to exist
4 5 69
Samuel
Post hidden · Only visible to signed-in users
3 3 63
Samuel
whiteboard that says “Alice” and “Bob” on it a bunch of times - yep, they’re doing protocol design
P(aul) Frazee@pfrazee.com· 16 Jan
The “boys” putting away some cans of their favorite brews, lemon white claw
Bryan and Daniel sitting on couches, laughing, and drinking lemon white claws
3 3 106
Samuel
computer science is when you write “Alice” and “Bob” and “Eve” on a whiteboard and the more times you write it, the more science the computer is
4 21 149
Samuel
so great to see people enjoying and appreciating my work 🥰
Bluesky@bsky.app· 15 Jan
Also new in v1.114 today: cashtags! Like hashtags, but for stocks. Tag your posts with $AAPL, $NVDA, whatever, then tap to see everyone else's equally unqualified analysis!
14 6 198
Samuel
claude: does tax_records.xlsx spark joy? me: no claude: okay! deleting it! Task: Bash(rm -rf ~ /Documents/tax_records.xlsx)
2 5 106
Samuel
fix deployed, looks like it worked! everyone say "thank you claude"!
Samuel@samuel.fm· 12 Jan
the plot thickens - new theory is that I think the subtitle files are accidentally being marked as a livestream if true, the fix is really easy, so fingers crossed
10 63
Samuel
the plot thickens - new theory is that I think the subtitle files are accidentally being marked as a livestream if true, the fix is really easy, so fingers crossed
Samuel@samuel.fm· 10 Jan
hey just want to chime in! I’m well aware of the bug and am making good progress on it. I’m hoping I’ll be able to get it fixed soon (technical details: the slightly-too-long caption file appears to be corrupting the AVPlayer internal state)
1 2 38
Samuel
claude haters must reckon with the fact that this bug would have basically gone unfixed forever without claude’s help
1 23
Older posts