Re:The C++ standard for the F-35 Fighter Jet [video]
by mwkaufma on Sunday December 07, 2025 @02:58PM
(#46184593)
Lots of games, and notably the Unreal Engine, compile without exceptions. EASTL back in the day was in part written to avoid the poor no-exception support in Dinkumware STL and STLport.
Re:The C++ standard for the F-35 Fighter Jet [video]
by jesse__ on Sunday December 07, 2025 @07:16PM
(#46186856)
Basically all high profile engine teams I know of ban exceptions. They're worse than useless
Re:The C++ standard for the F-35 Fighter Jet [video]
by tonfa on Sunday December 07, 2025 @05:23PM
(#46185874)
Google style bans them: https://google.github.io/styleguide/cppguide.html#Exceptions
Re:The C++ standard for the F-35 Fighter Jet [video]
by fweimer on Sunday December 07, 2025 @05:34PM
(#46185984)
Most large open-source projects ban exceptions, often because the project was originally converted from C and is just not compatible with non-local control flow. Or the project originated within an organization which has tons of C++ code that is not exception-safe and is expected to integrate with that.
Some large commercial software systems use C++ exceptions, though.
Until recently, pretty much all implementations seemed to have a global mutex on the throw path. With higher and higher core counts, the affordable throw rate in a process was getting surprisingly slow. But the lock is gone in GCC/libstdc++ with glibc. Hopefully the other implementations follow, so that we don't end up with yet another error handling scheme for C++.
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...