When Google's Peter Norvig looked at code written by an AI called AlphaCode, he didn't hold back. See his surprising review.
Imagine a computer program that can write computer code. Not just any code, but code good enough to compete in programming contests. That's what AlphaCode promised. It was a big step for artificial intelligence. But how good was the code, really?
To find out, a very smart person decided to take a close look. This wasn't just anyone. It was Peter Norvig, a big name in AI and computer science, known for his work at Google. He decided to review the code AlphaCode produced. What he found might surprise you.
The
Promise of AI-Written Code
AlphaCode was built by a company called DeepMind. Their goal was to create AI that could solve complex problems. Programming is a complex problem. Think about it, writing code is like giving a computer very specific instructions to do a task. It needs logic, creativity, and a deep understanding of how computers work.
DeepMind showed that AlphaCode could write code that performed well in contests. It even beat a good portion of human competitors. This made a lot of people think about the future. Could AI soon be writing all our software? Would human programmers still be needed?
These questions are important. They touch on how we see intelligence and creativity. Can a machine truly be creative like a human? Or is it just following complex patterns it learned?
A Closer Look by a Coding Master
Peter Norvig is famous for his clear thinking and deep knowledge of programming. He is a director at Google and has written important books on artificial intelligence. When he reviews something, people listen. He doesn't just look at the surface. He digs deep into the details.
Norvig decided to examine the code AlphaCode generated for a specific programming challenge. This wasn't a simple task. It involved creating a solution to a problem that required careful thought and a good plan. He wanted to see if the AI's code was just functional or if it was well-designed.
His review was shared online, allowing anyone interested to see his thoughts. It offered a chance for experts and beginners alike to understand the real quality of AI-generated code.
What Norvig
Found in the Code
Norvig's review wasn't just a simple thumbs up or thumbs down. He broke down the code piece by piece. He looked at how it was structured, how it handled different situations, and if it was easy to understand. He pointed out both the good parts and the areas that needed improvement.
One of the main things he noticed was that the code, while working, often lacked the elegance and clarity that a human programmer would aim for. It was like a machine built something functional, but didn't make it pretty or easy to fix later.
He highlighted that the AI seemed to produce code that was correct but not necessarily optimal. This means it did the job, but maybe not in the smartest or most efficient way possible. It's a key difference between just working and being truly good code.
The
Problem of Readability
For any programmer, reading and understanding code written by others is a huge part of the job. If code is messy or confusing, it's hard to fix bugs or add new features. Norvig pointed out that AlphaCode's output often struggled with this.
He found that the code could be difficult to follow. It sometimes used strange ways to solve problems. This is common when AI is learning. It might find a path that works, but it's not a path a human would naturally take or easily understand.
"The code is often hard to read, and it's not clear why it was written that way."
This observation is critical. It suggests that while AI can generate solutions, it doesn't yet grasp the human element of programming. This includes clear communication through code, which is vital for teamwork and long-term projects.
Efficiency and Cleverness Concerns
Beyond just being readable, good code is also efficient. It uses resources like computer memory and processing power wisely. Norvig's analysis suggested that AlphaCode's solutions weren't always the most efficient. They worked, but they might have been slower or used more power than necessary.
He also noted a lack of what programmers call 'cleverness'. This doesn't mean tricks. It means finding smart, often simple, ways to solve a problem that show a deep understanding. AI, at this stage, seemed to be more about brute force , trying many options until one works , rather than insightful design.
Norvig explained that the AI's process might involve generating many possible solutions and then picking one that passes tests. This is different from a human programmer who might think deeply about the best approach from the start.
What This Means for the
Future of AI Coding
Peter Norvig's review of AlphaCode's code is a valuable reality check. It shows that while AI is making incredible progress in writing code, there are still significant gaps. The AI can perform tasks, but it doesn't yet write code with the same human qualities of clarity, elegance, and deep understanding.
This doesn't mean AI won't be a huge part of coding in the future. It likely will be. AI tools can help programmers by suggesting code, finding bugs, and automating repetitive tasks. They can act as powerful assistants.
However, Norvig's analysis suggests that the human programmer's role is far from over. Skills like critical thinking, problem-solving creativity, and the ability to write clear, maintainable code will remain essential. The best results might come from humans and AI working together.
It’s a reminder that technology is a tool. How we use it, and what we expect from it, shapes its impact. For now, AI can write code, but it seems it still has a lot to learn about writing it well, in a way humans can truly appreciate and build upon.