TL;DR - no exceptions - no recursion - no malloc()/free() in the inner-loop
That’s hardly 90% of C++.
The C++ standard for the F-35 Fighter Jet [video]
11–20 of 451 posts
Re: The C++ standard for the F-35 Fighter Jet [video]
#12[flagged]
Most of their reasoning doesn't apply to my problem space.
Re: The C++ standard for the F-35 Fighter Jet [video]
#13Re: The C++ standard for the F-35 Fighter Jet [video]
#14Re: The C++ standard for the F-35 Fighter Jet [video]
#15Do avionics in general subscribe to MISRA C/C++ or do they go even further with an additional (or different) approach?
Depends on the region. MISRA is widely adopted, and then there are the US MIL standards, ECSS for european aerospace stuff, do-178C for aviation..
Re: The C++ standard for the F-35 Fighter Jet [video]
#16[flagged]
Most of their reasoning doesn't apply to my problem space.
It probably does! It is just that in your problem space the price of failure is low enough that you can get away with it. But most experienced programmers tend to stick to a very rigid subset of simple and reliable constructs and stay as far away from any architecture astronaut inspired features as they can.
Re: The C++ standard for the F-35 Fighter Jet [video]
#17TL;DR - no exceptions - no recursion - no malloc()/free() in the inner-loop
That’s hardly 90% of C++.
If you compile with -fno-exceptions you just lost almost all of the STL.
You can compile with exceptions enabled, use the STL, but strictly enforce no allocations after initialization. It depends on how strict is the spec you are trying to hit.
Re: The C++ standard for the F-35 Fighter Jet [video]
#18Re: The C++ standard for the F-35 Fighter Jet [video]
#19Re: The C++ standard for the F-35 Fighter Jet [video]
#20Earlier quoted context omitted.
What industry do you work in? Modern RAII practices are pretty prevalent
What does RAII have to do with any of the above?
Not an expert but I’m pretty sure no exceptions means you can’t use significant parts of std algorithm or the std containers.
And if you’re using pooling I think RAII gets significantly trickier to do.