I just finished writing a Kafka consumer to migrate data with heavy AI help
I just finished writing a Kafka consumer to migrate data with heavy AI help. This was basically best case a scenario for AI. It’s throw away greenfield code in a language I know pretty well (go) but haven’t used daily in a decade. For complicated reasons the whole database is coming through on 1 topic, so I’m doing some fairly complicated parallelization to squeeze out enough performance. I’d say overall the AI was close to a 2x speed up. It mostly saved me time when I forgot the go syntax for something vs looking it up. However, there were at least 4 subtle bugs (and many more unsubtle ones) that I think anyone who wasn’t very familiar with Kafka or multithreaded programming would have pushed to prod. As it is, they took me a while to uncover. On larger longer lived codebases, I’ve seen something closer to a 10-20% improvement. All of this is using the latest models. Overall this is at best the kind of productivity boost we got from moving to memory managed languages. …
Original discussionA look at Cloudflare's AI-coded OAuth library165 source comments · at import