Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dooglius
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
451.
▲
by
dooglius
4y ago
If the cost of adjusting to the new thing is greater than the "objective" benefit it provides, then it is better not to change.
452.
▲
by
dooglius
4y ago
> most people don't consider targeting advertising to be "spying and psychological manipulation" A bit of a catch-22; if they did consider it that, then the manipulation wasn't very good, was it? The revealed preferen
453.
▲
by
dooglius
4y ago
I find the most readable, unambiguous thing is to define explicit macros or constants, e.g. if(ckd_add(&result_add, a, b) == CKD_SUCCESS) { ... } or alternatively, if(CKD_SUCCESS(ckd_add(&result_add, a, b))) { ... }
454.
▲
by
dooglius
4y ago
This is already present as a builtin in in GNU C (as indicated in TFA) and it already results in the optimal code: https://godbolt.org/z/qc4zvav7E
455.
▲
by
dooglius
4y ago
I think it's pretty clearly feasible in the specific example GP gave, since -fwrapv does this for GCC and clang. In principle it should be do-able from code level with e.g. 'pragma gcc optimize("frapv")' (but the gc
456.
▲
by
dooglius
4y ago
If "i" started out higher than "n", the loop would exit immediately and there would be no increment. More generally, if "n" is an int, then even if n is modified each iteration, the "i < n; i++" st
457.
▲
by
dooglius
4y ago
If it would result in different behavior in the event of an overflow (which I think is generally not the case), then no. A typical for loop (using <) can easily been seen to not overflow, so this is a rare case anyway. Loops using signed
458.
▲
by
dooglius
4y ago
Compiler developers may not think they have that obligation, but they should
459.
▲
by
dooglius
4y ago
Looked into this and it appears it was not the case; the docs were confusingly written, and the docs appear to have been rewritten some time ago https://marc.info/?l=gcc&m=102068997020453&w=2
460.
▲
by
dooglius
4y ago
Wouldn't they be at a strict disadvantage because they cannot eat other typical-chirality-producers for resources?
461.
▲
by
dooglius
4y ago
Oh sure, the point is more that Ethernet/IP has to coordinate two separate ID spaces at all, whereas AFAIK no other packet-based protocol like the ones mentioned does this, so in that sense those protocols are better.
462.
▲
by
dooglius
4y ago
Why do you say that these protocols are worse than Ethernet/IPv4? I'm not intimately familiar with any at L2/L3, but I don't think any have hacks as bad as ARP. (USB does have some weirdness at L1 though I know.)
463.
▲
by
dooglius
4y ago
I suspect there are just too many real things it would actually break. Alarm clock websites, for instance, off the top of my head.
464.
▲
by
dooglius
4y ago
> You think the people that created what you want to use are bad people, infringing on your rights, why would you still use their stuff? For internet content, the people who create the content I want and the people adding the advertiseme
465.
▲
by
dooglius
4y ago
Did the "cloud hype" really "blow over"? Seems to be a pretty big thing nowadays.
466.
▲
by
dooglius
4y ago
Better to just add a new stop button rather than overload minimization. In any case, if your concern is web pages, your browser needs to implement this, not your window manager (unless you are not using tabbed browsing, which I doubt).
467.
▲
by
dooglius
4y ago
This seems like an uncharitable take, the set of axioms and definitions used doesn't really fall under "mathematical truths", it's about agreement on what is implied by a given set of axioms. Even on Earth many people wo
468.
▲
by
dooglius
4y ago
Division, remainder, and memory access are data-dependent, someone who didn't know better could easily put those in a cryptographic algorithm (or worse, a compiler could transform a program into using these).
469.
▲
by
dooglius
4y ago
Wonder if this is because of the zero-value optimizations on Ice Lake: https://travisdowns.github.io/blog/2020/05/18/icelake-zero-o... https://news.ycombinator.com/item?id=23225260
470.
▲
by
dooglius
4y ago
I'm sure it's still true that you can ask! Whether it works I expect will depend on the professor.
471.
▲
by
dooglius
4y ago
https://www.merriam-webster.com/dictionary/audit Definition 2 under the verb form
472.
▲
by
dooglius
4y ago
From TFA: > After looking at some logs we do end up with potentially bogus panel power sequencing delays, which may harm the LCD panel. So sounds like it can cause some out of spec stuff at the analog level, which could plausibly result
473.
▲
by
dooglius
4y ago
Not really, I've nearly fallen for this, it looks like legit medicine if you aren't looking carefully to see the part where it says "homeopathic".
474.
▲
by
dooglius
4y ago
LIGO is another example
475.
▲
by
dooglius
4y ago
There is no "conflict" other than that which is created by most distros; there is no inherent problem to having different applications use different versions of libraries. Containers/nix/whatever do not really sidestep t
476.
▲
by
dooglius
4y ago
What does "$@@" do? I have used just "$@" for what the script at the end is trying to accomplish, is there some edge case where that fails?
477.
▲
by
dooglius
4y ago
Multi-user systems, where things outside $HOME are not editable, and where different users may have different configurations.
478.
▲
by
dooglius
5y ago
Python does not have arbitrary precision for floating point
479.
▲
by
dooglius
5y ago
You just have to take out square factors from each, and combine terms with matching sqrt(n), and that will be unique
480.
▲
by
dooglius
5y ago
So what is N here? The sequence length, number of digits across all sequence elements, sum of all elements?
More ›