Earlier quoted context omitted.
Depends on the company in my experience. I've seen some suppliers that basically just wire up the diagram in Matlab/simulink and hit Autocode. No humans actually touch the C that comes out. Honestly I think that's probably the correct way to write high reliability code.
You’re joking right? That autogenerated code is generally garbage and spaghetti code. It was probably the reason for Toyotas unintended acceleration glitch.
The C++ standard for the F-35 Fighter Jet [video]
41–50 of 451 posts
Re: The C++ standard for the F-35 Fighter Jet [video]
#42Re: The C++ standard for the F-35 Fighter Jet [video]
#43Earlier quoted context omitted.
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.
Re: The C++ standard for the F-35 Fighter Jet [video]
#44Re: The C++ standard for the F-35 Fighter Jet [video]
#45Actual code i have seen with my own eyes. (Not in F-35 code)
Its a way to avoid removing an unused parameter from a method. Unused parameters are disallowed, but this is fine?
I am sceptical that these coding standards make for good code!
Re: The C++ standard for the F-35 Fighter Jet [video]
#46For those interested, the F-35 (née Joint Strike Fighter) C++ coding standards can be found here, all 142 pages of it: https://www.stroustrup.com/JSF-AV-rules.pdf
Re: The C++ standard for the F-35 Fighter Jet [video]
#47I wonder how these compare to high frequency training standards. It seems like they'd have similar speed/reliability/predictability requirements in the critical paths.
At least before we had zero-cost exceptions. These days, I suspect the HFT crowd is back to counting microseconds or milliseconds as trades are being done smarter, not faster.
Re: The C++ standard for the F-35 Fighter Jet [video]
#48Re: The C++ standard for the F-35 Fighter Jet [video]
#49TL;DR - no exceptions - no recursion - no malloc()/free() in the inner-loop
I feel like that's the way to go since you don't obscure control flow. I have also been considered adding assertions like TigerBeetle does
https://github.com/tigerbeetle/tigerbeetle/blob/main/docs/TI...
Re: The C++ standard for the F-35 Fighter Jet [video]
#50For those interested, the F-35 (née Joint Strike Fighter) C++ coding standards can be found here, all 142 pages of it: https://www.stroustrup.com/JSF-AV-rules.pdf