Getting LLMs write better code

This is a deep dive into use of the prompt to “write better code

This popped up on https://www.techmeme.com/

the techmeme post:

his conclusion:

In all, asking an LLM to “write code better” does indeed make the code better, depending on your definition of better. Through the use of the generic iterative prompts, the code did objectively improve from the base examples, both in terms of additional features and speed. Prompt engineering improved the performance of the code much more rapidly and consistently, but was more likely to introduce subtle bugs as LLMs are not optimized to generate high-performance code. As with any use of LLMs, your mileage may vary, and in the end it requires a human touch to fix the inevitable issues no matter how often AI hypesters cite LLMs as magic.

You could ask another AI machine to tell the first AI machine to code faster or “better.”

Here’s a serious take on the question, btw: