News for hackers. Stuff that matters.
Re:Rust in the Linux kernel: part 2 by LeFantome on Friday June 27, 2025 @11:36PM (#44402151)
Most of the interest I have seen is in pursuit of security. A few sources have cited that something like 70% of vulnerabilities are rooted in memory safety issues.

A language that makes it impossible to introduce 70% of the security bugs is appealing.

Re:Rust in the Linux kernel: part 2 by zx8080 on Saturday June 28, 2025 @01:35AM (#44402484)
Java does not have memory safety issues. But it's not appealing, apparently.

So why Rust then?

Re:Rust in the Linux kernel: part 2 by joha4270 on Saturday June 28, 2025 @01:44AM (#44402518)
Memory safe languages such as Java have already taken the world by storm, decades ago.

The interesting combination rust brings is a memory safe language that can compete with C and C++ for the speed crown.

Re:Rust in the Linux kernel: part 2 by nullpoint420 on Saturday June 28, 2025 @01:39AM (#44402498)
Java is not a systems level programming language (at least in its modern OpenJDK form)
Re:Rust in the Linux kernel: part 2 by rjsw on Saturday June 28, 2025 @02:09AM (#44402612)
Sun tried out allowing Java in the kernel, it could be used to write device drivers just as Rust is being used now.
Re:Rust in the Linux kernel: part 2 by anextio on Saturday June 28, 2025 @02:20AM (#44402642)
You can hammer an applications programming language to do systems things, but it will never be a good experience nor have optimal performance.
Re:Rust in the Linux kernel: part 2 by nolist_policy on Saturday June 28, 2025 @02:29AM (#44402674)
Could you write interrupt handlers in it? You can't even do synchronous signal handling in Java.
Re:Rust in the Linux kernel: part 2 by WD-42 on Saturday June 28, 2025 @02:26AM (#44402666)
How would that even work with the JVM?
Re:Rust in the Linux kernel: part 2 by zx8080 on Thursday July 10, 2025 @04:19AM (#44518607)
Probably https://en.m.wikipedia.org/wiki/Jazelle or similar would be the answer.
Re:Rust in the Linux kernel: part 2 by rjsw on Saturday June 28, 2025 @09:37AM (#44404622)