r/cpp • • Dec 07 '22

C++ overtakes Java in language popularity index

https://www.infoworld.com/article/3682141/c-plus-plus-overtakes-java-in-language-popularity-index.html
382 Upvotes

137 comments sorted by

View all comments

119

u/feverzsj Dec 07 '22

Kinda make sense. There are tons of embedded c++ jobs emerged this year. Mostly from automotive and medical industry.

68

u/SkoomaDentist Antimodern C++, Embedded, Audio Dec 07 '22 edited Dec 07 '22

Only a fool starts a new embedded project using C unless it's for a rare niche platform that doesn't have a working C++ environment. Unfortunately there are still many fools around.

E: I didn't expect to get downvoted on /r/cpp of all places for advocating using C++ instead of C for systems where C++ is almost ideally suited for...

0

u/[deleted] Dec 07 '22

[deleted]

3

u/SkoomaDentist Antimodern C++, Embedded, Audio Dec 07 '22

Sure, the low level hw access SDKs are mostly written in C, but that's hardly a problem. There really isn't much benefit in having a C++ function for initiating a DMA transfer from buffer X vs having a C function do the same.

There are higher level C++ frameworks but much of the time you end up spending more effort fighting against them as they try to be overly generic and end up being both restrictive and (often horribly) inefficient.