AI can now write its own computer code

AI can now write its own computer code

After several weeks working with the new technology, programmer Tom Smith believes it poses no threat to professional coders.

(NYTIMES) As soon as programmer Tom Smith got his hands on Codex – a new artificial intelligence (AI) technology that writes its own computer programs – he gave it a job interview.

He asked if it could tackle the “coding challenges” that programmers often face when interviewing for big-money jobs at Silicon Valley companies like Google and Facebook.

Could it write a program that replaces all the spaces in a sentence with dashes? Even better, could it write one that identifies invalid postal codes?

It did both instantly, before completing several other tasks.

“These are problems that would be tough for a lot of humans to solve, myself included, and it would type out the response in two seconds,” said Mr Smith, a seasoned programmer who oversees an AI start-up called Gado Images.

“It was spooky to watch.”

Codex seemed like a technology that would soon replace human workers.

As Mr Smith continued testing the system, he realised that its skills extended well beyond a knack for answering canned interview questions. It could even translate from one programming language to another.

Yet after several weeks working with this new technology, he believes it poses no threat to professional coders.

In fact, like many other experts, he sees it as a tool that will end up boosting human productivity. It may even help a whole new generation of people learn the art of computers, by showing them how to write simple pieces of code, almost like a personal tutor.

“This is a tool that can make a coder’s life a lot easier,” Mr Smith said.

AI can now write its own computer code

Programmer Tom Smith gave Codex a job interview. PHOTO: NYTIMES

Codex, built by OpenAI, one of the world’s most ambitious research labs, provides insight into the state of AI.

Although a wide range of AI technologies has improved by leaps and bounds over the past decade, even the most impressive systems have ended up complementing human workers rather than replacing them.

Thanks to the rapid rise of a mathematical system called a neural network, machines can now learn certain skills by analysing vast amounts of data. By analysing thousands of cat photos, for example, they can learn to recognise a cat.

This is the technology that recognises the commands you speak into your iPhone, translates between languages on services like Skype and identifies pedestrians and street signs as self-driving cars speed down the road.

About four years ago, researchers at labs like OpenAI started designing neural networks that analysed enormous amounts of prose, including thousands of digital books, Wikipedia articles and all sorts of other text posted to the Internet. By pinpointing patterns in all that text, the networks learnt to predict the next word in a sequence.

When someone typed a few words into these “universal language models”, they could complete the thought with entire paragraphs.

In this way, one system – an OpenAI creation called GPT-3 – could write its own Twitter posts, speeches, poetry and news articles. Much to the surprise of even the researchers who built the system, it could even write its own computer programs, though they were short and simple. Apparently, it had learnt from an untold number of programs posted to the Internet.

So OpenAI went a step further, training a new system – Codex – on an enormous array of both prose and code. The result is a system that understands both prose and code – to a point.

You can ask, in plain English, for snow falling on a black background, and it will give you code that creates a virtual snowstorm. If you ask for a blue bouncing ball, it will give you that, too.

“You can tell it to do something, and it will do it,” said Ms Ania Kubow, another programmer who has used the technology.

Codex can generate programs in 12 computer languages and even translate between them. But it often makes mistakes, and though its skills are impressive, it cannot reason like a human. It can recognise or mimic what it has seen in the past, but it is not nimble enough to think on its own.

Sometimes, the programs generated by Codex do not run. Or they contain security flaws. Or they come nowhere close to what you want them to do. OpenAI estimates that Codex produces the right code 37 per cent of the time.

When Mr Smith used the system as part of a “beta” test program this summer, the code it produced was impressive. But sometimes, it worked only if he made a tiny change, like tweaking a command to suit his particular software set-up or adding a digital code needed for access to the Internet service it was trying to query.

In other words, Codex was truly useful only to an experienced programmer. But it could help programmers do their everyday work a lot faster. It could help them find the basic building blocks they needed or point them towards new ideas.

Using the technology, GitHub, a popular online service for programmers, now offers Copilot, a tool that suggests your next line of code, much the way “autocomplete” tools suggest the next word when you type texts or e-mails.

“It is a way of getting code written without having to write as much code,” said Mr Jeremy Howard, who founded the artificial intelligence lab Fast.ai and helped create the language technology that OpenAI’s work is based on.

“It is not always correct, but it is just close enough.”

Mr Howard and others believe Codex could also help novices learn to code. It is particularly good at generating simple programs from brief English descriptions. And it works in the other direction, too, by explaining complex code in plain English.

Some, including Mr Joel Hellermark, an entrepreneur in Sweden, are already trying to transform the system into a teaching tool.

Said Mr Smith: “We thought these tools were going to completely remove the need for humans, but what we learnt after many years was that this wasn’t really possible; you still needed a skilled human to review the output.

“The technology gets things wrong. And it can be biased. You still need a person to review what it has done and decide what is good and what is not.”

Codex extends what a machine can do, but it is another indication that the technology works best with humans at the controls.

“AI is not playing out like anyone expected,” said Mr Greg Brockman, chief technology officer of OpenAI. “It felt like it was going to do this job and that job, and everyone was trying to figure out which one would go first. Instead, it is replacing no jobs. But it is taking away the drudge work from all of them at once.”

