News for hackers. Stuff that matters.
Re:F’: Flight Software and Embedded Systems Framework by cat199 on Friday February 19, 2021 @09:24PM (#26200894)
> Probably once people have decades of experience with it and know every single trap or quirk perfectly.

people were writing mission-critical C++ when C++ was new / only a few years old; with this in mind, rust is probably good to go with sufficient application/system testing

that said, since C++ & associated tooling exists, there is more of an opportunity cost since, in the context of today, there are more alternatives that could be considered

Re:F’: Flight Software and Embedded Systems Framework by carlmr on Saturday February 20, 2021 @03:16AM (#26202533)
I think this is spot on. The tooling is there for C++, but human mistakes are much more prevalent, and the discipline to apply the tooling is not a given.

There should be an industry push for certified Rust tooling, it would save the aerospace and auto industry billions. Or you could use the unsexy but also very good ADA 2012, which is already certified.

Re:F’: Flight Software and Embedded Systems Framework by pjmlp on Saturday February 20, 2021 @04:42AM (#26202960)
This is one of the reasons why NVidia went with Ada/SPARK for their security critical firmware project.
Re:F’: Flight Software and Embedded Systems Framework by sterlind on Saturday February 20, 2021 @05:57AM (#26203249)
iirc, SPARK has proof capabilities that outstrip the memory-safety guarantees of Rust. basically design by contract, where you can check loop invariants and statically verify complex preconditions and postconditions.

I suppose the workflow would be to flesh out and check the abstract design in something like Coq or (maybe) TLAPS, generate a refinement into the SPARK code contracts, then implement the functions. Since the toolchains are verified there shouldn't be much surface area for bugs left.

Re:F’: Flight Software and Embedded Systems Framework by pjmlp on Saturday February 20, 2021 @06:09AM (#26203303)
Yep, here some very good books about it, specially relevant given the main subject.

"Building High Integrity Applications with SPARK"

https://www.amazon.com/Building-High-Integrity-Applications-...

"Building Parallel, Embedded, and Real-Time Applications with Ada"

https://www.amazon.com/Building-Parallel-Embedded-Real-Time-...

"Embedded Software Development for Safety-Critical Systems"

https://www.amazon.com/Embedded-Software-Development-Safety-...