News for hackers. Stuff that matters.
Re:Modern C++ for C Programmers (2018) by CraigJPerry on Friday July 23, 2021 @07:50PM (#27937069)
For embedded, i would have said C not C++. C is more prevalent still.

For some industries where security or correctness guarantees are necessary, you see things like MISRA C used rather than Rust (or cpp).

Re:Modern C++ for C Programmers (2018) by michaelsbradley on Friday July 23, 2021 @08:10PM (#27937202)
There's also the Ravenscar profile[1] for Ada and the SPARK language[2]. How those compare in marketshare to MIRSA C, I'm not sure, I'm not in that field, though I've enjoyed reading about them at a conceptual level.

[1] https://en.wikipedia.org/wiki/Ravenscar_profile

[2] https://en.wikipedia.org/wiki/SPARK_(programming_language)

[&] https://docs.adacore.com/sparkdocs-docs/Examiner_Ravenscar.h...

Re:Modern C++ for C Programmers (2018) by oddity on Friday July 23, 2021 @08:21PM (#27937272)
Anecdotally, everything I've seen (hardware drivers) has been in (MISRA) C or a subset of C++. Ironically, many of the alternatives require too much discipline to keep devs happy. MISRA C at least lets them pretend they're in their happy place.
Re:Modern C++ for C Programmers (2018) by dexterhaslem on Saturday July 24, 2021 @01:00AM (#27938514)
ive been in the misra c realm a while and romanticized ada, spark, ravenscar profile etc. i think if you have a team and problem that can go 100% in on it, its unmatched (and some industries certainly do, aviation, autopilots, internal fuze controls etc..)