Hacker News new | ask | show | jobs
by Gigachad 1456 days ago
>The system as a whole used C, C++

It all makes sense now. Astounding its legal to use C/++ in a safety critical situation.

3 comments

Uhh... you do realize tons of safety-critical systems in use today were written in C and C++, right? As in _most_ of them, for the past ~30 years?

Airplane systems, telecom equipment, medical equipment, satellite and space launch equipment, railway systems, etc., etc.

There's other languages used as well obviously, and even just assembly in some parts of some systems, but in terms of the majority it's C and/or C++.

Yep, I somewhat agree. The C mostly comes from Linux [1]. For the rest, "there are reasons".

[1] https://ossna2020.sched.com/event/c3QN/there-is-no-store-for...

C and C++ are used pretty extensively in the embedded world. For a lot of safety critical stuff though, typically a safer subset of those languages are used, such as MISRA C and MISRA C++, alongside static checkers and validated toolchains.