Joy & Curiosity #64

Interesting & joyful things from the previous week

Open on Substack · Markdown

I was live on Twitch this week, using Amp to hack on my little side- and toy-project terminal emulator. It’s written in Rust, barely has any third-party dependencies, and does its rendering using Metal and the GPU.

Without exaggeration (and I know it sounds like exaggeration, but hey, it’s not): this was some of the most magical stuff I’ve ever experienced with agents.

You can still watch the whole thing here. If you do, you’ll see how the agent figures out how to render background colors for terminal cells, how it then fixes the wrong struct alignment/padding of the data it sends to the GPU after I show it a screenshot, how it then builds a 2D renderer for box drawing characters, and a feedback loop, and then iterates based on screenshots to render curved and straight characters.

Or you can watch these two highlights: this one in which I guide the agent to build a feedback loop for itself, so it can “see” what the GPU renders; and then this one, in which the agent first uses the feedback loop to check which box-drawing characters aren’t rendered properly and then adds the code to render them.

Magical, truly. Rendering the characters — that’s one thing. But how it “understood” how the feedback loop should work and how it builds it — man, that was mind-blowing.