Internet Explorer Channel Network
News Related

OTHER NEWS

Google's 'FrightGeist' lists the most popular 2021 Halloween costumes. Is yours one of them?

Worried about someone having the same costume as you at the Halloween party you are going to? Google may be able to help you. With COVID-19 cases down compared to ... Read more »

MacBook Air (2020) vs MacBook Pro (2020) which is the best for you?

When it comes to the Apple MacBook Air (2020) vs MacBook Pro (2020) in the battle for the M1 crown, it’s really going to come down to whether you’re looking ... Read more »

GameStop PS5 restock in-store event on Friday – all 225 stores and times listed

There’s another GameStop PS5 restock in-store event in the US, and the official date is Friday, October 29. This is your chance to buy the Sony PlayStation 5 console, if ... Read more »

Tech hub Shenzhen calls off new trade shows in city amid rising Covid-19 infections in other parts of China

Shenzhen, the southern tech hub known as China’s Silicon Valley, has either postponed or cancelled a number of trade fairs and exhibitions that the city was expected to host this ... Read more »

Saints vs Seahawks live stream: how to watch NFL Monday Night Football online anywhere

Geno Smith isn’t exactly getting an easy time of it on his return to NFL action. First the Rams, then the Steelers, and now a well-rested Saints team coming off ... Read more »

Facebook profits top $9bn despite facing recent whistleblower revelations

© Provided by The Guardian Photograph: Jenny Kane/AP Facebook’s profits topped $9bn during its most recent financial quarter, clearing investor predictions even as the company faces an onslaught of negative ... Read more »

Zoom free users are getting this super helpful feature at last

Zoom has announced that it will bring a popular feature from the paid version of its video conferencing software to all of its free users in an effort to make ... Read more »

10 super spooky horror games to play this Halloween

— Recommendations are independently chosen by Reviewed’s editors. Purchases you make through our links may earn us a commission. While nothing is stopping you from playing horror games at any ... Read more »

France plans 'go slow' strategy on British lorries in retaliation over fishing row

Lorries – Paul Grover for the Telegraph France is preparing to implement a go-slow strategy for customs checks on shipments to and from Britain ahead of Christmas in an escalation ... Read more »

Katharine Hayhoe, The Nature Conservancy and Christian Braneon, NASA GISS, on Yahoo Finance's AMS 2021

Understanding climate change and its effects, with Katharine Hayhoe The Nature Conservancy Chief Scientist & Christian Braneon NASA Goddard Institute for Space Studies Columbia University Climate School Read more »

Intel CEO: My job is to win Apple back

Intel CEO Pat Gelsinger says the ball is in the chip giant's court to win back lost business from the Mac making Apple. “My job is to win them [Apple] ... Read more »

Facebook whistleblower tells UK lawmakers until 'incentives change,' the company won't

Facebook whistleblower Frances Haugen, weeks after testifying before Congress, on Monday delivered to members of the British Parliament a similar message : The social network giant has cultivated a platform ... Read more »

Closing the gap between understanding climate change and fixing it

In an interview with Yahoo Finance’s Rick Newman, Katharine Hayhoe The Nature Conservancy Chief Scientist & Christian Braneon NASA Goddard Institute for Space Studies Columbia University Climate School discuss how ... Read more »

Giovanni Pernice denies ‘wrongdoing' after reported split from Maura Higgins

Strictly Come Dancing star Giovanni Pernice has denied that “wrongdoing” led to his recent breakup following his reported split from Maura Higgins. The professional dancer was reported to have split ... Read more »

Shiloh Jolie-Pitt's Yellow Leopard Sneakers Make Headlines - Here's Where They're From

Angelina Jolie may be dropping jaws left and right, wearing beautiful gowns by Atelier Versace, Balmain, and Ralph Lauren on the Eternals red carpets, but her daughters are making sustainable ... Read more »

Judi Love says 'Strictly' fitness is helping her cope with COVID

Judi Love says her Strictly fitness is helping her fight COVID. (BBC/Guy Levy) Judi Love has said she is thankful for having got fit through training for Strictly Come Dancing ... Read more »

So it turns out the MacBook Pro's M1 Max isn't a gaming chip, does it matter?

The M1 Max was announced, along with the new MacBook Pro computers, about a week ago. I was pretty impressed by it on paper, but now performance information is starting ... Read more »

Shop the Allswell Friends and Family sale for dreamy discounts on luxury mattresses and more

— Recommendations are independently chosen by Reviewed’s editors. Purchases you make through our links may earn us a commission. While the holidays may be the most wonderful time of the ... Read more »

The best city building games to rule the urban jungle

The best city building games give you power. Like, a lot of power. All the power, sometimes. And, depending on your own sensibilities, sometimes too much power. Which is to ... Read more »

Oakley vs. 3M: How does a $100+ and a $10 pair of safety glasses compare?

— Recommendations are independently chosen by Reviewed’s editors. Purchases you make through our links may earn us a commission. A good pair of safety glasses is one of the most ... Read more »

