---
title: "The Military Just Created An AI That Learned How To Program Software"
description: "BAYOU read the source code for roughly 1500 Android apps, resulting in an artificial intelligence that can, you know, program other software."
date: "2018-04-26"
modified: "2018-04-26"
authors:
  - name: "Dan Robitzski"
    link: "https://futurism.com/authors/danrobitzski.md"
url: "https://futurism.com/military-created-ai-learned-to-program"
categories:
  - "Artificial Intelligence"
  - "Military"
  - "Science & Energy"
tags:
  - "ai"
  - "artificial intelligence"
  - "automation"
  - "coding"
  - "DARPA"
  - "education"
  - "Google"
  - "machine learning"
  - "software"
  - "technology"
---

# The Military Just Created An AI That Learned How To Program Software

![](<https://futurism.com/wp-content/uploads/2018/04/GettyImages-866746284.jpg>)
*Artificial intelligence computer technology concept. Human brain with cpu processor, artificial intelligence concept. 3D rendering \<em\>Image: \<a href="https://www.gettyimages.ca/license/866746284" target="\_blank"\>Getty Images\</a\>\</em\>*

Tired of writing your own boring code for new software? Finally, there's an AI that can do it for you.

BAYOU is an deep learning tool that basically works like a search engine for coding: [tell it what sort of program you want to create](<http://www.askbayou.com/>) with a couple of keywords, and it will spit out java code that will do what you’re looking for, based on its best guess.

The tool was developed by a team of computer scientists from Rice University who received funding both from the military and Google. In [a study published](<https://arxiv.org/pdf/1703.05698.pdf>) earlier this month on the preprint server arXiv, they describe how they built BAYOU and what sorts of problems it can help programmers solve.

Basically, BAYOU read the source code for about 1500 Android apps, which comes out to 100 million lines of Java. All that code was fed through BAYOU’s neural net, resulting in AI that can, yes, program other software.

If the code that BAYOU read included any sort of information about what the code does, then BAYOU also learned what those programs were *intended* to do along with how they work. This contextual information is what lets the AI write functional software based on just a couple of key words and basic information about what the programmer wants.

Computer science majors, rejoice: your homework might be about to get much easier. And teaching people how to code may become simpler and more intuitive, as they may someday use this new AI to generate examples of code or even to check their own work. Right now, BAYOU is still in the early stages, and the team behind it is still proving their technology works.

No, this is not *that moment* in which AI becomes self-replicating; BAYOU merely generates what the researchers call “sketches” of a program that are relevant to what a programmer is trying to write. These sketches still need to be pieced together into the larger work, and they may have to be tailored to the project at hand.

But even if the technology is in its infancy, this is a major step in the search for an AI programmer, a longstanding goal for computer science researchers. Other attempts to create something like BAYOU required extensive, narrow constraints to guide programmers towards the correct type of code. Because BAYOU can get to work with just a couple of keywords, it’s much less time-intensive, and much easier to use overall, for the human operators.

## Author
Dan Robitzki is a senior reporter for Futurism, where he likes to cover AI, tech ethics, and medicine. He spends his extra time fencing and streaming games from Los Angeles, California.

### Author social links  
[Twitter](<https://x.com/danrobitzski>)

## More

- [Google Created AI That Just Needs A Few Snapshots To Make 3D Models Of Its Surroundings](<https://futurism.com/google-ai-surroundings-3d-model.md>)
- [AI Programming Assistant Tells User to Stop Being Lazy and Learn to Code](<https://futurism.com/ai-programming-learn-to-code.md>)
- [New AI Can Write and Rewrite Its Own Code to Increase Its Intelligence](<https://futurism.com/new-ai-can-write-and-rewrite-its-own-code-to-increase-its-intelligence.md>)
- [Young Coders Are Using AI for Everything, Giving “Blank Stares” When Asked How Programs Actually Work](<https://futurism.com/young-coders-ai-cant-program.md>)
- [OpenAI Reportingly Hiring “Army” of Devs to Train AI to Replace Entry-Level Coders](<https://futurism.com/the-byte/openai-replace-entry-level-coders-ai.md>)
- [The White House AI Task Force Wants To Open the AI Floodgates. Here’s How They Should Do It.](<https://futurism.com/the-new-white-house-ai-task-force-wants-to-open-the-floodgates-on-industry-research-heres-how-they-can-do-so-responsibly.md>)
- [Researchers Want to Create A “Digital Awakening” and Free AI to Learn Like Humans](<https://futurism.com/researchers-want-to-create-a-digital-awakening-and-free-ai-to-learn-like-humans.md>)
- [Our Computers Are Learning How to Code Themselves](<https://futurism.com/4-our-computers-are-learning-how-to-code-themselves.md>)
