6

Does an AI exist that can automatically write software based on a formal specification of the software?

nbro
  • 39,006
  • 12
  • 98
  • 176
user79161
  • 359
  • 1
  • 12

3 Answers3

6

I think that the answer to your question is yes. In the article New A.I. application can write its own code, the authors state

Computer scientists have created a deep-learning, software-coding application that can help human programmers navigate the growing multitude of often-undocumented application programming interfaces, or APIs.

Designing applications that can program computers is a long-sought grail of the branch of computer science called artificial intelligence (AI). The new application, called Bayou, came out of an initiative aimed at extracting knowledge from online source code repositories like GitHub. Users can try it out at askbayou.com.

The paper Neural Sketch Learning for Conditional Program Generation may also be useful.

Brian O'Donnell
  • 1,853
  • 6
  • 20
5

There's Neural Program Synthesis, which can be used to generate a piece of code. Please, have a look at the article Neural Program Synthesis by Microsoft for an overview of the field.

nbro
  • 39,006
  • 12
  • 98
  • 176
  • 1
    You could also take a look at [DeepCoder: Learning to Write Programs](https://arxiv.org/pdf/1611.01989.pdf). – nbro Dec 07 '20 at 13:50
4

The other answers cover modern work on this, but it's not even a new topic!

Koza's work in Genetic Programming (1992) led to whole sub-fields doing this. The techniques are widely used, robust, and well understood. They're just very computationally expensive. Enough so that most of the time you're better off just hiring a programmer to do it.

John Doucette
  • 9,147
  • 1
  • 17
  • 52