News for hackers. Stuff that matters.
Re:Clang: Defending C++ from Murphy's Million Monkeys by roquin on Thursday February 23, 2012 @04:03AM (#3624298)
As a reference, this video was posted 3 weeks ago with another title in http://news.ycombinator.com/item?id=3565400. But almost receive no upvote.
Re:Clang: Defending C++ from Murphy's Million Monkeys by loup-vaillant on Thursday February 23, 2012 @04:29AM (#3624336)
Yeah, you need some luck to make it to the front page. If I recall correctly, one vote can be enough, but it has to be done soon after submission time.

Once you get past that threshold, karma skyrockets.

Re:Clang: Defending C++ from Murphy's Million Monkeys by alecco on Thursday February 23, 2012 @08:04AM (#3624754)
It gets worse because not many "interesting" people dedicate some time to /newest. I used to go there once every day. The main problem is HN doesn't discriminate by topic combined with lack of downvote. The noise to signal ratio is too high. There are way too many spam, blogspam and metoo articles against a few actual interesting submissions. And most times a blogspam article gets to the frontpage instead of the original source. It's a shame.

In reddit the people doing the honorable job of upvoting new stories are called "Knights of New". This effect is notable on good communities like /r/programming. Trash submissions quickly get downvoted.

Re:Clang: Defending C++ from Murphy's Million Monkeys by Radim on Thursday February 23, 2012 @06:11AM (#3624519)
The analogy to start-up success is startling.

Taken from that perspective -- thank god for re-submissions.

Re:Clang: Defending C++ from Murphy's Million Monkeys by X-Istence on Thursday February 23, 2012 @04:00AM (#3624289)
I have been using clang for just over a year now and I have found that without it I start going insane. It is by far my favourite compiler. The error messages it spits out are sane (compared to those of GCC) and help me track down the problem faster and with less effort. It definitely has made me a very happy man!
Re:Clang: Defending C++ from Murphy's Million Monkeys by rrreese on Thursday February 23, 2012 @06:45AM (#3624582)
Does anyone have a clue as to why GCC's messages have remained so bad for so long?
Re:Clang: Defending C++ from Murphy's Million Monkeys by obiterdictum on Thursday February 23, 2012 @08:40AM (#3624853)
Because it's hard to add it to the mature infrastructure that was not designed to support it from the beginning. Clang was built from ground up to support good diagnostics.
Re:Clang: Defending C++ from Murphy's Million Monkeys by alec on Thursday February 23, 2012 @07:33AM (#3624699)
gcc's error messages, especially for C++ templates, got much better in 4.5. They don't have pretty colors, but I didn't find a substantial benefit from clang 2.9's vs gcc 4.5's for C++ development when using both for a week.

Note that if you're on a Mac, your system's gcc is likely several years out of date.

Re:Clang: Defending C++ from Murphy's Million Monkeys by Hemospectrum on Thursday February 23, 2012 @03:03PM (#3626473)
> Note that if you're on a Mac, your system's gcc is likely several years out of date.

To be precise: Apple stopped maintaining its GCC branch after the switch to GPL3. The last version available with Apple patches is 4.2.1. There will be no further updates to this branch.

Re:Clang: Defending C++ from Murphy's Million Monkeys by X-Istence on Thursday February 23, 2012 @12:10PM (#3625708)
Even with 4.5 I haven't found the error messages to be nearly as helpful. Also with clang you can easily turn on a way to look for undefined behavior and turn those into warnings/errors which is fantastic and helped me track down a bug BEFORE it caused me huge grief.
Re:Clang: Defending C++ from Murphy's Million Monkeys by greyfade on Thursday February 23, 2012 @03:19PM (#3626549)
Check out [Colorgcc](http://schlueters.de/colorgcc.html). It helps more than you'd think.
Re:Clang: Defending C++ from Murphy's Million Monkeys by double051 on Thursday February 23, 2012 @02:15AM (#3624123)
I use Clang everyday and the error messages, warning messages, and static analysis are really great to work with.
Re:Clang: Defending C++ from Murphy's Million Monkeys by alecco on Thursday February 23, 2012 @08:23AM (#3624806)
Good talk minus the bashing of GCC and Stallman. It's a free product you don't need to use it and you're not entitled to anything as the license clearly states. The speaker pretends to be against open source politics but doesn't state his bias since both Apple and Google have corporate interests to undermine GPL compiler tools.

On the other hand, I really like the competition. It's very healthy to have options.

Re:Clang: Defending C++ from Murphy's Million Monkeys by wisty on Thursday February 23, 2012 @08:39AM (#3624847)
If clang takes off, GCC will take a lot more bashing, simply because meaningless flame-wars are the nastiest.

If there's a clear winner, you run with it. If the tools are really different, (i.e. Python vs. C), you pick the right tool for the job. If the tools do essentially the same thing in slightly different ways, with slight advantages and disadvantages in some areas (i.e. KDE / Gnome; vi / emacs; Linux / BSD) then you resort to ad hominem attacks.

Re:Clang: Defending C++ from Murphy's Million Monkeys by dman on Thursday February 23, 2012 @10:07AM (#3625152)
So much wisdom in so few words, this was one of the times where just an upvote wasnt enough.
Re:Clang: Defending C++ from Murphy's Million Monkeys by hub_ on Thursday February 23, 2012 @06:23PM (#3627257)
I don't believe it was GCC bashing but rather exposing an unintended consequence of a political decision that led to clang. Sad but true.