Bonum Certa Men Certa

Brian Kernighan, "Only Third to Dennis Richie and Ken Thompson" (UNIX), Agreed With Someone Who Said Rust Was Just Hype, Should Not Replace C

posted by Roy Schestowitz on Sep 05, 2025,
updated Sep 05, 2025

17 hours ago:

Brian Kernighan on Rust

Brian Kernighan on Rust

Brian Kernighan on Rust

Brian Kernighan, a Canadian, knows a thing or two about programming and programming languages. He has seen them all (not literally) and can assess, compare, etc.

What he said about Rust matters. Some people document this. This recently become a debated topic.

Earlier this month Bruce Perens also wrote about Rust: (responding to someone who had brought up the topic in dyne.org)

Hi Davide,

My understanding was that the community "mrustc" project was a C++ implementation of early Rust that could compile early Rust compiler versions which could be used to bootstrap up to the current Rust toolchain.
Obviously the chicken-and-egg problem is a serious one. The Guix distribution has gotten the farthest, in that they can bootstrap the entire distribution from a 357-byte binary on X86.
I think the best solution would not be to eschew Rust, but to solve its problems to the best of our ability, since Rust represents a lot of advancements in security, re-entrancy, and enforcement of software correctness; over C/C++.
BSD licensing is not really an issue, IMO, but we must be aware that the GPL has aged and we are being even more abused since the advent of AI trained on Open Source. My work on Post Open is meant to address this and other issues and I have a new version of licenses coming soon, merging lawyer reviews.
IMO the best solution might be to bootstrap Rust from a highly-verified build of the compiler targeting Webassembly. This could be made to work in most places. But let's not kid ourselves: many software programs we now depend upon are larger than it is possible for any single human to fully understand. There doesn't seem to be any possibility of solving this problem in the near future.
We also need to be aware that Linux, based on the now 55-year-old Unix paradigm, and Multics before that, is also aged, and that newer kernels are in our future. Redox, a microkernel OS written in Rust, also follows the Unix paradigm but might be a starting point. A truly modern OS would not provide any synchronous I/O primitives, and there are other advancements I could suggest.
Thanks
Bruce

He also wrote:

On Mon, Sep 1, 2025 at 4:22 PM David Niklas via Dng <dng@???>
wrote:

> Why not use Python, Ruby, Pascal, SH, etc., in the Linux kernel if you > want memory safety? >
I'm afraid you are missing really critical points about what makes a language suitable for kernel development. The most important is the ability to deal directly and efficiently with memory-mapped hardware. You need to catch up upon this before seriously joining this sort of discussion.
Pascal has been the #1 recommended replacement for C/C++ code for years > before rust showed up?
Perhaps Oberon, the last in the Wirthian family of languages, since he did write an OS in it.
> We've had options to help with C code guys!
This is another catch-up point for you. We've had various approaches to memory safety, and I count my Electric Fence as the very first, although only suitable for debugging. But they are band-aids to a 1970's language that is close to being a hardware-independent assembly language, rather than something with support for what we have learned about programming in 55 years. C++ adds object orientation and generics, but not as nicely as later languages, and does _nothing_ about safety, while that is Rust's major concern.
C is simply not capable of enforcing memory safety, re-entrancy, and object lifetimes without adding so much to the language that it would become Rust, or at least Zig. More knowledge of these things is necessary before you should really have an opinion about the appropriate languages for kernel programming.
In fact, Linus Torvalds himself said he did not want object oriented C++ > code in the Linux Kernel.
The reasons were that C++ did not add much value to kernel programming, and many of its library constructs were better suited to application programming than embedded, real-time, or kernel because they made frequent and essentially unbounded use of dynamically-allocated memory. In contrast, Rust is a systems programming language and has had a lot of attention to running small, embedded, and bare-metal environments as _well_ as higher-level applications.
-- Bruce Perens K6BP

This message by David Niklas also brings up another elephant in the room:

I share your concerns, especially because as Linux moves from a user
developed and maintained set of code-bases to a corporate developed and
maintained set of code-bases. Rust, as you may recall, is a Mozilla
foundation.

