News for hackers. Stuff that matters.
Re:Writing an OS in Rust: Advanced Paging by Someone1234 on Monday January 28, 2019 @09:48AM (#19017765)
I don't follow that argument.

C++ didn't break through because the benefits didn't outweigh the drawbacks compared to straight C (meaning you can implement C++ like concepts in straight C, and not have to deal with a lot of baggage C++ brings).

Rust is a whole other kettle of fish. It has more or less been proven by this point that people cannot write memory safe C, even experts in the language are still introducing memory-unsafe bugs in 2018. Therefore Rust is bringing features the C language cannot offer.

Which isn't to say I know that Rust will be "successful." I don't know that. But I do know it is worth TRYING to see if it can be successful, and C++'s lack of success isn't really a counter-argument.

I'm still sad that Microsoft's Singularity OS[0] never got further developed, interesting concept.

[0] https://en.wikipedia.org/wiki/Singularity_(operating_system)

Re:Writing an OS in Rust: Advanced Paging by vardump on Monday January 28, 2019 @11:06AM (#19018519)
> ... It has more or less been proven by this point that people cannot write memory safe C, ...

Or concurrency safe. There aren't many languages that can help with this class of bugs. Like race conditions. (Someone on HN said Pony is another language that has concurrency/thread safety guarantees.)

Re:Writing an OS in Rust: Advanced Paging by pjmlp on Monday January 28, 2019 @10:05AM (#19017930)
Bias is everything, Joe Duffy briefly mentioned at his RustConf keynote that many at WinDev did not believe Midori was possible, even when shown running in front of them.
Re:Writing an OS in Rust: Advanced Paging by andrekandre on Wednesday January 30, 2019 @05:38PM (#19040353)
i think this would be the link, if anyone is interested: https://www.youtube.com/watch?v=EVm938gMWl0
Re:Writing an OS in Rust: Advanced Paging by milkey_mouse on Monday January 28, 2019 @01:01PM (#19019533)
Not to shill but I'm working on a Singularity/Midori-inspired Rust JIT-compiled operating system. If that ever gets anywhere I'll post a link/Show HN.
Re:Writing an OS in Rust: Advanced Paging by mehrdadn on Monday January 28, 2019 @10:09AM (#19017965)
Yeah I was sad about Singularity too. As for C++, yes it doesn't being an absolute guarantee of memory safety, but C is so error prone that it's ridiculous to suggest anything below an absolute 100% guarantee wouldn't be a compelling improvement. C++ was a gigantic improvement in the safety of C (i.e. such that following good coding practices actually gives you legitimate confidence your code is memory-safe) while still having all of its flexibilities, and yet it still got shunned, so I'm unconvinced that a nitpicky language like Rust makes all the difference just because of its formal verification. If kernel folks wanted compiler help with memory safety they could've embraced C++ and gotten most of the way there.
Re:Writing an OS in Rust: Advanced Paging by JoeAltmaier on Monday January 28, 2019 @11:09AM (#19018543)
C++ can bring very little baggage. That's why its widely used in Embedded environments.

And I'd wager that C++ can write far better optimized abstractions than a human in C every could. In most cases.

Writing memory-safe C is clearly possible - many other enviroments are written in C. It come down to using a safe subset.

Re:Writing an OS in Rust: Advanced Paging by TheCoelacanth on Monday January 28, 2019 @11:52AM (#19018957)
> Writing memory-safe C is clearly possible - many other enviroments are written in C

Show me one major piece of C software that does not have frequent memory-safety bugs and I might believe that.

Re:Writing an OS in Rust: Advanced Paging by richardwhiuk on Monday January 28, 2019 @03:53PM (#19020979)
djbdns/qmail might qualify here.
Re:Writing an OS in Rust: Advanced Paging by tptacek on Tuesday January 29, 2019 @12:31AM (#19024005)
qmail had LP64 memory corruption bugs.
Re:Writing an OS in Rust: Advanced Paging by JoachimSchipper on Tuesday January 29, 2019 @02:26AM (#19024477)
One ever right? I wouldn't count that as "frequent" - lots of programs in memory-safe languages have more/worse bugs than qmail.

Of course, the existence of one significant not-too-vulnerable C program doesn't really prove a lot either way...

Re:Writing an OS in Rust: Advanced Paging by tptacek on Tuesday January 29, 2019 @03:24PM (#19029511)
I though Georgi Guninski found several.