AskVantage

AI and intelligence

Microsoft’s AI has learnt how to write it’s own code and create its own programs

An AI that can code and build new computer programs from scratch could change the world, give rise to a whole new generation of entrepreneurs. And put a lot of people out of jobs...

Key takeaways

  • Lift up the hood and go and have a look at the code running it and it’s like staring at a screen straight out of the Matrix.
  • Give DeepCoder some instructions, or inputs and outputs as they’re known, and it’ll learn which pieces of code it needs to use and where to generate the desired result.
  • All this makes the system much faster than its human predecessors.
Cite or link to this article

Griffin, M. (2017) 'Microsoft’s AI has learnt how to write it’s own code and create its own programs', 311 Institute, 25 February. Available at: https://www.311institute.com/microsofts-ai-has-learnt-how-to-write-its-own-code-and-create-its-own-programs/ (Accessed: 1 October 2026).

For many of us the digital world’s an alien place. Lift up the hood and go and have a look at the code running it and it’s like staring at a screen straight out of the Matrix. As a consequence there are those people who can code, and those that can’t. People who live and breathe in this new world, and self-professed hackers like Gates and Zuckerberg who rule it, and those of us who just dabble at the edges blindly poking the apps on their smartphones like cats playing with balls of yarn.

As a result, today, as the world’s companies race to build out their new digital empires the demand for programmers has never been higher. But, unfortunately, just as the kings and queens of the new digital universe are getting used to their new exalted status on the world stage there’s a new programmer in town, and it’s packing, an artificial intelligence (AI) system called DeepCoder that’s learnt how to write its own code and write new software programs from scratch. It looks like AI wasn't happy enough beating other AI's into submission, building more AI's, designing new trainers, diagnosing disease, dreaming, making up new secret languages, or slaughtering gamers online - it evidently has far too much time on its hands so hey, why not take up a hobby?

Created by the researchers at Microsoft and the University of Cambridge, the DeepCoder uses a technique called “Program Synthesis” to cut up code from existing software and repurpose it to create new programs, just like a human programmer might. Give DeepCoder some instructions, or inputs and outputs as they’re known, and it’ll learn which pieces of code it needs to use and where to generate the desired result.

“Ultimately,” says Marc Brockschmidt, one of DeepCoder’s Microsoft creators who’s based out of Cambridge in the UK, “the approach could allow non-coders to simply describe an idea for a program and the system will build it.”

“All of a sudden people could be so much more productive,” says Armando Solar-Lezama at MIT, who wasn’t involved in the work, “they could build systems that it would be impossible to build before.”

Asides from having an AI that can build new programs another big advantage is that it can search more thoroughly and widely for code, scouring databases and source code sites like Github and StackOverflow for interesting and useful code fragments, magnitudes faster than even the best $180,000 a year human coder can, and it could piece together source code in a way humans may not have thought of. Can’t figure out how to add authentication to Flask? Boom. Want to shut down sendmail? Done. All before you can blink.

All this makes the system much faster than its human predecessors. At the moment DeepCoder can trial thousands of different code combinations and create working programs, albeit the fact that most of them at the moment are only five lines long, which in many cases is still enough to create a working program, in fractions of a second. And because it learns which combinations of source code work and which ones don’t as it goes along, it improves every time it sees a new problem.

The use cases for the new system are almost limitless, for example, as far back as 2015 researchers at MIT created a program that automatically fixed software bugs by replacing faulty lines of code with working lines from other programs.

Brockschmidt says that future versions of DeepCoder could make it very easy to build routine programs that scrape information from websites, or automatically categorise Facebook photos, for example, without human coders, or non-coders, having to lift a finger.

“The potential for automation that this kind of technology offers could really signify an enormous reduction in the amount of effort it takes to develop code,” he says. But he doesn’t think these systems will put programmers out of a job, at least not yet. With program synthesis automating some of the most tedious parts of programming, he says, for now coders will be able to devote their time to more sophisticated work.

“Generating a really big piece of code in one shot is hard, and potentially unrealistic,” says Solar-Lezama, “but really big pieces of code are built by putting together lots of little pieces of code, and over time we can see a way for a system like DeepCoder to automate the entire stack."

FAQ

Why does this matter?

An AI that can code and build new computer programs from scratch could change the world, give rise to a whole new generation of entrepreneurs. And put a lot of people out of jobs...

Matthew Griffin

About the author

Matthew Griffin Founder, 311 Institute

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath."

Read full bio

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath." 15-time best selling author of the "Codex of the Future" series, Matthew is the Founder and Futurist in Chief of the 311 Institute, a global Futures and Deep Futures advisory firm working with royal households, world leaders, G7, G20, and G77 governments, NGOs, and multi-national mid and mega cap firms to help them explore, shape, and lead the next 50 years of business and society.

An award-winning YouTube creator with over a million followers, with an unrivalled global reach and impact, Matthew is a highly sought-after international keynote speaker, lecturer, and mentor who collaborates with global leaders through the United Nations Alliance of Civilizations (UNAOC) and United Nations General Assembly (UNGA) to shape pivotal initiatives such as the UN’s AI for Humanity program, the United Nations Conference of the Parties (UN COP), and the World Economic Forum in Davos.

As the former Global Head of Cloud, National Security, and Enterprise Sales for companies including Atos, Dell-EMC, and IBM, Matthew has a proven track record of building multi-billion dollar business units and turning failing divisions into market leaders. His ability to identify, analyse, and communicate the implications of hundreds of emerging technologies and trends is unparalleled, and his insights are trusted by many of the world’s most respected organisations, including ABB, Accenture, Adidas, AON, ARM, BCG, Centrica, Citi, Coca-Cola, Dentons, Deloitte, Dow Jones, EY, Google, KPMG, Lego, Legal & General, LinkedIn, Microsoft, PepsiCo, Qualcomm, RWE, Samsung, Siemens AG and Siemens Energy, T-Mobile, UBS, VISA, Walmart, Workday, Worldpay and many others.

Regularly featured in the global media including the AP, BBC, Bloomberg, CNBC, Discovery, Forbes, Khaleej Times, Telegraph, TIME, ViacomCBS, WIRED, and the WSJ, Matthews mission is to help organisations create a fair and sustainable future whose benefits are shared by everyone irrespective of their ability, background, or circumstances.

What future do you need to see?

Choose one to get started on AI and intelligence and the future of your organisation.

Where should Matthew reply?

Takes 30 seconds. No obligation. Matthew replies quickly. Privacy

Tag Cloud

Dossier opens the 311 Starburst dossier for that technology or trend.

Sources and further reading

  1. DeepCoder openreview.net
  2. StackOverflow stackoverflow.com
  3. created a program people.csail.mit.edu

Source: first published by the 311 Institute on 25 February 2017. Cite as: Griffin, M. (2017). Microsoft’s AI has learnt how to write it’s own code and create its own programs. 311 Institute. https://www.311institute.com/microsofts-ai-has-learnt-how-to-write-its-own-code-and-create-its-own-programs/

You are welcome to quote this article with credit and a link to the original.

Book a Keynote