按年被提到
20242024 · 2 次2026
软件工程与 AI 编程›代码生成与程序合成·arXiv:2408.04820 · cs.SE

Natural Language Outlines for Code: Literate Programming in the LLM Era

Kensen Shi, Deniz Altınbüken, Saswat Anand, Mihai Christodorescu, Katja Grünwedel, Alexa Koenings, Sai Naidu, Anurag Pathak, Marc Rasi, Fredde Ribeiro, Brandon Ruffin, Siddhant Sanyam 等 20 人 · 2024
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 2 人首次 2024-10-29 · 最近 2024-11-06
2不同的人
2活跃月份
2讨论串
14被引(OpenAlex)
arXiv 摘要(候选层不写导读)

We propose using natural language outlines as a novel modality and interaction surface for providing AI assistance to developers throughout the software development process. An NL outline for a code function comprises multiple statements written in concise prose, which partition the code and summarize its main ideas in the style of literate programming. Crucially, we find that modern LLMs can generate accurate and high-quality NL outlines in practice. Moreover, NL outlines enable a bidirectional sync between code and NL, where a developer can change either code or NL and have the LLM automatically update the other. We discuss many use cases for NL outlines: they can accelerate understanding and navigation of code and diffs, simplify code maintenance, augment code search, steer code generation, and more. We then propose and compare multiple LLM prompting techniques for generating outlines and ask professional developers to judge outline quality. Finally, we present two case studies applying NL outlines toward code review and malware detection.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

没有评论直接链到它;下面是它被提交的讨论串里回复最多的评论(不计入统计)
讨论串评论bryanrasmussen · 2024-10

“posted this because it really seems like LLMs should make literate programming work, to blossom, but it hasn't. Also because I was reading another article and it reminded me of a colleague that did not exactly do literate programming but nearly, sort of roughly outlining the code as they approached the solution - and that seems like a process an LLM woul…”

Natural Language Outlines for Code: Literate Programming in the LLM Era原评论 ↗
被提交为 story · 2 次