Adrian Latorre (@willylatorre) header
Adrian Latorre (@willylatorre) profile picture

Always in love with Frontend development. Plenty of side projects @plannerie #litesubs. Building nice things at @revvitysignals. Previously @adyen @glovoapp

Boston
Joined April 2009
Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)Photo by Adrian Latorre (@willylatorre)
"7 days" is not 7 × 24 hours I wanted to add an "expires in 7 days" to some shared docs. The obvious implementation is to add seven times 24 hours to now, quick and easy. But customer reading "7 days" expects the link to work until the same local time next week.
1
101
New stuff: `addDays(now, days)` from `date-fns`, changing the unit of arithmetic, from elapsed milliseconds to calendar days. `setDate` moves the day-of-month in local time and leaves hours, minutes and seconds untouched.
1
31
The JS engine then re-resolves that local wall-clock reading against whatever offset applies on the new date. The offset is allowed to change; the clock reading is not. The fixed window now costs 169 real hours, because "7 days" meant seven calendar days, and one of them had 25.
16
When implementing the image generation for @plannerie, I wanted that if an AI job crashes after generating an image, hitting resume should not charge you to make that same image again -> i built a ledger of completed calls.
3
1
136
I was using for key `toolCallId`. It looks like an identity, but the model supplies it, and the SDK can generate one. But of course, when you resume the same request, the id will be different and my ledger sees a new call and charges again.
1
42
I now identify a completed operation by its job + tool + a stable hash of its inputs. A retry reuses the saved result. Lesson for last-year me: an idempotency key must survive the retry 🙃
30
I'm rebuilding @plannerie from scratch. It's an AI-augmented teaching aide for language tutors. In this rebuild, agents will write most of the code and of course, I'll review it and take the key decisions. I'll post the technical bits now and then!
1
110
I've built a little cookie-clicker like experiment. I always wonder how the incremental games handle big numbers such as 999,999,999,999,999,999. So, go ahead and play my little game Token Eater! adrianlatorre.com/token-eate…
1
101
I've been working on adding an approval gate to our #ai tools to support automatic CRUD operations. ⚠️ Warning, this is a technical post! adrianlatorre.com/blog/notes… It's supper fun to understand how #langchain interrupts work and how to get the most of them!
1
2
130
Introducing Skullet 💀 Loading states without hand-drawn placeholders or layout shift. Skullet measures your components and draws their skeletons for you. Wrap your component with <Skeleton> and you're done. Happy Halloween! 🎃 → skullet.lochie.me
96
96
24
2,297
167,020
I've been working on some fintech stuff also as we had to build an ai credits ledger to properly track and bill everything! Here are some notes on that topic adrianlatorre.com/blog/notes…
58
Adrian Latorre retweeted
I'm calling for a complete and total pacing of the frontier until we figure out what the hell is going on at tldraw
37
137
8
4,863
261,256
I am sorry but this is about 100 PRs per day, 10 per hour or basically 1 PR every 5 min. For sure no one is checking those, they are auto-verified and approved (are they really PRs?) and I sincerely want to see 3 or 4 examples of those PRs randomly selected (not cherry picking)
here's how i shipped 2,500 PRs last month to production this was originally supposed to be for Cursor Compile in London. i couldn't make it since i was livestreaming for Grok @Bot Galaxy so i'm making it available for free here on X! watch it on 2x speed, i talk slowly
1
1
1
325
Also, if 10 PRs per feature, that means 250 new features. If less that means 400. What kind of backlog do you need to have? How curated?
37
Adrian Latorre retweeted
okay i made a quick skill to get the model to delete useless UI copy. surprisingly works quite well with opus. have fun! paste.rachel.systems/ukogoki…
anybody have go-to skills for fixing bad labels/copy in web apps? cannot handle opus and astra adding unnecessary "it does [good thing] -- never [random error]" below everything and making all the labels weirdly verbose and self-aggrandizing
21
22
6
1,085
140,931