arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2108.05198cs.SEcs.LGcs.PL
收藏

自然语言引导编程

Natural Language-Guided Programming

Nokia Bell Labs(诺基亚贝尔实验室)

Geert Heyman, Rafael Huysegems, Pascal Justen, Tom Van Cutsem

摘要:

在当今的软件世界中,其可重用软件库的聚宝盆,当程序员面对他们怀疑可以通过使用库来完成的编程任务时,他们经常使用搜索引擎来寻找代码示例,然后手动地使找到的示例适应于其特定的使用上下文。我们提出了一个基于新一代开发人员工具的愿景,这些工具有可能在很大程度上自动化这一过程。关键思想是调整代码自动完成工具,使其不仅考虑到开发人员已经编写的代码,还考虑到开发人员下一步试图实现的任务的意图,用普通的自然语言表达。我们将这种用自然语言意图丰富代码以促进其完成的实践称为自然语言引导的编程。为了证明这个想法是可行的,我们设计、实现和基准测试了一个工具,该工具在特定领域(数据科学)和特定程序设计语言(Python)的背景下解决了这个问题。该工具的核心是使用在大型文档化代码语料库上训练的语言模型。我们最初的实验证实了这个想法的可行性,但也清楚地表明,我们只是触及了未来可能实现的事物的表面。我们结束了一个全面的研究议程,以刺激更多的研究在萌芽地区的自然语言引导编程的文件。

英文摘要:

In today's software world with its cornucopia of reusable software libraries, when a programmer is faced with a programming task that they suspect can be completed through the use of a library, they often look for code examples using a search engine and then manually adapt found examples to their specific context of use. We put forward a vision based on a new breed of developer tools that have the potential to largely automate this process. The key idea is to adapt code autocompletion tools such that they take into account not only the developer's already-written code but also the intent of the task the developer is trying to achieve next, formulated in plain natural language. We call this practice of enriching the code with natural language intent to facilitate its completion natural language-guided programming. To show that this idea is feasible we design, implement and benchmark a tool that solves this problem in the context of a specific domain (data science) and a specific programming language (Python). Central to the tool is the use of language models trained on a large corpus of documented code. Our initial experiments confirm the feasibility of the idea but also make it clear that we have only scratched the surface of what may become possible in the future. We end the paper with a comprehensive research agenda to stimulate additional research in the budding area of natural language-guided programming.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