HomeReview
Share

Legacy Code to Be Replaced: Why Shopify's CEO Expects It to Be Rewritten in 6–12 Months

Stepan  Gershuni

Stepan Gershuni

Investor Cyber Fund
Companies around the world are actively rewriting legacy code using AI / Photo: Daniil Komov / Unsplash

Companies around the world are actively rewriting legacy code using AI / Photo: Daniil Komov / Unsplash

Companies around the world are rushing to rewrite outdated code: they’re trying to patch vulnerabilities and prevent hackers from finding them first. According to Shopify CEO Toby Lütke’s forecast, businesses will have to replace the human-written code in their live systems as quickly as possible—they have a maximum of one year to do so. Who will benefit from this effort? Stepan Gershuni, an investor at the Cyber Fund venture capital fund, weighs in.

Code Red Mode

Most companies are currently operating in “Code Red” mode—that is, in a state of emergency—to one degree or another. It’s likely that over the next 6–12 months, “we’ll have to replace all the human-written code currently used in live systems around the world.” This was stated by Shopify CEO Toby Lütke on the Founders podcast with David Senra.

Companies have always rewritten code and will continue to do so because the world is not static. But now this process has accelerated and involves a vast number of companies. It would be no exaggeration to say that most large businesses are currently focused on this task. Microsoft and GitHub, for example, have already announced efforts to update their code, and Siemens has also reported on the modernization of its legacy code. According to a New Relic study, 67% of the tech companies surveyed use AI to generate or substantially rework the majority of the code they produce each week.

The reason is the growing risks in the field of cybersecurity, which are becoming catastrophic. We’ve read about cybersecurity incidents that have affected the U.S. National Security Agency (NSA), the password management service 1Password, and Linux-based systems. All of this shows just how serious the consequences of vulnerabilities can be.

In October, two independent groups of cybersecurity experts discovered a critical vulnerability in PHP, the programming language used by approximately 70% of the world’s websites. Photo: Ben Griffiths / Unsplash.com

Black Cyber October: AI Has Eliminated the Hacker Shortage. How Is the Market Responding?

Such incidents are occurring with increasing frequency, and they pose a growing risk to the real world. The investment firm Citadel Securities views these developments as an accelerating “arms race between attackers and defenders”: Hackers use AI agents to search for vulnerabilities in software, while cybersecurity experts use the same agents to identify and fix those vulnerabilities.

What might the new code of the future look like, and how quickly can it replace the old code? According to Lutke, thanks to AI, companies will be able to create entire codebases practically from scratch using more secure programming languages, such as Rust. This programming language, by the way, is becoming one of the key ones. For example, Microsoft has made it a Tier 1 language for internal development.

The head of Shopify is confident that new software written using AI will be virtually error-free, run many times faster, and even allow older computers to perform complex tasks thanks to more efficient code.

Based on current models, we can confidently say that AI can write better code than any team of humans when comparing cost and quality. No code will ever be perfect—at least not until we have some kind of superintelligence. But the code that AI writes today is better than what 99% of the world’s engineers can produce, and it costs orders of magnitude less.

When it comes to the modernization process, medium-sized companies—with 250 to 1,000 employees—will prove to be more flexible in this situation. They have shorter decision-making chains and find it easier to coordinate different teams, so they have the potential to restructure their systems more quickly. For them, rewriting most of their code within the short timeframe outlined by Lütke is an entirely realistic goal, provided they take a proactive approach to engineering and development. Even a 12-month timeline might be too long.

For large corporations, this is more challenging: the scale of the tasks involved makes a complete overhaul a much longer process. That’s why I think that, for them, restructuring within 6 to 12 months is a rather ambitious goal.

The Paradox of Vulnerability

As a result, AI is able to detect vulnerabilities faster than companies can fix them, thereby increasing the risk of cyberattacks. The scale of the changes is impressive: in the last three months, AI has detected more vulnerabilities than in the previous 35 years. This year, in just two months, Palo Alto Networks’ NOVA system analyzed nearly 4,000 open-source projects and identified more than 14,000 vulnerabilities. Almost all of them (99.4%) were previously unknown, and 40% were rated as high or critical in severity.

I am confident that their number will continue to grow, and in terms of cybersecurity, the next couple of years will be extremely turbulent and risky. This is one of the greatest risks in the world today, made possible by AI.

As a result, growth in demand for AI development and cybersecurity may occur simultaneously.

At the same time, companies' security costs will rise, as this is becoming the greatest risk to their business.

Which companies will be the main beneficiaries? The obvious answer is that the beneficiaries will be companies that develop AI agents for programming and AI models, as well as those that manufacture chips, sell tokens, and build data centers. Companies producing cybersecurity products will also benefit. Examples include Nvidia, Anthropic, energy companies, Crusoe, Fluidstack, ASML, and TSMC. But I think that, ultimately, the end user will be the real beneficiary. If there is more software in the world and it becomes cheaper, the economy will ultimately benefit, as it will no longer have to spend enormous resources on creating and writing software.

This article was AI-translated and verified by a human editor

Share

Trending

Stock Screener
Buy
Sell
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
Small Caps
Investment and Finance News