Re:Elon Musk: Tons of C++/C engineers needed
by rurban on Thursday February 06, 2020 @11:48AM
(#22257610)
I would count Simulink RT as formally sound and safe, because you can only wire matching boxes together. Graphically. It's the standard in Automotive, flight stuff also I heard.
[ Parent
| on HN ]
Re:Elon Musk: Tons of C++/C engineers needed
by 0xffff2 on Thursday February 06, 2020 @11:55AM
(#22257694)
I do actually have a bit of Simulink generated code in my current project. I absolutely do not consider it to be formally anything. It's one of the highest risk areas of the project IMO because it is very complex and a very black box.
Re:Elon Musk: Tons of C++/C engineers needed
by magduf on Friday February 07, 2020 @01:00PM
(#22268763)
I worked with a Simulink-generated system in a previous job. The generated code was absolutely unreadable by humans, and honestly downright ugly. I agree, it is very high-risk because it is a black box.
Re:Elon Musk: Tons of C++/C engineers needed
by vsskanth on Thursday February 06, 2020 @12:01PM
(#22257775)
I've used Simulink to model dynamic systems. I would say the C code it generates is "safe" in terms of memory access that can be used for embedded systems, but it does not check for undefined control behavior.
Re:Elon Musk: Tons of C++/C engineers needed
by rurban on Friday February 07, 2020 @05:30PM
(#22271824)
I did not only use it, I generated a C++ compiler backend for it. Of course is generated code ugly, that's not the point. It's generated.
Logical problems (and problems in C extensions) are of course always possible, therefore you have Stateflow and other methods. Other formal methods cannot guarantee that neither.