Alan North
alanscodelog.bsky.social
Alan North
@alanscodelog.bsky.social
Dev / Artist (❤️ rust | typescript | vue | nuxt) | Working on several UI/UX oriented libraries + revolutionary note app.

https://github.com/alanscodelog
https://alanscodelog.github.io/
I have nearly stopped using them to do any sort of "task". I mostly use them as search engines when learning something unfamiliar. Though they suck at docs too, so it only helps initially.
May 19, 2025 at 12:51 PM
They look at these? Wouldn't the names be all sorts of things? I thought using semantic HTML elements was enough.
April 8, 2025 at 10:57 AM
The solution was just to render myself a benchy, lel. Also maybe I'm stupid, but I can't figure out how one is supposed to structure the cleanup code when using flecs. Ended up just looping through after my main loop, but I want each component to handle it's cleanup.
March 3, 2025 at 12:11 AM
Damn, that node_modules inspector looks 🤯. Just gorgeous.
February 6, 2025 at 12:43 AM
Not good for treeshaking last I checked, but I use a Result util like this in a lot of places, so worth it.
January 31, 2025 at 1:00 AM
You can also just have a bridge typed in such a way that you could do something like this, but you have to tag each function

type Api = {
"tag" : typeof yourFunction
}

then it's possible to type the bridge in such a way as to type args here:

await bridge.send("tag", ...args)
January 18, 2025 at 4:18 PM
This might be overkill for your usecase, but I needed something similar + runtime safety. I built a small async bridge for simple messages ("data"|"error"). Then I created a custom trpc handler on the worker side that communicates over the bridge. And can just use the trpc api as normal.
January 18, 2025 at 4:11 PM
Please, I want to know when it's finally over. 🤣 It's been such a painful and slow move.
January 16, 2025 at 12:47 PM