News for hackers. Stuff that matters.
Re:GCC switches from C to C++ by arturadib on Wednesday August 15, 2012 @12:46PM (#4386818)
"What would Linus do?"
Re:GCC switches from C to C++ by dkersten on Wednesday August 15, 2012 @12:49PM (#4386831)
he would call people stupid
Re:GCC switches from C to C++ by gnarbarian on Wednesday August 15, 2012 @01:25PM (#4387046)
He is right most of the time though.
Re:GCC switches from C to C++ by duaneb on Wednesday August 15, 2012 @02:42PM (#4387472)
No, not really, he's just loud.
Re:GCC switches from C to C++ by oh_sigh on Wednesday August 15, 2012 @09:14PM (#4389375)
Oh okay. I think I'm going to trust the guy who wrote the linux kernel over...duaneb.
Re:GCC switches from C to C++ by duaneb on Wednesday August 15, 2012 @11:21PM (#4389762)
No, he has good points, but doesn't really rely on logic so much as vitriolic humor. For example:

http://forum.gwan.com/index.php?p=/discussion/587/its-bs-bec...

Basically, his entire argument is the slippery slope fallacy based on assumptions that may never occur. Plenty of great software is written in C++, even using STL, that doesn't lead to software that is any more difficult to maintain than the equivalent C program. For one thing, refactoring due to design change is a pain in the ass with or without objects. He also doesn't address the fact that polymorphism is very unwieldy in C. While it's very defensible to NOT use C++, I don't think that saying that "C is the only sane language" is fair. That, or Apple, Google, Microsoft, Oracle, and Facebook are full of people who are barking mad.

However, in an environment like Linux and git where code practices may be less restrictive than a corporate or authoritarian environment, the natural restrictions of C (i.e. lack of easy-to-abuse features) may seem like a feature in itself.

Re:GCC switches from C to C++ by oh_sigh on Thursday August 16, 2012 @03:33PM (#4393219)
Then why not write a rebuttal and ask for his feedback? It's impossible to anticipate every possible counter to an argument, and it would be prohibitive to list and rebut them all within a single message.

> Plenty of great software is written in C++, even using STL, that doesn't lead to software that is any more difficult to maintain than the equivalent C program.

I don't deny that great software is written in C++, but what is your evidence that C and C++ have the same maintenance burden.

Re:GCC switches from C to C++ by dkersten on Wednesday August 15, 2012 @02:28PM (#4387386)
I didn't mean to imply otherwise :) merely stating what it is he'd do.
Re:GCC switches from C to C++ by flatline3 on Wednesday August 15, 2012 @02:41PM (#4387461)
No, he's just prolific.
Re:GCC switches from C to C++ by jlgreco on Wednesday August 15, 2012 @02:50PM (#4387510)
Is he actually? He only "has" two projects that anyone cares about to my knowledge.
Re:GCC switches from C to C++ by noct on Wednesday August 15, 2012 @04:29PM (#4388033)
He meant it in terms of calling people stupid.
Re:GCC switches from C to C++ by eswangren on Wednesday August 15, 2012 @03:17PM (#4387671)
Two prolific projects that amount to far more than the vast majority of us of is will ever accomplish.
Re:GCC switches from C to C++ by jlgreco on Wednesday August 15, 2012 @03:39PM (#4387779)
I suppose "prolific" does not necessary imply breadth or depth.
Re:GCC switches from C to C++ by eswangren on Wednesday August 15, 2012 @04:12PM (#4387955)
I believe an operating system typically implies both.
Re:GCC switches from C to C++ by duaneb on Wednesday August 15, 2012 @07:24PM (#4388915)
Prolific typically implies many things. I have a deep respect for linux and git, but neither are really prolific.

Anyway, I thought the OP meant he was prolific in his tirades, which is very true.

Re:GCC switches from C to C++ by jlgreco on Wednesday August 15, 2012 @04:22PM (#4388000)
The way I interpreted the word was more "doing lots of things" and less "doing lots of a few things". Either is legitimate in retrospect.
Re:GCC switches from C to C++ by ninjin on Wednesday August 15, 2012 @07:02PM (#4388805)
Well, it has already happened at least once for Git [1]. I seem to remember someone else suggesting to move the Linux Kernel to C++ ending up with a similar rant (someone can feel free to dig that up if they have the time).

[1]: http://thread.gmane.org/gmane.comp.version-control.git/57643 /focus=57918

Re:GCC switches from C to C++ by rabbitfang on Wednesday August 15, 2012 @02:11PM (#4387299)
Who cares?
Re:GCC switches from C to C++ by emmelaich on Wednesday August 15, 2012 @09:35PM (#4389458)
I'm going to go out on a limb here and say that if he was writing a 'normal' application or even a compiler he'd be tempted to use some subset of C++ or maybe even Java.

As it is, for the kernel you'd be crazy to use something other than C.

Re:GCC switches from C to C++ by kronusaturn on Wednesday August 15, 2012 @10:12PM (#4389582)
I don't know about that, the last two 'normal' applications he wrote (git and subsurface) were in C.
Re:GCC switches from C to C++ by luriel on Thursday August 16, 2012 @03:04AM (#4390241)
> I'm going to go out on a limb here and say that if he was writing a 'normal' application or even a compiler he'd be tempted to use some subset of C++ or maybe even Java.

And you would be wrong:

http://harmful.cat-v.org/software/c++/linus

Re:GCC switches from C to C++ by emmelaich on Sunday August 26, 2012 @01:45PM (#4435638)
Well maybe. We won't and cannot know, because Linus will never be programming websites for a bank or writing games for Windows.

My feeble point is that the kernel (and git) are computer programs for computer people doing computer stuff.

Subsurface I'll give you. Mostly.