* Question about C/C++ Safety and Kernel Development
@ 2026-05-05 15:38 juntz
0 siblings, 0 replies; only message in thread
From: juntz @ 2026-05-05 15:38 UTC (permalink / raw)
To: linux-kernel; +Cc: zjttime@163.com
Subject: Question about C/C++ Safety and Kernel Development
Dear Mr. Torvalds,
As an amateur developer who is familiar with C language and C++ syntax, I have always been curious whether C or C++ could one day achieve the safety guarantees that Rust provides.
I have read about the challenges of kernel development and the recent adoption of Rust in certain areas of the Linux kernel. I understand that in 1992, the Linux project attempted to use C++ for kernel development but ultimately abandoned the idea.
I would like to ask: what are the fundamental technical reasons that prevent C++ from being used in Linux kernel development? Is it related to:
- The complexity of the language features?
- Runtime overhead?
- Or other technical constraints?
Additionally, what is your perspective on whether modern C++ (using a restricted subset without exceptions, RTTI, etc.) could potentially be considered for future kernel development?
Thank you for your time and for your immense contributions to the open-source community.
Best regards,
juntz
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-05 15:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 15:38 Question about C/C++ Safety and Kernel Development juntz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox