News for hackers. Stuff that matters.
Re:Redox OS 0.8.0 by pjmlp on Saturday November 26, 2022 @06:30AM (#33751820)
The problem with some C belivers is that they lack the imagination to accept how systems programming used to be like before Bell Labs released UNIX V6 source code into the wild, or the paths trailed by other companies before UNIX clones won the server room.

So just like with St. Thomas, apparently we need all those Rewrite in Safe Systems Language XVYZ, to bring the non-belivers into the righteous path.

Which is anyway only half of the battle, as Joe Duffy points out in one of his talks, several developers on the WinDev team dimissed Midori efforts, even with the system running in front of them, providing them wrong in all their remarks about the system.

Re:Redox OS 0.8.0 by jbirer on Saturday November 26, 2022 @07:42AM (#33752177)
I enjoy how defensive Rust fans are over their language, it's fun to poke at in my spare time. First of all, Rust is a great language with great ideas in my opinion, but not really fit for systems programming unless you mean on top of an OS like cd grep etc. I think most Rust fans have never written an embedded project or dabbled in lower level code so they assume that it's just perfect for low level.

First you have to work around things like direct memory access, writing a "safe" wrapper around direct memory access doesn't really take it from unsafe to safe and you have to fight the language to do the things you have to do when doing kernel work. Then you have to deal with badly optimized output of the compiler which is fine in an user space program but a no-go in a kernel or even worse on embedded. I know some might say "well you aren't supposed to do that, you need X safety measure" but the hardware doesn't work like that, if you try to apply those concepts to out-of-order execution for example you will incur a heavy performance cost.

tl;dr Rust fanboys should read some kernel device driver code and lower level code before giving their input

Re:Redox OS 0.8.0 by pjmlp on Saturday November 26, 2022 @07:49AM (#33752221)
Somehow Google has managed to ship drivers written in Rust since Android 12.
Re:Redox OS 0.8.0 by forgotpwd16 on Saturday November 26, 2022 @11:52AM (#33754267)
>but not really fit for systems programming

Ironically you say this on a submitted project that uses Rust for systems programming.