News for hackers. Stuff that matters.
Re:Linus Torvalds on C++ by peterevans on Wednesday May 18, 2016 @09:01AM (#11721553)
Well... not to be a C++ apologist, but bear in mind that these comments were made by Linus back in 2007 and 2004. His views may not have changed, but C++ has certainly changed since then.
Re:Linus Torvalds on C++ by hhjkjhkjhhlkj on Wednesday May 18, 2016 @09:09AM (#11721618)
I think this is the sort of view that he has problems with. It shows that you haven't understood any of his actual issues. It is a mindset thing as much as just C++ being `unhelpful`.

Not that it is in the posted email but one of his issues is that on-one actually understands C++, but everyone thinks they do.

Re:Linus Torvalds on C++ by peterevans on Wednesday May 18, 2016 @11:31AM (#11722636)
I think I understand Linus' concerns. I guess I'm not sure how you conclude that I do not, but, so it goes.

Languages do change, and implementations evolve. I think it's fair to temper criticism with the caveat that, hey, this was from a while back. And Linus' comments certainly were from a while back, considering the latest one was made in 2007. You didn't have shared_ptr, you didn't have unique_ptr, there was no auto type.

I'm not going to argue that these things make C++ awesome. I really don't work in C++ on a day-to-day basis. But the language is certainly different now than it was in 2007, and I think that does matter. At least a little bit :)

Re:Linus Torvalds on C++ by drvdevd on Wednesday May 18, 2016 @04:02PM (#11725387)
I think the number one legitimate concern I can see, after just reading this for the nth time, is the trustworthiness of C++ compilers, which I believe was not so great in the early 90s. Now, I have no evidence to back this up (yet), but I'm willing to bet that clang and LLVM are verging on as trustworthy as (if not more than) GCC at this point. Nevermind MSVC, which would require its own analysis. I'm not a C++ programmer, but you're right: clearly it has advanced. And Linus has gone off on GCC as well for producing crappy output as well (https://news.ycombinator.com/item?id=8089321)
Re:Linus Torvalds on C++ by gpderetta on Wednesday May 18, 2016 @09:28AM (#11721735)
Then again, his latest project, a scuba diving application, is written in C++.
Re:Linus Torvalds on C++ by nervoustwit on Wednesday May 18, 2016 @09:36AM (#11721776)
He says C++ is not good for writing things like kernels, not that is good for absolutely nothing.
Re:Linus Torvalds on C++ by gpderetta on Wednesday May 18, 2016 @09:48AM (#11721878)
"C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do nothing but keep the C++ programmers out, that in itself would be a huge reason to use C."

I wouldn't call that a nuanced opinion.

Re:Linus Torvalds on C++ by bbatha on Wednesday May 18, 2016 @11:29AM (#11722624)
I watched a video on this a few years ago, his reason for C++ is because QT basically requires it. He originally tried to write it in C using GTK, and hated GTK so he switched to C++/QT.
Re:Linus Torvalds on C++ by mrSugar on Thursday May 19, 2016 @03:14AM (#11728581)
So, he hates GTK+ more than he does C++? what does that tell us about GTK+?
Re:Linus Torvalds on C++ by hhjkjhkjhhlkj on Wednesday May 18, 2016 @09:33AM (#11721753)
It's not doing anything where performance is an issue.
Re:Linus Torvalds on C++ by 4ad on Wednesday May 18, 2016 @09:04AM (#11721587)
Yeah, all those billions of lines of code of old C++ just rewrote themselves, so we don't have to worry about them.