Reza Tm

@rezatm.bsky.social

dne-tnorf mio

✨ Exciting proposal alert: the CPU Performance API. This proposal will add `navigator.cpuPerformance`, a value that measures the broad performance capability of the CPU. That way, we can scale up/down our animations to make sure everyone has the best experience possible for their device. 😄

GitHub - explainers-by-googlers/cpu-performance: An API that exposes some information about how powerful the user device is.

An API that exposes some information about how powerful the user device is. - explainers-by-googlers/cpu-performance

github.com

i finally fixed caching! (i think) did -> handle, handle -> did, and did -> avatar lookups should all be getting cached in redis now which should considerably speed up navigations and stop 1s+ load times on some pages cause was fun: github.com/vercel/next....

Docs: [Cache Components] "use cache" pitfalls with map() · Issue #86896 · vercel/next.js

What is the documentation issue? Here's a fix I'm going to deploy now: const resolveDidToHandle = cache(async function resolveDidToHandle(did: string): Promise<string> { "use cache: redis"; tagDid(...

github.com

An unpopular belief I hold: kids aren’t actually *that* much better at learning languages than adults. Kids are often immersed in language, spending up to 16 hours a day practicing for many years. Adults will typically take a 3-hour-a-week course. It’s a totally different level of investment.