Viewing profile — _kst_
_kst_
HN member- Joined
- Tue, Mar 20, 2012, 10:11 PM UTC
- HN karma
- 2,293
- Public activity
- 685 items
- HN profile
- View on Hacker News ↗
About _kst_
Recent public activity
-
comment
Comment #49174476
Does that really mean that the day after 24 March 1750 was 25 March 1751?
-
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
-
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…
-
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,…
-
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; …
-
comment
Comment #48601406
They hadn't yet decided whether to count from 0 or from 1.
-
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…
-
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…
-
comment
Comment #48142883
If the behavior is undefined, there is no wrong result.
-
comment
Comment #48142880
Are you volunteering to update all the code that would be broken?
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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 …
-
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…
-
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…
-
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…
-
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."
-
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.
-
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…
-
comment
Comment #47108471
If you want any kind of non-trivial formatting, use the printf command, not echo.
-
comment
Comment #47097158
Like re-introducing wolves into Yellowstone.