Hacker News new | ask | show | jobs
by dakimov 4843 days ago
I don't get it. What will happen if you violate the language semantics? They call it 'dark corners'? If you hit your head against a wall, it will hurt. Is it a 'dark corner' of life?

Overall, the presentation is very weak, like from a yesterday's graduate.

3 comments

Did you notice that not all of these corners violated any clause of the standard?

I've got quite a bit of experience with C, and I haven't heard of the "static" array size feature before, which seems extremely useful.

No comma operator on the slides. Whata pitty :-)
I am glad we all aren't experts like you then, some of the stuff I knew from before, some were really relieving.

So I am glad it was posted, it helped, me, and this comment page was also, something to both smile/laugh and learn something from. Thanks

I see this site is read mainly by dumb ignorant children.

Screw this 'community'. It sucks ass.

Also, the design of this site is awful. And the engineering skills of the Mr. PG The Greatest apparently suck as well.

Is banging your head against the wall violating the semantics of life?
Is my thought that complicated it needs additional explanation?

By the way, I'm an expert C/C++ programmer, so my opinion matters.

A self-proclaimed expert, one must add.
I don't know dakimov and what his history may be (maybe it's even a language issue or that he simply doesn't "speak HN" yet - I also sometimes find myself out of touch with the culture on this site like he seems to be), but I can vouch for what he's saying. I find it difficult to read discussions about C on HN. A lot of the discussion is as if to read a bunch of kids who seemingly just learned javascript or ruby yesterday, then they go way out of their element talking about C. An experienced and competent C programmer would not be surprised by anything in these slides, except perhaps the slide about the novel use of "static", because it's an obscure C99 feature that nobody really uses (in the same way that most people would also not recognize that, for example, C99 specifies compiler support for complex numbers).
I am an experienced and self-proclaimed competent C programmer and I was surprised enough by the "static" feature which I already love -- that I immediately upvoted this, and I'm going to spread this information after testing that it is actually usable with the common tools we use.

Sure, the other stuff was either UB or less interesting to experienced C programmers, but I'm not sure why that should be a problem. If you already know all of these, then you're not the intended audience. You can comment from a more experienced position, or just move along.

Bragging about knowing all of those and even worse - claiming they are just silly UB, all in a condescending tone as dakimov did, is a very stupid thing to do.