Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_kst_
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
_kst_
1mo ago
And if a button has appeared on the screen in the last half second or so, assume that any attempt to click it was unintentional (unless it appeared due to an explicit action by the user). Similarly, if a button has recently moved , wait a
2.
▲
by
_kst_
1mo ago
Does that really mean that the day after 24 March 1750 was 25 March 1751?
3.
▲
by
_kst_
2mo ago
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 <<< '...
4.
▲
by
_kst_
3mo ago
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 the value of something is determined by
5.
▲
by
_kst_
3mo ago
"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, and I spend ten years writing "All
6.
▲
by
_kst_
3mo ago
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; ISO adopted it, with editorial changes, in 1990. The te
7.
▲
by
_kst_
3mo ago
They hadn't yet decided whether to count from 0 or from 1.
8.
▲
by
_kst_
3mo ago
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 possible that the book itself is excellent, but I'm not
9.
▲
by
_kst_
4mo ago
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 document imposes no requirements". A conforming implem
10.
▲
by
_kst_
4mo ago
If the behavior is undefined, there is no wrong result.
11.
▲
by
_kst_
4mo ago
Are you volunteering to update all the code that would be broken?
12.
▲
by
_kst_
4mo ago
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 order of the two operations of assigning a v
13.
▲
by
_kst_
4mo ago
"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 printed copy of that book, and is almost certainl
14.
▲
by
_kst_
4mo ago
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. (The behavior of the assignment is undefined, so t
15.
▲
by
_kst_
4mo ago
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 options to the compiler that tell it to detect this k
16.
▲
by
_kst_
4mo ago
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 guarantee of a numeric result, because
17.
▲
by
_kst_
4mo ago
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 6.5 billion
18.
▲
by
_kst_
4mo ago
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 clock is set to the current time. It's always 1970 some
19.
▲
by
_kst_
5mo ago
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 article aren't useful, just going into how likely t
20.
▲
by
_kst_
5mo ago
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 its definition in another translation unit. Declari
21.
▲
by
_kst_
5mo ago
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 across the network to drive applications." It's to
22.
▲
by
_kst_
6mo ago
"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."
23.
▲
by
_kst_
6mo ago
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.
24.
▲
by
_kst_
7mo ago
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 a Presidential veto). The Senate has no such authori
25.
▲
by
_kst_
7mo ago
If you want any kind of non-trivial formatting, use the printf command, not echo.
26.
▲
by
_kst_
7mo ago
Like re-introducing wolves into Yellowstone.
27.
▲
by
_kst_
7mo ago
I'm already running tmux. Opening a new window is easy.
28.
▲
by
_kst_
7mo ago
That has the same content as git://repo.or.cz/tinycc.git
29.
▲
by
_kst_
9mo ago
The author missed an opportunity for a much shorter solution for the given problem statement. // Check whether a number is odd or even. #include <stdio.h> #include <stdlib.h> #include <stdbool.h&g
30.
▲
by
_kst_
9mo ago
I see a huge semantic gap between assembly language and C. An assembly language program specifies a sequence of CPU instructions. The mapping between lines of code and generated instructions is one-to-one, or nearly so. A C program specifie
More ›