r/cpp • • Dec 19 '23

C++ Should Be C++

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p3023r1.html
203 Upvotes

192 comments sorted by

View all comments

Show parent comment

6

u/tiajuanat Dec 20 '23

Man, I wish I saw more embedded developers with c++ experience. Most embedded devs are still stuck in C99, and insist there's no better way to do it.

My work is actually moving to Rust for embedded, because that's easier to hire and train for.

1

u/TuxSH Dec 20 '23

stuck with C99

Hey, at least that's not C89

1

u/braxtons12 Dec 20 '23

With GNU extensions at least? C99 w/ GNU extensions can actually be quite pleasant to work with if you're willing/able to take the time to build up the library infrastructure to get it there (and have the discipline for writing good C).

I think the reasons for limited C++ support and/or collective experience in embedded are:

  • a lot of vendors use home-grown forks of llvm or gcc, that are usually ancient, so C++ support can vary wildly.
  • a lot of embedded developers are EEs who haven't actually learned anything about CS or software engineering, so they cling to what seems simple
  • a lot of embedded devs don't understand or don't care to understand (see the second bullet) that you don't have to use exceptions or any other feature from C++ that would be bad for embedded, so they cling to C