257 karma · joined May 24, 2020 (6y ago) · 62 submissions
5.
Earth's First Personal Robocar(tensor.auto ↗)
2 points · by probabletrain · 7mo ago · discuss
comment 7mo ago · link · parent
Yes you can - durable objects do exactly what the "Ably pub/sub channel transport" diagram describes. And it's even easier with the cloudflare agents SDK. This article strawmans the capabilities of competing infra.
comment 7mo ago · link · parent
comment 8mo ago · link · parent
One cabby pulled out of a t junction to end up alongside me on a motorbike – a Waymo would never do that.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
Yes it can? We have agents in Slack as first class participants. They can even use Slack search.
14.
Improving React page performance with AI agents(metaview.ai ↗)
1 points · by probabletrain · 9mo ago · discuss
comment 1y ago · link · parent
RXJS’s pipe function has a pretty complex type for its signature, but as a user of the library it ‘just works’ in exactly the type-safe way I’d expect, without me having to understand the complexity of the type.
comment 1y ago · link · parent
A vibe-coded double pendulum sim should produce a much better result than the physics on this page. Claude Code made this just now off one prompt, the physics are much better: https://keir.is/swinging
comment 1y ago · link · parent
So on the /posts page the client asks for `{ user: { id, posts: { id, content }[] } }`, and gets a generated properly-typed function for making the query.
comment 1y ago · link · parent
Without fullstack TS this could look something like: (for a Python backend) Pydantic models+union for the various shapes of `User`, and then OpenAPI/GraphQL schema generation+codegen for the TS client.
21.
Cloudflare Acquires Outerbase(cloudflare.com ↗)
4 points · by probabletrain · 1y ago · 1 comment
comment 1y ago · link · parent
comment 1y ago · link · parent
Many people value creating and using products with these kinds of details, I disagree with "don't use this in projects you intend to maintain" as across-the-board advice.
comment 2y ago · link · parent
- If data already exists in cache, a query will return that data instead of making a network request.
- Everything that has a data dependency on something in the cache will automatically update when the data is updated, e.g. after a mutation.
- Cache data can be optimistically updated before the request completes, UI that queries this data will automatically update.
- Components will automatically refetch data if they need to, e.g. if an object is partially updated.
The pain points are pretty painful though:
- Really hard to debug unexpected refetches.
- Normalizing the data for the cache comes at a cost, it can be pretty slow for big responses.
- You quickly realise you need to really understand how the client works under the hood to be productive with debugging/complex behaviour.
I see it as a case of "this is the worst API/client, except for all the others". I'm curious to hear how people using non-graphql APIs are managing data in the client in web-apps with complex data needs?
[1] https://www.apollographql.com/docs/react/why-apollo [2] https://relay.dev/
comment 2y ago · link · parent
I quite like Relay's pattern where components define their data requirements, and this is passed up the component tree to some query at the root. Avoids a situation where the query defined at the root asks for unnecessary fields because it's so far away from where the data is actually required.
https://relay.dev/docs/principles-and-architecture/thinking-...