Tactless: "Rust in the kernel is a cancer."
Elegant: "Rust in the kernel is carcinization."
@lispi314 I'm not sure what you mean but let me just have my pun or whatever you call it without bringing up the actual argument...
@lispi314 Anyway IMO the problem is not that the kernel is written in the wrong language. It's that shit device drivers run in the same privilege domain and memory space as the kernel rather than being properly sandboxed.
@lispi314 Yes, memory-safe languages and privsep are two very different philosophies to achieve similat ends, and I vastly prefer privsep because it lets you use any existing code and lets people write in the languages they're most comfortable in, and because it can protect against not just errors representable in your type system but also logic errors.
I tried to use Pascal and Modula 2 for non-trivial programming in the '80s and they were non-starters. I couldn't even write code that would reliably do I/O on two different compilers on the same computer. It was easier to write cross-platform code in Fortran. That's why the original Software Tools book was revolutionary and Software Tools in Pascal was completely pointless.
It's like the Godel Incompleteness Theorem. A systems programming language is either unsafe or so constrained as to be useless. Fortran is relatively safe because it has no pointers. Swift is close to a Godel-busting language. Rust may be closer. But Pascal and Modula 2 were not in the race.
I don't think it would have been possible to develop a useful portable language with Pascal as a base. There were too many unavoidable restrictions built into the language design. There were Pascal-like compilers that were closer to being usable but things like Turbo Pascal weren't actually Pascal and pretty much abandoned any pretense at safety.