Posts

Experimenting with Speculative UI language: A DSL for UI Components

2026-01-06

I've been experimenting with this idea I'm calling spec-ui-lang—a YAML DSL for describing UI components. I'm curious if a structured text file could actually reduce ambiguity when asking AI to generate UI code. Let me try some simple examples and see what happens.

spec-ui-languireactyaml

How I Learned to Build a Streaming Chat

2025-12-30

I was curious about how ChatGPT makes text appear instantly, so I decided to build it myself. Here's what I learned about streams, chunks, and the tricky 'buffer' problem.

reactstreamingchat