top | item 47139038

(no title)

throwup238 | 5 days ago

Haven’t we been seeing libraries that implement this pattern going on two years now? Take the docstring and monkey patch the function with llm generated code, with optional caching against an AST hash key.

The reason it hasn’t take off is that it’s a supremely bad and unmaintable idea. It also just doesn’t work very well because the LLM doesn’t have access to the rest of the codebase without an agentic loop to ground it.

discuss

order

kingstnap|5 days ago

The real reason its bad is because its not really easier to be more productive doing this:

> You write a Python function with a natural language specification instead of implementation code. You attach post-conditions – plain Python assertions that define what correct output looks like.

Vs

> You write a Python function with ~~a natural language specification instead of~~ implementation code.

In many cases.