I have some ideas for how to solve this problem, but they'll probably have to wait until we solve the problem of corporate controlled firmware that is totally insecure (in the sense that it's never been audited), is able to access the internet without permission, and, in some cases, doesn't allow Linux to boot. Although Intel's IME counts, I'm more concerned about Microsloth's Pluton.
> While I share some of our concerns, I have to say that if you had more > knowledge of computer science, you could not do other than welcome Rust > as a huge advance on C. It is not ideal, but there is a reason that it > has been accepted into the kernel.
I've read this sort of thing over and over again ad infinitum. Why not use Python, Ruby, Pascal, SH, etc., in the Linux kernel if you want memory safety?
No one ever did a review of the various languages available, even rust's author, and demonstrated that rust is, overall, the best replacement for C out there. Did you not know that Pascal has been the #1 recommended replacement for C/C++ code for years before rust showed up? There's a whole C string library out there licensed CC0 and no project ever used it! We've had options to help with C code guys!
In fact, Linus Torvalds himself said he did not want object oriented C++ code in the Linux Kernel. Now we're doing OO with rust! Why not let C++ in then!? We have the STL, so no need to complain about C++ oddities of the past, and we have libgc, so there's little need to complain about memory leaks either.
The reason is all too simple, corporations, including Mozilla foundation, wanted rust code in stuff, so they're pushing for it, and, for whatever reason, Linus has surrendered in this and many other social/corporate matters.
IDK what these big corporations intend, but this whole thing reeks of the old EEE (Embrace, Extend, Extinguish,) campaign. Once they control the major code bases and have displaced most of the freelance devs, we'll be at their mercy. A great way to do this is to increase code complexity, by using tighter SW coupling, systemd, and using more programming languages in projects, rust (and thus requiring rewriting the old, known good, code in the process).
David

Regarding Perens, remember that he objected to a number of things Debian did in recent years, in effect "going with the flow" of Red Hat.

He later wrote: "Can we start moderating this list for a while? This discussion doesn't carry DNG forward, the people pushing it are not cognizant of basic points of computer languages, issues of software licensing, and it's just noise distracting the people who are doing useful work." (Also repeated a similar point)

Censoring some critics would be the sort of thing Rust does a lot in Reddit and GitHub (the sites to which it outsources discussions).

Some people brought up the licence and he said: "Anyone who feels that the GPL is a barrier to their selling their own software, etc. needs to first explain MySQL, Artifex, Alladin Enterprises, and for that matter, Red Hat and its ilk."

"I'm disappointed with Bruce accepting Rust politics," said an associate (who had also claimed "Rust == politics, not code"), "and not mentioning the performance hit that comes with Rust, along with it not actually solving so many memory problems."

"However, his other points about the need for modernization seem to have merit. It's just that old Linux has become such a juggernaut that it'd be *very* hard to bootstrap a new kernel. Microsoft already makes it hard for even Linux to exist. Hurd is finally maturing but odds are low of device driver support. Did Linus ever admit to the superiority of microkernels? I think that's one of the things Bruce is getting at," the associate added.

There's lots more in that discussion thread. Those are GAFAM sceptics who wish to avoid Microsoft/IBM systemd.

Concern about Rust adoption in the Linux kernel

Other Recent Techrights' Posts

Dr. Andy Farnell Blasts Misuse of the Term "AI" to Describe Plagiarism, Plunder, and Misinformation
Dr. Stallman wrote about it back in the early 1980s
A Sign of Progress?
We'll solve war hunger and colonise Mars soon, according to men who never graduated from College
The Slop Delusion: This Morning We Broke Story on Red Hat Layoffs in Two Posts, Google is Already Plagiarising Them With Slop and Getting the Basic Facts Wrong
Google does not have "AI"; it has slop, which means it scrapes other people's work, then imitates it poorly
April 15: Richard Stallman to Speak at the University of Texas in Austin, Texas
Next Wednesday in the afternoon Dr. Stallman will speak in a US college for the second time this year and for the second time in nearly 8 years
 
