Live data from Hacker News

Viewing profile — _kst_

_kst_

HN member
Joined
Tue, Mar 20, 2012, 10:11 PM UTC
HN karma
2,293
Public activity
685 items

About _kst_

Keith.S.Thompson+hn@gmail.com

Recent public activity

  1. comment
    Comment #49174476

    Does that really mean that the day after 24 March 1750 was 25 March 1751?

  2. comment
    Comment #48837843

    The image shows the `eval` on the same line as the `#!/bin/bash`. It should be on a separate line. #!/bin/bash eval "$(base64 -d

  3. comment
    Comment #48727957

    Of course no sane person would spend ten years writing "All work and no play makes Jack a dull boy" over and over again". That wasn't the point. The labor theory of value says that…

  4. comment
    Comment #48691997

    "Copyright demands that everyone pretend the value of someone's work is the product of that work, not the labor." Isn't it? If you spend ten years writing the Great American Novel,…

  5. comment
    Comment #48615056

    Strictly speaking it's the ISO C standard. ISO issues each new edition of the standard, and ANSI adopts it. This was reversed for the first standard, which ANSI published in 1989; …

  6. comment
    Comment #48601406

    They hadn't yet decided whether to count from 0 or from 1.

  7. comment
    Comment #48422359

    I wonder if the book itself is actually any good. My understanding is that authors often have little or not control over the covers chosen by their publishers. It's at least possib…

  8. comment
    Comment #48143207

    No, the behavior is undefined. That means, quoting the ISO C standard, "behavior, upon use of a nonportable or erroneous program construct or of erroneous data, for which this docu…

  9. comment
    Comment #48142883

    If the behavior is undefined, there is no wrong result.

  10. comment
    Comment #48142880

    Are you volunteering to update all the code that would be broken?

  11. comment
    Comment #48142877

    Your code: int a = 5; int b = a++; has well defined behavior. The first line initializes a to 5. The second initializes b to 5 and sets a to 6. (The language doesn't specify the or…

  12. comment
    Comment #48142853

    "Test Your C Skills" is a published book by Yashavant Kanetkar, apparently published in 2005, and still available in paperback. The document you linked to appears to be a scan of a…

  13. comment
    Comment #48142378

    What can be optimized out depends on the context. If you write: int i = 0; i = i++; and never use the value of i, the declaration and assignment are likely to be optimized out. (Th…

  14. comment
    Comment #48142218

    Agreed. As a programmer, the solution to "int a = 5; a = a++ + ++a;" is to decide what you result you wanted, and write code that will produce that result, and probably to pass opt…

  15. comment
    Comment #48142096

    I don't see the name "thaumasiotes" at that link, nor do I see anything relevant to the code in the title. The behavior of "int a = 5; a = a++ + ++a;" is undefined. There is no gua…

  16. comment
    Comment #48067463

    This reminds me of a passage from the book "Pro Git". https://git-scm.com/book/en/v2 > "Here’s an example to give you an idea of what it would take to get a SHA-1 collision. If all…

  17. comment
    Comment #48067383

    UUID v7 relies on knowing what time it is. Speculation: The most likely scenario for a UUID v7 collision is if UUIDs are generated during a system boot sequence, before the system …

  18. comment
    Comment #47959978

    Seriously? I discussed some of the technical issues behind the article. If you disagree with anything I wrote, please say so. I'm not even saying that the issues discussed in the a…

  19. comment
    Comment #47957649

    It's not even possible to pass too few arguments to a function in C unless you go out of your way to write bad code. You can write a function declaration that's inconsistent with i…

  20. comment
    Comment #47954720

    The summary of what this is about is: "Atproto is a big-world open social protocol. Users publish JSON records into repositories. The changestreams of those records then sync acros…

  21. comment
    Comment #47394301

    "I hate that SEPTember OCTOber NOVember and DECember aren't the7th, 8th, 9th, and 10th months." "Whoever f---ed this up should be stabbed." "I have excellent news for you."

  22. comment
    Comment #47330483

    That doesn't do much good if you set `EscapeChar` to `none` in `.ssh/config`. I find it convenient not to have to worry about accidentally entering escape characters. YMMV.

  23. comment
    Comment #47176475

    The Senate?? Any law changing the name of the Defense Department would have to be passed by both Houses of Congress and signed by the President (or by 2/3 of both Houses overriding…

  24. comment
    Comment #47108471

    If you want any kind of non-trivial formatting, use the printf command, not echo.

  25. comment
    Comment #47097158

    Like re-introducing wolves into Yellowstone.