We might have just seen our first exoplanet in another galaxy

Astronomers at the Chandra X-ray Observatory just announced that they might have identified an exoplanet in another galaxy for the first time ever. The possible exoplanet candidate was spotted in ... Read more »

No one is coming to save our graphics cards from the cryptomines

There are a lot of reasons why the best graphics cards are nearly impossible to find right now. There’s the issue of the ongoing chip shortage, a broader supply chain ... Read more »

Ransomware cyber attacks double in a year, reveals spy chief

Increasing numbers of people are being held to ransom by cyber attackers – Peter Byrne/PA Wire Cyber attacks doubled in the last year, the chief of GCHQ has revealed – ... Read more »

Why the Musk vs. Bezos space feud is probably fake

Flick through a news feed on your phone and you are likely to scroll across an article of the new space race. Forget the geopolitical struggles of a cold war. ... Read more »

Sony WF-1000XM3 Wireless Earbuds

The Sony WF-1000XM3 True Wireless headphones have a lot to live up to: Launched as part of the brand’s lauded 1000X family of noise-cancelling headphones – that includes the award-winning ... Read more »

Best iPad deals 2021: cheapest iPad Air, iPad Pro and iPad Mini prices

Apple’s iPads are some of the best tablets around. And with a range of models at various price points, there’s something for everyone. Here we’ve rounded up the best iPad ... Read more »

2 border agents are fired for offensive Facebook posts

Two Border Patrol agents were fired from among 60 found to have committed misconduct for participating in a private Facebook group that mocked migrants and lawmakers, investigators said Monday in ... Read more »

Leaker of 178m Facebook profiles facing massive lawsuit

Facebook is suing a Ukrainian national for violating the terms of service of its social network after he allegedly harvested the data of 178m users and sold it online on ... Read more »

Intel might have spoiled its Arc Alchemist GPU pricing months before launch

While not much is officially known about Intel’s upcoming Arc Alchemist graphics card, the terms and conditions of its recent competition event might clue us in to the GPU’s price. ... Read more »

Speaker says ministers should resign for pre-Budget briefings on spending

(PA) Sir Lindsay Hoyle has suggested ministers should resign for pre-briefing details of the Budget, as he said it was unacceptable for the government to “try to run roughshod” over ... Read more »

Candace Owens slammed for calling accidental Alec Baldwin shooting ‘poetic justice'

Rightwing pundit Candace Owens provoked a furious response on social media for taking “perverse pleasure” in Alec Baldwin’s accidental shooting on the set of Rust. Ms Owens wrote in a ... Read more »

Princess Beatrice's Husband Edoardo Shares Photo with His Son (a New Big Brother!) in Greece

Edoardo Mapelli Mozzi Edoardo Mapelli Mozzi/ instagram Edoardo Mapelli Mozzi and his son, Wolfie Edoardo Mapelli Mozzi made the most of his trip to Greece. Princess Beatrice's husband shared a ... Read more »

Updated daily: Here are the 5 best Amazon deals today in October 2021

— Recommendations are independently chosen by Reviewed’s editors. Purchases you make through our links may earn us a commission. Every day, we scour Amazon to find the best deals available. ... Read more »

Top South Korean telecom operator hit by large-scale cyberattack

KT Corp, a major South Korean telecom operator, said on Monday it detected distributed denial-of-service (DDoS) attacks on its network, causing a disruption in major services nationwide.Customers using KT network ... Read more »

Get your credit card points in Bitcoin: Mastercard to integrate crypto into its platforms

Mastercard is planning on integrating Bitcoin and other cryptocurrencies into its payments and banking platforms. Traditionally, banks give out points to customers which could be redeemed for rewards such as ... Read more »

The Mystery Behind a Nearby Alien Beacon Is Solved

Photo Illustration by Elizabeth Brockway/The Daily Beast/Getty Back in April 2019, an Australian telescope picked up a very tantalizing radio signal that seemed to emanate from our closest neighboring star. ... Read more »

MacOS Monterey: Apple releases new operating system for computers and makes it available to download now

© Getty Images macmini.jpg Apple has released Monterey, the latest version of MacOS. The new software comes with a range of features, many of which have already been seen in ... Read more »

Facebook Q3 earnings: Investors eye fallout from whistleblower, Apple privacy changes

Facebook will report its third quarter earnings after the bell on Monday, as the company grapples with a new avalanche of stories resulting from a , and the ripple effect ... Read more »

NYT reporter says hackers used a 'zero-click' tool to get inside his phone: 'It's like being robbed by a ghost'

Getty Images Hackers targeted the iPhone of NYT reporter Ben Hubbard four times in three years. Cybersecurity researchers found that a government-surveillance software was likely used. Governments sometimes use anti-terrorism ... Read more »

Black Friday at Best Buy - here are the 9 best early deals

Hot off the heels of last week’s selection of offers, an early Black Friday event is now underway at Best Buy. It’s yet another barrage of discounted tech, with TVs, ... Read more »
On free-english-test.com you will find lots of free English exam practice materials to help you improve your English skills: grammar, listening, reading, writing, ielts, toeic