SLAPP Censorship - Part 41 Out of 200: More Misuse of UK-GDPR (for US Citizens), More Copy-Pasting for Garrett and Graveley, Alleging That Publishing Unflattering Information is a 'Privacy' Issue
No wonder his own colleagues thought poorly of him (the junior barrister)
Links 10/04/2026: Pseudoscience and "Amazon Pulls Support for Perfectly Fine Older Kindles" and More Attacks on American Journalism
Links for the day
"IBM is Constantly Laying Off People" (Not Just in Red Hat)
IBM as a company is collapsing
Many Layoffs at IBM Red Hat, as the Rumours Said
Red Hat mass layoffs [...] "this was a difficult decision to make."
Microsoft, Drowning in Net Debt, Will Make Many More Cuts
The company is a net negative to society
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Thursday, April 09, 2026
IRC logs for Thursday, April 09, 2026
Gemini Links 10/04/2026: Cycling, Slop, and Software to Keep Photos Organised
Links for the day
Henry Abbott (TrueHoop) Says Microsoft Taken Public by Alvin Bernard "Buzzy" Krongard (in New Interview About Jeffrey Epstein)
He has claimed that the man who took Microsoft public was a banker and also connected to the CIA (former Executive Director)
Quick Roundup of "Linux" Slop
Today we saw a slopfarm again in Google News
Links 09/04/2026: Microsoft Attacking VeraCrypt and "Canada’s New Surveillance Law"
Links for the day
Gemini Links 09/04/2026: Shopping, LLMs That Ruin the Net, and Moving to GNU/Linux
Links for the day
Links 09/04/2026: TikTok Sets Up Another Outpost in Finland (EU), "Trump Attacks On Public Media Blocked by Judge"
Links for the day
Microsoft's DevDiv Executive Has Quit (Is GitHub on the Chopping Block?)
CodePlex all over again?
Chatbots (or LLMs) Are Killing Us, and We Ought to Talk About It
We need to talk (to each other, not to bots)
Microsoft Also Fires Senior Executives
Microsoft is a very feeble company pretending to be a giant
Microsoft Windows in Ireland: From 90% to Just 16%
When it comes to Ireland's Web usage, not much of it is from Windows anymore
SLAPP Censorship - Part 40 Out of 200: Putting Forth Frivolous Claim Only a Few Days Before Running Out of Time (12 Months)
my response to a frivolous claim from Graveley
IBM Layoffs by Performance Improvement Plan (PIP) and More Evidence of Layoffs at HashiCorp After IBM Took Over
Notice how the media does not cover IBM layoffs
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Wednesday, April 08, 2026
IRC logs for Wednesday, April 08, 2026
Gemini Links 09/04/2026: On the Radio, Boogie Notes, Slop in Search Engines and USENET
Links for the day
Countries Where Windows is Measured Below 1%
Windows' monoculture is going away
SLAPP Censorship - Part 39 Out of 200: Recycled Text for Garrett and Graveley (Buy One, Get One Free?)
perhaps thousands of pounds per hour
Microsoft Azure is Now “Perpetually on Life Support”, Even Microsoft Sites Express Concerns
Less than a decade ago Microsoft-connected sites kept saying that AWS was doomed and Microsoft would replace AWS with Azure
IBM's Fedora Project Sees Sharp Increase (Over 25%) in Code of Conduct Complaints, i.e. Censorship Demands
Remember that IBM lawyered up against its own community in an effort to shut down a site critical of it
Malicious Bots
Tackling corruption in the world is never easy
Slopfarms Marginalised, Some Suspend Operations
some people who become lazy and prompt LLMs are just signalling that they throw in the towel
Gemini Links 08/04/2026: "Managing Dotfiles with GNU Stow" and "Observations on Blocking Various Webbots"
Links for the day
Links 08/04/2026: GAFAM "Abandons Multi-Billion Dollar Data Centres in US as Investors Demand Energy, Water Usage"; Artemis II Astronauts Updates
Links for the day
Links 08/04/2026: Dems Call for 25th Amendment Remedy, Bill Epsteingate Summoned in Jeffrey Epstein Investigation
Links for the day
A Lot of Law Firms Are Collapsing
There has been a lot of discussion about this lately
IBM Red Hat Profited From 5+ Weeks of War in Iran
remember that IBM's current CEO comes from a military family (on both sides)
Associated Press Failed Financially, Now It's Offloading What's Left to Slop (How Sites Die 'Cheaply')
LLMs are not intelligent or any form of intelligence, they are just falsely marketed as such
Microsoft Shares Down 35% in 5 Months, Executives Leave Microsoft
Many people leave (or flee) Microsoft because, seeing what goes on insider, they know what's coming
Are Some Obscure or Chinese Operating Systems (Like Huawei's) Taking Over in "Unknown" Clothing?
statCounter still cannot detect many operating systems
SLAPP Censorship - Part 38 Out of 200: Advertisement or £10,000+ Classified Ad in the Form of Court Filing in Another Continent
Graveley fancies himself some world-renown something
Software Freedom is Closely Connected to Privacy
privacy can be a matter of life and death
What Communities Mean and Look Like (If They're Effective and Focused)
Last week we wrote about this in the context of distros and alleged "inclusion"
April 2026 FSF LibreLocal Concludes in Atlanta
Happy Hacking
Gemini Links 08/04/2026: GPG Symmetric Encryption and Slop in USENET
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Tuesday, April 07, 2026
IRC logs for Tuesday, April 07, 2026