TOM pfp

TOM

@subtlegradient

355 Following
200 Followers


TOM pfp
TOM
@subtlegradient
we are still so early
0 reply
0 recast
1 reaction

TOM pfp
TOM
@subtlegradient
Taking data in one structure and transforming it into another structure! This is pretty much all programming is
1 reply
1 recast
3 reactions

TOM pfp
TOM
@subtlegradient
🥺
0 reply
0 recast
0 reaction

TOM pfp
TOM
@subtlegradient
building /frens offline support workarounds for crappy network conditions Chats reload faster in Thailand
0 reply
0 recast
0 reaction

TOM pfp
TOM
@subtlegradient
building /frens Shipped a demo of work-in-progress code that’ll destroy all spinners. does that count?
1 reply
0 recast
3 reactions

TOM pfp
TOM
@subtlegradient
https://github.com/facebook/react/tree/main/packages/react-server
0 reply
0 recast
1 reaction

TOM pfp
TOM
@subtlegradient
See you there. I’ll be that one guy
0 reply
0 recast
1 reaction

TOM pfp
TOM
@subtlegradient
The text/x-component content type (aka “RSC”) is an async stream of binary chunks. It’s like a cross between a serialization syntax and an RPC protocol. React repo implements a server side encoder and client side decoder that effectively allows you to send any kind of complex nested asynchronous JavaScript objects across the wire, including references to opaque client objects and opaque references to server objects. It also supports Suspense, promises, asynciterables, etc “RSC” has been used in production at Meta and all Next.js App router apps for a long time. We’ve been using it in /frens for like 7 months with our own custom React Native compatibility layer. Typical server rendered components can load server data as part of the server render response. But then they’re done. There’s nothing like setState or hooks in server components, typically. Until now. We figured out how to make server components stateful and reactively rerender from ALL kinds of realtime data streams 🤫
1 reply
0 recast
2 reactions

TOM pfp
TOM
@subtlegradient
Technically the Vercel AI SDK already did something similar, but let me just feel smug for like 5 minutes 😅
0 reply
0 recast
3 reactions

TOM pfp
TOM
@subtlegradient
building /frens Shipped the world’s first(?) realtime streaming subscription based react server renderer infra for native mobile It’s like next.js app router, but for realtime streaming live views instead of a single fire and forget server render pass dramatically pushing the state of the art forward
2 replies
1 recast
8 reactions

TOM pfp
TOM
@subtlegradient
Landing this stuff got delayed by like 3 life altering real human life things that all seem to be settling down finally Feels good to be on a humane team that prioritizes real life human needs
0 reply
0 recast
2 reactions

TOM pfp
TOM
@subtlegradient
building /frens finally landed some major new infra that’ll let us pull off some ludicrous product shenanigans More info later
1 reply
0 recast
8 reactions

TOM pfp
TOM
@subtlegradient
building /frens this week I moved atoms are heavy 😰
0 reply
0 recast
2 reactions

TOM pfp
TOM
@subtlegradient
building /frens "Give me six hours to chop down a tree and I will spend the first four sharpening the axe.” - some guy on Twitter claiming to be quoting Abe Lincoln I’ve been doing a lot of axe sharpening lately. That tree is freaking doomed bro
0 reply
0 recast
8 reactions

TOM pfp
TOM
@subtlegradient
crazy how much modern react code looks like the quick and dirty one file prototypes I used to make back in 2006 I miss `with` 🥺
0 reply
0 recast
3 reactions

TOM pfp
TOM
@subtlegradient
I guess the classic example is ui component separation back in the 2000’s. Having the HTML/CSS/JS for a single component living in separate files in separate folders and sometimes entirely separate repos. It was a nightmare. But we as an industry just didn’t know any better I did always colocate tightly coupled stuff in my quick and dirty prototypes back then, but always dutifully separated them before landing
0 reply
0 recast
1 reaction

TOM pfp
TOM
@subtlegradient
Personally, I code by gut instinct aka “intuition” aka “Feelings”. But if I were to train an ai to objectively measure it, I would look for files consistently mutated simultaneously. If you need to change two files to make one change, maybe they should be in the same file. But smart people have better objective evaluations. I’d probably consult the experts before building my own thing
0 reply
0 recast
2 reactions

TOM pfp
TOM
@subtlegradient
building /frens with ai fixed a tricky regex bug by finding the errant code, describing the problem precisely to o1-mini and asking it to precisely explain the underlying design flaw in the code that makes this bug possible It first helped me understand the precise problem, skipping stateful regex cleanup edge case. Then it proposed a solution and explained why it would solve the problem. Tests passed. Shipped the fix to production. Server rendered ui so no need for an app update 😎👍 Easily would have been 4 days of work back in 2014. Now it’s 20 minutes from laptop open to solution verified in production We are living in the sci-fi future
0 reply
0 recast
2 reactions

TOM pfp
TOM
@subtlegradient
threading the needle between control freaking and a chaos freaking
0 reply
1 recast
1 reaction

TOM pfp
TOM
@subtlegradient
Thabks. Feels good that people care 🫡
0 reply
0 recast
1 reaction