News for hackers. Stuff that matters.
Re:Rust is rolling off the Volvo assembly line by BD103 on Monday October 07, 2024 @10:16PM (#41773213)
You may be interested in Ferrocene[0], a version of the Rust toolchain that is vetted for critical systems like automobiles. It's offered by Ferrous Systems, the same people who help maintain Rust Analyzer (the de-facto LSP for Rust).

[0]: https://ferrocene.dev/en/

Re:Rust is rolling off the Volvo assembly line by AlotOfReading on Monday October 07, 2024 @10:42PM (#41773361)
Note that what Ferrocene is currently offering is a toolchain. Things like core and std are not part of the current certification package. It's an incredibly exciting offering, but it's not quite ready to ship today. The fact that the certified toolchain is just the normal, publicly available one is great too.
Re:Rust is rolling off the Volvo assembly line by estebank on Monday October 07, 2024 @11:25PM (#41773569)
> The fact that the certified toolchain is just the normal, publicly available one is great too.

And speaks to the standards of quality that the project holds itself to.

Re:Rust is rolling off the Volvo assembly line by steveklabnik on Monday October 07, 2024 @11:33PM (#41773599)
Yes, Ferrocene is able to be qualified more easily in part by how good upstream development practices are. A lot of qualified compilers need to be written from scratch because the existing compilers do not do testing and other things that are required for qualification, but the upstream Rust project has a development process far closer to a safety qualified compiler than not. It’s something worth celebrating about rust as a project.
Re:Rust is rolling off the Volvo assembly line by tialaramex on Tuesday October 08, 2024 @01:04PM (#41779442)
> Things like core and std are not part of the current certification package

As with C++ I'm not sure this makes coherent sense because of the relationship between the language and some elements of the supporting libraries - with respect to `core` specifically, the Rust programming language requires some of core.

Suppose you write a for loop. In Rust that's just sugar, and it's de-sugared into a loop that uses IntoIterator::into_iter, Iterator::next, Option::Some and Option::None which are all from the core library.

Re:Rust is rolling off the Volvo assembly line by AlotOfReading on Tuesday October 08, 2024 @01:34PM (#41779755)
Hence the warning. They're not separable, but it's what the current state of the offering is. If you ship core anything depending on core or std, the burden is on you to ensure those parts of your code are appropriately qualified until they can get the situation sorted.
Re:Rust is rolling off the Volvo assembly line by slicktux on Monday October 07, 2024 @10:18PM (#41773218)
Thank you for the reference! Will definitely look into this!
Re:Rust is rolling off the Volvo assembly line by bmitc on Monday October 07, 2024 @11:27PM (#41773578)
I was recently looking into things along these lines, and my understanding of Ferrocene is that it's just regular Rust with extra tests added. I'd love to know if that's accurate or not. If it is accurate, I've wondered why Rust doesn't just include those tests in the core build.
Re:Rust is rolling off the Volvo assembly line by steveklabnik on Monday October 07, 2024 @11:35PM (#41773608)
In my understanding, no additional tests, but some additional platform support.

The issue isn't more tests upstream, it’s more the chain of responsibility for guaranteeing that results are connected to the specification and all of the paperwork that’s required, and ensuring it is accurate.