Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scatters
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
83 ms
·
541.
▲
by
scatters
8y ago
strcpy writes a trailing zero. > The strcpy() function copies the string pointed to by src, including the terminating null byte ('\0'), to the buffer pointed to by dest.
542.
▲
by
scatters
8y ago
It is not conforming, which is why `-fsanitize=unsigned-integer-overflow` is not enabled by default by ubsan. However it is available if you want to try it.
543.
▲
by
scatters
8y ago
This is already an option: `-ftrapv` or `-fsanitize=signed-integer-overflow`. I find it amusing (and somewhat frustrating) that people who complain about risks from optimizations typically exhibit a lack of awareness of the tools that compi
544.
▲
by
scatters
8y ago
It's passive observation of a successful authentication session. This may occur if the victim performs authentication over a network where you can observe the authentication traffic (even though it is encrypted in transit), or if you c
545.
▲
by
scatters
8y ago
No, that's also incorrect. The correct way is: float f; memcpy(&f, i, sizeof f); Don't worry about the implied overhead of the call to memcpy; the compiler will replace it with an intrinsic and emit the expected m
546.
▲
by
scatters
9y ago
That's the issue; how do you lean left to start with? If the human-bicycle system has its center of gravity over the wheel line, shifting your weight relative to the bike doesn't move the center of gravity - you lean one way, the
547.
▲
by
scatters
9y ago
Purebred dogs suffer a host of genetic diseases resulting in considerable suffering.
548.
▲
by
scatters
9y ago
Right. So the true answer is log2((32*31*30*29)/(4*3*2) + (32*31*30)/2 + (32*31) + (32*31)/2) = 15.675 which is still smaller than 16.
549.
▲
by
scatters
9y ago
Are you being deliberately obtuse? Right of way is the right to use the road as a highway, not for another purpose. That applies to motorists just as it applies to other road users.
550.
▲
by
scatters
9y ago
> I am looking for any example where speculative execution or fetching of protected memory is ever not a 'bug' waiting to happen in a piece of code. Um. Allocate a page of memory and then write to it (e.g. memset(mmap(NULL, PA
551.
▲
by
scatters
9y ago
That's what fix point combinators are for. The Y combinator won't work in a language like C++, but the Z will work fine. For example, here's Z in C++14, used to compute 5 factorial: https://godbolt.org/g/
552.
▲
by
scatters
9y ago
The law does require you to understand road signs and behave accordingly. It doesn't require you to get a piece of paper from a bureaucrat to attest to it. I very much doubt that you would be arrested if you tried to drive a car withou
553.
▲
by
scatters
9y ago
It would have that effect, obviously. Is this not something you've thought about before?
554.
▲
by
scatters
9y ago
This doesn't affect branches, only indirect jumps (and calls). The performance impact will still be considerable. It will make PGO more crucial (or smarter JITting, for VM languages) since the penalty can be avoided by prefixing an ind
555.
▲
by
scatters
9y ago
A "true" p-zombie would believe and claim that they have an inner monologue, and thus would be no more or less easy to manipulate than a "normal" person. It may well be a good book, but it's an abuse of terminology
556.
▲
by
scatters
9y ago
This enviromnentalism as religion attitude is hugely counterproductive. It might help motivate the believers, but it also contributes to the culture war that sees conservatives denying climate science. Everyone pollutes; when we breathe, wh
557.
▲
by
scatters
9y ago
What you did was not vandalism, but it was rude, since it violated the moral right of the other user to control the words associated with their authorship. When one contributes to the article space, one is explicitly relinquishing that righ
558.
▲
by
scatters
9y ago
Computers are well over 99% efficient as heaters. The only energy they emit is a tiny amount of EM from LEDs, clock signal and the transformer, and a minuscule amount of fan noise (which is almost all absorbed by the immediate environment a
559.
▲
by
scatters
9y ago
No, because angular momentum is conserved, assuming flat space. It is possible to change one's orientation, however.
560.
▲
by
scatters
9y ago
You're thinking of flexible or zero-length array members (`int[]` as the terminal field, or mostly equivalently, where supported, `int[0]`). VLAs in a struct only really make sense for a local type i.e. a struct defined and used with
561.
▲
by
scatters
9y ago
If stellar mass black holes are merging to form IMBHs, wouldn't we expect to detect such collision events frequently? Or have we not yet collected enough gravitational wave data to put bounds on those events?
562.
▲
by
scatters
9y ago
BigDecimal claims to be an immutable class, with only non-mutating public methods. In C, the equivalent would be that every exposed function takes `const BigDecimal *`. Even in C, it is fine for multiple threads to access the same data as l
563.
▲
by
scatters
9y ago
Emoji are an advance over emoticons because they have a standardized description. For example, if you encounter you can find that it is U+1F625 DISAPPOINTED BUT RELIEVED FACE, allowing you to know that the sender intended to convey a combi
564.
▲
by
scatters
9y ago
How would that help? The behavior would be defined, but it still wouldn't be what you /want/.
565.
▲
by
scatters
9y ago
The conglomerate discount is real - about 10% on average in developed countries. This applies to public companies, so is a revealed preference of institutional and retail investors, not VCs and angels.
566.
▲
by
scatters
9y ago
The new investor is willing to pay $100M for 25% of the company. That means they think the company will be worth $400M after they invest $100M. That means the current value of the company is ~$300M, not ~$400M.
567.
▲
by
scatters
10y ago
Similarly, "papa": click on the upper "lip".
568.
▲
by
scatters
10y ago
> What if we propose the existence an "imaginary" algorithm (call it omega, if you like) that can decide the halting problem? This is called an oracle ( https://en.wikipedia.org/wiki/Oracle_machine ). We can
569.
▲
by
scatters
10y ago
Yes, and in high school chemistry you were taught that electrons go round the atomic nucleus in orbitals. The real scandal here is the poor state of undergraduate education in economics.
570.
▲
by
scatters
10y ago
Does that count people legally barred from working (e.g. refugees)?
More ›