r/cpp_questions • • 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

192 comments sorted by

View all comments

Show parent comments

17

u/goumy_tuc Sep 14 '24

Cpp evolved, his opinion maybe not

1

u/Particular_Camel_631 Sep 14 '24

I’m a simple person. If I tried something and it didn’t work, and the experience was horrendous, then it’s going to take a lot to convince me otherwise. Particularly if I don’t see a huge benefit from it.

I suspect Linus feels the same way.

And yes, it was horrendous. The c++ kernels were so buggy that we would have had a fork of Linux if he had kept using c++.

But hey! It might be different this time! Go take your own fork of Linux and rewrite it in c++ and prove us old greybeards wrong!

3

u/IamImposter Sep 14 '24

Good thing today is saturday and I'm free. I'll show you my c++ kernel on Monday.

2

u/Particular_Camel_631 Sep 14 '24

I look forward to it.

Seriously, one of the advantages of inexperience is not knowing how hard something might be.

If you don’t know how hard something is, you try it anyway and you’ll find a way of doing it better/quicker/cheaper. A guy called Linus did this when he was a student…

1

u/IamImposter Sep 14 '24

Exactly. See you on Monday.

1

u/[deleted] Sep 14 '24

I love this optimism, I actually am rooting for you internet stranger