2 ms·
Big question: how to represent programs when some kind of AI-type system is doing most of the work. Code is all "what" and no "why". Intention is represented, i
by Animats 3y ago
Big question: how to represent programs when some kind of AI-type system is doing most of the work. Code is all "what" and no "why". Intention is represented, if at all, in the comments. If you use an AI to modify code, it needs intention information to do its job. Where will that information come from?
- Animats 3y agoThis suggests something. Knuth's old "literate programming", which is a formalized comment-heavy style. That might be useful for AI-generated code, to capture the "why". The purpose is to provide the info needed as part of the prompt when an LLM next works on the code again. What's needed is a way to write down what the military calls "commander's intent".[1] Commander's intent reads like "why", but its real purpose is to provide guidance as to what's important when things don't go as planned. [1] https://www.armyupress.army.mil/Portals/7/military-review/Archives/English/MilitaryReview_20131231_art011.pdf https://www.armyupress.army.mil/Portals/7/military-review/Ar...