Linus Torvalds Slams Google RISC-V Code as ‘Garbage,’ Citing Detrimental Impact and Late Submissions

In a development that has sent ripples through the open-source community, Linus Torvalds, the acclaimed creator of the Linux kernel, has publicly and unequivocally criticized a RISC-V code contribution submitted by a Google engineer. Torvalds’ assessment was stark and unforgiving, labeling the code as “garbage” and asserting that such contributions “make the world actively a worse place to live.” This strong denouncement, coupled with a separate admonishment for the developer’s late submission of code, paints a picture of frustration within the kernel development community regarding the quality and timeliness of external contributions.

The Scathing Critique of RISC-V Code Quality

The controversy centers around a specific code patch intended for the Linux kernel, which aimed to enhance support for the RISC-V architecture. RISC-V, an open-standard Instruction Set Architecture (ISA), has been gaining significant traction as a viable alternative to established architectures like ARM and x86, promising greater customization and openness. However, according to Linus Torvalds, this particular contribution from a Google engineer fell far short of the rigorous standards expected for inclusion in the Linux kernel.

“Garbage” Code: A Deeper Look at the Technical Deficiencies

When Torvalds labels code as “garbage,” it is not a mere expression of personal opinion but a reflection of fundamental technical flaws that could jeopardize the stability, performance, or maintainability of the Linux kernel. While the specifics of the “garbage” code have not been exhaustively detailed in the public discourse, the implications are clear. Such a designation typically points to a multitude of potential issues, including:

The severity of Torvalds’ “garbage” assessment suggests that the submitted code likely suffered from several of these deficiencies. The fact that it originated from a Google engineer, a company with significant resources and a vested interest in open-source technologies, adds another layer of complexity to the situation. It raises questions about the internal review processes and quality assurance measures at Google for their open-source contributions.

“Making the World Actively a Worse Place to Live”: The Broader Impact

Torvalds’ assertion that such code “makes the world actively a worse place to live” transcends a simple technical rejection. It speaks to a broader concern about the impact of low-quality contributions on the open-source ecosystem. When developers, especially those from large tech companies, submit code that is not up to par, it has several negative consequences:

Torvalds’ strong statement serves as a stark warning to all developers and organizations contributing to open-source projects, particularly to critical infrastructure like the Linux kernel. It underscores the importance of diligence, craftsmanship, and a deep understanding of the project’s goals and standards.

The Issue of Late Submissions: A Pattern of Concern

Beyond the technical critique, Torvalds also called out the Google engineer for late submissions. This suggests that the quality issues might be compounded by a lack of timeliness, a factor that is equally crucial in the fast-paced world of kernel development.

Timeliness in Kernel Development: More Than Just Punctuality

In the context of the Linux kernel, timely submissions are not merely about adhering to arbitrary deadlines. They are intrinsically linked to the development lifecycle and the ability to plan and execute major releases. Late submissions can:

Torvalds’ dual criticism – for both the quality and the timeliness of the code – highlights a potential disconnect between the expectations of kernel maintainers and the delivery from certain external contributors. This situation underscores the paramount importance of adhering to established workflows and delivering high-quality work within expected timelines.

Implications for RISC-V and Google’s Role in Open Source

The public denouncement by Linus Torvalds carries significant weight, particularly concerning the advancement of RISC-V and Google’s engagement with open-source development.

The RISC-V Ecosystem: A Call for Higher Standards

RISC-V’s promise of openness and flexibility is attracting a growing number of developers and organizations. For RISC-V to truly flourish and gain widespread adoption, particularly within critical software like operating system kernels, the quality of its software ecosystem is paramount. Torvalds’ criticism, while directed at a specific contribution, serves as a gentle but firm reminder to the entire RISC-V community to uphold rigorous development standards.

Google’s Open-Source Contributions: A Responsibility to Maintain Quality

Google is a major player in the open-source world, contributing significantly to projects like Android, Kubernetes, and indeed, the Linux kernel. While their contributions are generally valued, incidents like this raise important questions about internal quality control and the depth of understanding of specific project nuances.

The Path Forward: Upholding Excellence in Open-Source Development

Linus Torvalds’ vocal criticism of the Google engineer’s RISC-V code and late submissions serves as a critical juncture, prompting reflection and action within the open-source community. The message is clear: excellence in code quality and punctuality are non-negotiable for contributions to projects as foundational as the Linux kernel.

Key Takeaways for Developers and Organizations

This incident offers valuable lessons for all individuals and organizations involved in open-source development:

The Linux kernel, a testament to collaborative development and meticulous engineering, has been built on a foundation of high standards. The ongoing development and integration of new architectures like RISC-V require an even greater commitment to these principles. By upholding the tenets of quality, collaboration, and timely execution, the open-source community can continue to foster innovation and build a robust digital future for everyone. The strong stance taken by Linus Torvalds, while perhaps jarring, ultimately serves to reinforce the integrity and excellence that have made the Linux kernel a cornerstone of modern computing.