News for hackers. Stuff that matters.
Re:The State of Rust on Haiku by Thaxll on Friday July 06, 2018 @05:22PM (#17475230)
I think at the OS level, safety from Rust are less useful. The "wrap unsafe code" doesn't really work.
Re:The State of Rust on Haiku by blintzing on Friday July 06, 2018 @05:28PM (#17475275)
There’s a nice Stanford class I took called CS 140E that had students write an OS for the Raspeberry Pi in Rust. There are actually some benefits to using Rust at this level, though it can be a bit cumbersome at times.

Check it out here: https://web.stanford.edu/class/cs140e/

Re:The State of Rust on Haiku by pieterr on Saturday July 07, 2018 @08:05AM (#17478139)
Interesting! One of the instructors is RocketMan. :-)

https://crates.io/crates/rocket

Re:The State of Rust on Haiku by steveklabnik on Friday July 06, 2018 @05:24PM (#17475248)
Have you tried it? My experience is that it works pretty well, though I've mostly been working on toys. Even bigger projects like Redox have shown that you generally don't need very much unsafe.
Re:The State of Rust on Haiku by leshow on Saturday July 07, 2018 @11:52AM (#17479022)
If you've written any amount of Rust then that's provably not true. You've no doubt used functions & methods that use unsafe (somewhere down along the line), and you didn't need to deal with it. That's 'wrapping unsafe code' used in practice. You got to write safe because someone else wrote the unsafe wrapper.
Re:The State of Rust on Haiku by TomMarius on Friday July 06, 2018 @08:57PM (#17476230)
What do you mean, doesn't really work? In my experience, it works perfectly. Could you share more info?