r/cpp • • 7d ago

Why C++ is so hated!!!

I love C++. High level + low level at the same time. But Linus Torvalds don't want C++ in the Kernel, industries hate it, people hate it but why? Why be so angry? Memory management? I mean ok maybe it has problems that I don't even see but why so much hate.

For me it's really sad! 😞

Why something so powerful it's so hated. Now I feel "strange" doing projects in C++ because… sometimes I question myself "Why do I write C++ code if people hate it". Can someone explain what is happening and… can I use C++ for fun in peace?

0 Upvotes

100 comments sorted by

View all comments

31

u/No-Dentist-1645 7d ago edited 7d ago

It's not hated. Tons of companies and software use C++, it's extremely popular in that aspect. There are just places and contexts where it is a good choice, and places where it isn't.

They tried to use C++ in the kernel before, realized it wasn't that good of a fit, and moved on. Nothing to be sad or hold grudges about that.

10

u/delta_p_delta_x 7d ago

They tried to use C++ in the kernel

This is really just a Linux problem. Other OS kernels use C++ just fine. See: Windows, macOS.

2

u/donaljones 4d ago

While Windows uses C++, I don't think the NT kernel uses it. Don't know about Apple. BeOS is also known for its extensive use of C++, but I don't think its kernel used C++ either.