Slashdot Mirror


User: jps25

jps25's activity in the archive.

Stories
0
Comments
96
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 96

  1. Re:Ergo! on Ask Slashdot: Good Keyboard? · · Score: 1

    Linux isn't POSIX-compliant.

  2. Re:Minor quibble on Newly Discovered Sea Creature Was Once the Largest Animal On Earth · · Score: 1

    It was the largest animal on earth half a billion years ago.
    Since then there have been larger animals, including larger arthropods.

  3. Harry Chapin's grandfather on Ask Slashdot: Terminally Ill - What Wisdom Should I Pass On To My Geek Daughter? · · Score: 3, Insightful

    I'd like to quote Harry Chapin retelling a story of his grandfather.
    I wished I had learnt this lesson a lot earlier in life.
    "There's two kinds of tired. There's 'good tired' and there's 'bad tired'.
    Ironically now, 'bad tired' can be a day that you won, but you won other peoples' battles, you lived other peoples' days, other peoples' agendas, other peoples' dreams and when it's all over there was very little you in there and when you hit the hay at night somehow you toss and turn, you don't settle easy.
    'Good tired', ironically enough, can be a day that you lost, but you only have to tell yourself, cause you knew, you fought your battles, you chased your dreams, you lived your days and when you hit the hay at night you settle easy, you sleep the sleep of the just and you can say 'take me away'."

    Do listen to the full story.
    https://www.youtube.com/watch?...

  4. Re:Ergonomic and wireless? on Know Your Type: Five Mechanical Keyboards Compared · · Score: 1

    That keyboard uses scissor-switch keys, but the ergonomic layout is nice.
    Currently I use the MS Wireless Comfort 5000.
    I prefer Cherry MX-Blue but my wrists demand an ergonomic layout.

  5. Ergonomic and wireless? on Know Your Type: Five Mechanical Keyboards Compared · · Score: 2

    Are there any ergonomic mechanical (and wireless) keyboards?

  6. Re:Windows 7 compatibility mode on Ask Slashdot: Best 32-Bit Windows System In 2012? · · Score: 1

    Compatibility mode doesn't always work. For example Kathrein's DVR manager requires a driver that does not run on 64bit.
    Thankfully it works in a VM with 32bit XP.

  7. Re:fp on Objective-C Overtakes C++, But C Is Number One · · Score: 1

    I stand corrected. Shame on me, I suppose.
    No idea why 6.7.5.3p14 had slipped my mind so badly.
    Certainly embarrassing enough.

  8. Re:fp on Objective-C Overtakes C++, But C Is Number One · · Score: 1

    The main in C and C++ differ.
    The main in C in hosted environments has been either
    int main(void) { /*...*/ } or
    int main(int argc, char *argv[]) { /*...*/ }
    since at least the C89 standard.
    http://web.archive.org/web/20050207005628/http://dev.unicals.com/papers/c89-draft.html#2.1.2
    C99/C11 Section 5.1.2.2.1
    For freestanding environments the standard states that the name and type of the function called at program startup are implementation-defined.
    So, yes void main() would be perfectly valid C if the freestanding environment requires it that way.
    Obviously gcc doesn't have to support it or any freestanding environment.
    I didn't imply it had to, I merely stated that gcc complains about one incorrect main in a hosted environment but not about another in a hosted environment.

    The main in C++ in freestanding environments is, again, implementation-defined.
    In hosted environments the main shall have a return type of int but its type is implementation-defined.
    Any implementation must at least support
    int main() { /*...*/ } and
    int main(int argc, char *argv[]) { /*...*/ }
    Has been like that since the C++98 standard, section 3.6.1.

    In C int f(void) is a function with no parameters returning an int,
    int f() is a function with no parameter specification returning an int.
    They are not the same and should not be treated as such.

    So, what we have is GCC supporting the standard, but whose implementation differs from other compilers. The devs made the choice to not support void main and that's perfectly fine. Nearly everybody who declares main as void are doing so in a hosted environment, and warnings/errors and completely justified.

    No. What we have is gcc failing to support the most basic part of the C standard, rendering its -W flags at least questionable.
    If it can't warn about an improper main, what else is it failing at?
    All I really wanted to point out is that using some code and a compiler is no way to verify the standard.
    I used main as an example because the OP wrote int main() in his "verification".

  9. Re:fp on Objective-C Overtakes C++, But C Is Number One · · Score: 1

    And regarding the original discussion about uninitialised local variables I agreed with you. But that's because of the standard, not because of how gcc does things.
    Regarding gcc's adherence to the standard I gave you the most basic example a compiler should get right but doesn't.
    All I'm trying to tell you is that if you want to verify that something is according to the standard, then using a piece of code and a compiler is not the correct way to do it, especially since a compiler can do whatever it wants with all undefined and implementation defined behaviour in the standard.
    gcc could have easily chosen to always initialise uninitialised local variables to 0 regardless of optimisations.

  10. Re:fp on Objective-C Overtakes C++, But C Is Number One · · Score: 1

    No, you verified it well enough for gcc.
    gcc complains about void main(), which is perfectly valid C in a freestanding environment, so why can't it complain about int main() in a hosted environment?
    My best guess is that the gcc devs don't care about the difference between C and C++ mains because int main() is correct C++.
    Or they don't know. Or they're just lazy. In any case, if gcc wasn't free and available, I doubt it'd be used as much.

  11. Re:fp on Objective-C Overtakes C++, But C Is Number One · · Score: 1

    You didn't actually verify it by using gcc but you're still correct.
    By using gcc you only tested gcc's implementation-defined C behaviour.
    If gcc was strictly adhering to the C std it would tell you that int main() is undefined behaviour on hosted environments and implementation-defined on freestanding environments.

  12. Re:Odd question. on Ask Slashdot: How To Introduce Someone To Star Trek? · · Score: 1

    Well, someone's a little sissy.

  13. Re:Odd question. on Ask Slashdot: How To Introduce Someone To Star Trek? · · Score: 1

    And you need someone to hold your hand while watching a show?
    Not grown up enough to put a DVD in and hit play?
    Does someone still cut your food for you?

  14. Re:Strange on Ask Slashdot: How To Shop For a Laptop? · · Score: 1

    Never looked at newegg, considering it's a site for the US market, but I'm not really impressed by its design.
    I prefer geizhals.at. Although that site is obviously best for the Austrian/German market one can still use it to narrow it down.

  15. Re:Dropping the GPL ~= worse. on FreeBSD 10 To Use Clang Compiler, Deprecate GCC · · Score: 1, Offtopic

    Don't put words into my mouth.

  16. Re:What's wrong with GCC? on FreeBSD 10 To Use Clang Compiler, Deprecate GCC · · Score: 5, Informative

    The GPL.

  17. Re:Warranty? on Philips Releases 100W-Equivalent LED Bulb, Runs On Just 23 Watts · · Score: 1

    Philips is Dutch.
    If you want a German one, then buy Osram.
    All my CFLs are Osram with 5 year warranty. So far 3 out of about 20 have failed after 3-4 years.

  18. Re:Let's get Godwin out of the way on European e-ID Announced · · Score: 1

    If you're claiming that one has to carry the Ausweis or the passport on one's person, then you're wrong.
    In any case, you're a cute one.

  19. Re:Let's get Godwin out of the way on European e-ID Announced · · Score: 1

    Only partially true.
    It is only mandatory to be able to identify yourself.
    Whether you do this with a Personalausweis or a Reisepass ("passport") is up to you.
    Unless you require a passport for your travels, the Personalausweis is the cheaper alternative.

  20. Re:Vegan mums today. on Eating Meat Helped Early Humans Reproduce · · Score: 1, Flamebait

    I'd rather talk to Jehovah's Witnesses than vegans. In my experience they're a lot friendlier than vegan cunts.

  21. Re:Student of American History on Iran War Clock Set At Ten Minutes To Midnight · · Score: 1

    Then it's time for you to grow again and judging by your behaviour you still have a lot of growing to do.
    Don't misinterpret my apparent lack of arguments. It's merely a lack of interest in debating with you.
    You obviously believe that your opinion is the gospel and people who disagree with you are mentally challenged.
    I wonder why you feel the need to win a debate with someone who's mentally challenged. After all, you clearly have no issues.

  22. Re:Student of American History on Iran War Clock Set At Ten Minutes To Midnight · · Score: 1

    I find it very amusing that you feel the need to attack me instead of simply accepting that not everyone is like you and that your inane generalisation is simply wrong. Clearly I'm the psychopath. In words I'm sure you'll understand "2/10 would chuckle again".

  23. Re:Student of American History on Iran War Clock Set At Ten Minutes To Midnight · · Score: 1

    Right.
    You already had me convinced when you had to capitalise "more" but you totally blew my mind when you said that it's totally true.
    Totally foolish otherwise, bro. Totally didn't understand a single word before but I'm totally enlightened now. Totally thankful.

  24. Re:Student of American History on Iran War Clock Set At Ten Minutes To Midnight · · Score: 3, Insightful

    It might be your nature. It isn't mine. It isn't human nature. And there's everything wrong with it.

  25. Re:I miss GOTO...there I said it on Visual Studio Gets Achievements, Badges, Leaderboards · · Score: 4, Informative

    The Linux kernel uses goto statements. About 95000 times..