Scroll Top

The “world’s most dangerous AI” is now helping automate coding



Inventions in one area often get repurposed or re-jigged to help solve problems in another area, and this is a prime example.


Interested in the Exponential Future? Connect, download a free E-Book, watch a keynote, or browse my blog.

Over the past year I’ve discussed a couple of Artificial Intelligence (AI)’s from Google and Microsoft that have started writing their own programs, without the need for human programmers, by scavenging and compiling code from a variety of sources including Github and Stackoverflow. Now, in a new development a team of developers have used one of the world’s most powerful text generators that, when it came out, was described as the “world’s most dangerous AI” because it was so good, called GPT-2 from OpenAI, that you can try for yourself, to create a new program called Deep TabNine that rather than automating human developers like the two aforementioned systems actually helps them and works more like a co-worker.


Junk websites filled with AI generated content are making millions from Programmatic ads


Unlike Google Bayou or Microsoft DeepCoder Deep TabNine is what’s known as a coding auto-completer. Programmers can install it as an add-on in their editor of choice, and when they start writing, it’ll suggest how to continue each line, offering small chunks at a time. Think of it as Gmail’s Smart Compose feature but for code.


Deep TabNine writing Python


Jacob Jackson, the computer science undergrad at the University of Waterloo who created Deep TabNine, says this sort of software isn’t new, but machine learning has hugely improved what it can offer.

“It’s solved a problem for me,” he said.


Deep TabNine writing C++


Jackson started work on the original version of the software, TabNine, in February last year before launching it that November. But earlier this month, he released an updated version that uses a deep learning text-generation algorithm called GPT-2, which was designed by the research lab OpenAI, to dramatically improve its abilities – and the results have been impressive. The update has seriously impressed coders, who have called it “amazing,” “insane,” and “absolutely mind-blowing” on Twitter.


Future wearables will be powered by your skin


One user, Franck Nijhof, an IT manager who works on open-source home automation software in his spare time, says he wasn’t just surprised by Deep TabNine — he was scared, in a pleasant fashion.

“The first hour I used Deep TabNine was not helpful [because] I was continuously stopped by amazement trying to wrap my head around it,” said Nijhof.

He kept asking himself, “How does it know that? But how?”

Autocompletion tools like this aren’t new, but Nijhof says Deep TabNine’s suggestions are just much more accurate.

“I’ve tried some smart ‘universal’ ones in the past, but they were annoying and not helpful,” he says. “TabNine is undoubtedly a game-changer.”


The worlds first virtual CEO takes the reigns at a Chinese gaming company


The software offers better suggestions because it works on a predictive basis, says Jackson. Most auto-completers have to parse what the user has already written to make suggestions, working through their code like you would work through the steps in a mathematical formula. Deep TabNine, by comparison, relies on the ability of machine learning to find statistical patterns in data to make its predictions.

In the same way that text generation algorithms are trained on huge datasets of books, articles, and movie scripts, Deep TabNine is trained on 2 million files from coding repository GitHub. It finds patterns in this data and uses them to suggest what’s likely to appear next in any given line of code, whether that’s a variable name or a function.

Using deep learning to create autocompletion software offers several advantages, says Jackson. It makes it easy to add support for new languages, for a start. You only need to drop more training data into Deep TabNine’s hopper, and it’ll dig out patterns, he says. This means that Deep TabNine supports some 22 different coding languages while most alternatives just work with one.


New smartphone ultrasound fingerprint sensor really gets under your skin


The full list of languages Deep TabNine supports are as follows: Python, JavaScript, Java, C++, C, PHP, Go, C#, Ruby, Objective-C, Rust, Swift, TypeScript, Haskell, OCaml, Scala, Kotlin, Perl, SQL, HTML, CSS, and Bash.

Most importantly, thanks to the analytical abilities of deep learning, the suggestions Deep TabNine makes are of a high overall quality. And because the software doesn’t look at users’ own code to make suggestions, it can start helping with projects right from the word go, rather than waiting to get some cues from the code the user writes.

The software isn’t perfect, of course. It makes mistakes in its suggestions and isn’t useful for all types of coding. Users on various programming hang-outs like Hacker News and the r/programming subreddit have debated its merits and offered some mixed reviews, although they mostly skew positive. As you’d expect from a coding tool built for coders, people have a lot to say about how exactly it works with their existing editors and workflow.


World first as surgeons use a robot to operate inside the eye


One complaint that Jackson agrees is legitimate is that Deep TabNine is more suited to certain types of coding. It works best when autocompleting relatively rote code, the sort of programming that’s been done thousands of times with small variations. It’s less able to write exploratory code, where the user is solving a novel problem. That makes sense considering that the software’s smarts come from patterns found in archival data.

So how useful is it really for your average coder? That’ll depend on a whole lot of factors, like what programming language they use and what they’re trying to achieve. But Jackson says it’s more like a faster input method than a human coding partner which is a common practice known as pair programming.

“Imagine all programmers right now are using the equivalent of mobile phone keyboards to type, and going to Deep TabNine is sort of like moving to a regular keyboard,” he says. The software improves how quickly you can input information, and that makes you more productive “because you can spend more time thinking about the high level stuff rather than the detail.” But it won’t write your code for you, and you do need to keep an eye on it.


Researchers find a new way to train AI's to protect them from deadly adversarial attacks


Currently, Jackson is considering what to do next with the software and whether it’s worth commercializing as a career. He says he has a full-time job lined up with a big tech company that he doesn’t want to give up on, but there’s been “a lot of interest” from various sectors.

“I haven’t really decided what I want to do with it yet,” he says.

Right now, a license for TabNine costs $49 for personal use and $99 for business use, with individuals having to sign up for the Deep TabNine beta to get access to the new deep learning features. On the website, Jackson justifies the price like this, which acts as a decent summary of the software’s attraction:

“TabNine will save you at least 1 second per minute. If you value your time above $1.40/hour, it will pay for itself in less than a year.”


Clone's robotic hand gets deep into uncanny valley


He says that if he was able to create a program like this using open-source software, then the future is bright for AI-assisted coding.

“It’s the goal of everyone working in this space to tell the computer what code you want to write and it does it for you,” he says. “We’re nowhere close to that at the moment, but I see this as a tool that makes it a little more convenient for you to express your thoughts.”

However, at some point we will get to the point where AI’s like those from Google and Microsoft will be able to create applications based on just voice based descriptions from users, and that, again, will be another game changer so watch out for that emerging in the next five years as DeepCoder and Bayou develop quickly in their own rights. But for now Deep TabNine is a great improvement on pair programming.

Related Posts

Comments (1)

[…] the internet about learning a computer science language is that it can eventually become obsolete. Even today, there is a powerful new Artificial Intelligence program called Deep TabNine that is used as a […]

Leave a comment


1000's of articles about the exponential future, 1000's of pages of insights, 1000's of videos, and 100's of exponential technologies: Get The Email from 311, your no-nonsense briefing on all the biggest stories in exponential technology and science.

You have Successfully Subscribed!

Pin It on Pinterest

Share This