I'm sorry, but you still have to think
- Source
- itsallaboutthebit.com
- Publisher
- Piotr Sarnacki
- Author
- drogus
- Date
Context
AI-generated code still leaves developers responsible for choosing acceptable delays and failure behavior. Piotr Sarnacki's analysis illustrates this through an AI-generated Rust rewrite of the Campfire chat application. Its notification buffer holds updates awaiting delivery. The underlying Tokio broadcast channel has limited capacity: when full, it overwrites the oldest update, and slow receivers learn that they missed data.
Sarnacki reports that, at 100 requests per second, increasing the buffer from 256 to 16,384 entries raised notification delivery from about 14% to 90%. But the longest delivery delay also rose from 11 seconds to more than 130 seconds. More notifications arrived, yet some arrived much later. His experiment shows why a delivery percentage alone cannot establish whether a chat system works well: developers must also decide how long users should wait and what happens when the system falls behind. The article presents these as design tradeoffs requiring human judgment.
- Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.


