Fundamentals 6 min read

Why Linus Torvalds Calls C++ a ‘Crap Language’ and Backs Rust for the Linux Kernel

Linus Torvalds, the creator of Linux, publicly denounced C++ as a terrible language while supporting the inclusion of Rust in the kernel, sparking heated debate among developers about language choice, safety, and the future of low‑level system programming.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Why Linus Torvalds Calls C++ a ‘Crap Language’ and Backs Rust for the Linux Kernel

Linus Torvalds has returned with his characteristic bluntness, this time targeting C++ while expressing support for Rust’s inclusion in the Linux kernel.

After a recent RFC to add Rust support was submitted, Linus initially responded cautiously, noting that Rust support would likely not be merged until version 5.14. However, when he saw developers suggesting C++ as an alternative, his temper flared.

He laughed and mocked C++, calling it "a very bad language" and "a piece of trash". Over the past decade, Linus has consistently criticized C++, describing it as useless and harmful compared to C.

He recalled a 2007 incident where a developer complained about the kernel’s pure C code, which Linus dismissed as nonsense. More recently, a comment on Linux Weekly News suggested using C++ instead of Rust, prompting Linus to retort that C++ cannot solve the problems C faces and only makes things worse.

Linus emphasized that while garbage‑collected languages can simplify programming, they are unsuitable for low‑level system work, reinforcing his preference for C and his belief that Rust offers memory safety without the drawbacks of C++.

Community reactions varied: some defended C++ as a powerful language, while others agreed with Linus’s view that each language has its own strengths and limitations.

References:

https://developers.slashdot.org/story/21/04/17/009241/linus-torvalds-says-rust-closer-for-linux-kernel-development-calls-c-a-crap-language#comments

https://lwn.net/Articles/852758/

Compiled by Zheng Liyuan, originally published on CSDN.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

RustCprogramming languagesLinux kernelLinus Torvalds
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.