r/cpp_questions • u/kyan100 • Sep 13 '24
OPEN Why Linux community hates C++ so much?
It seems like they have an extreme disliking towards C++. Especially the kernel developers. Linus has even said he doesn't allow C++ in kernel just to keep C++ programmers away. Which sounds very weird because C++ seem to be used in all kinds of complicated systems, and they are fine.
175
Upvotes
1
u/inscrutablemike Sep 13 '24
The things that come immediately to mind are vtables for dynamic method dispatch, memory allocators in the standard library, that kind of thing.
I know there are ways to write embedded code in C++, but once you start doing that.. is there any benefit over regular C? And does the benefit outweigh the inability to use so much of the standard C++ environment?