Slashdot Mirror


Linus Rants About C Programming Semantics (iu.edu)

jones_supa writes: "Christ people. This is just sh*t," begins Linus Torvalds in his message on the Linux Kernel Mailing List. Torvalds is grumpy because some new code added to the IPv6 subsystem has created conflicts. "The conflict I get is due to stupid new gcc header file crap," he writes. "But what makes me upset is that the crap is for completely bogus reasons." The new improved code uses fancy stuff that wants magical built-in compiler support and has silly wrapper functions for when it doesn't exist. Linus provides an alternative that contains a single and understandable conditional, which looks cleaner and generates better code.

5 of 576 comments (clear)

  1. Have a Snickers Linus by CMOS4081 · · Score: 5, Funny

    You turn into Steve Jobs when you are hungry.

  2. Re:Not programming semantics, but the coder by wonkey_monkey · · Score: 4, Funny

    His reasoning: the compiler could have a bug and this way you would catch that bug.

    That's why all my variables are upper case and only use vowels. One day there might be a bug with lower case consonants, and then all you suckers will be laughing on the other side of your faces!

    --
    systemd is Roko's Basilisk.
  3. It's no by konohitowa · · Score: 5, Funny

    three

  4. chaining by konohitowa · · Score: 5, Funny

    together.

  5. Re:Not programming semantics, but the coder by grcumb · · Score: 4, Funny

    Even better is having an "Undo" button (or in the case of a forum like this, an "Edit" button).

    The reason for not having UNDO should be obvious:

    Someone writes a post saying, 'Bieber is such a dick! Post below if you agree.' Hundreds do.

    Then the OP edits the post to read, 'Dick tastes great! Post below if you agree.'

    --
    Crumb's Corollary: Never bring a knife to a bun fight.