Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dearrifling
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
dearrifling
7y ago
Exactly. https://godbolt.org/z/j-THTX
2.
▲
by
dearrifling
7y ago
Although the Badge pattern makes it flexible to add functions with different badges, this one doesn't have the awkward interface: https://godbolt.org/z/25k1DG It just makes use of the non-transitiveness of friend.
3.
▲
by
dearrifling
7y ago
Some people argue exactly that. I don't necessarily agree.
4.
▲
by
dearrifling
7y ago
It can change the "POD for the purpose of layout" status of a class on Itanium. It can change layout.
5.
▲
by
dearrifling
7y ago
You can make register_device() an inline function that just calls a do_register_device() private function without the badge. That way you don't have to pay for the empty class.
6.
▲
by
dearrifling
7y ago
This the first time I heard about a change.org petition having any effect.
7.
▲
by
dearrifling
7y ago
This doesn't remove UB though. Your compiler still can assume that null-dereference never happens and generates code with this assumption.
8.
▲
by
dearrifling
7y ago
That's true for any email, not just phising. Unless you can verify and trust all senders.
9.
▲
by
dearrifling
7y ago
Counting opening a mail as failing is ridiculous. A a phising test should only count captured logins.
10.
▲
by
dearrifling
7y ago
Fun fact: sRGB also has a non-black black point that is (fortunately) virtually ignored by everyone.
11.
▲
by
dearrifling
7y ago
If your model is simple enough to represent the original system accurately, then the original system is not complex. My model can be complex enough to represent the original system and still be useful. I can iterate on design and make measu
12.
▲
by
dearrifling
7y ago
Having a complex model that describes a complex system is not unusable though. There is a reason we want to accurately simulate the Navier-Stokes equations with complex boundary conditions.
13.
▲
by
dearrifling
7y ago
5G means that providers can sell higher data caps.
14.
▲
by
dearrifling
7y ago
On debian this is the default behavior.
15.
▲
by
dearrifling
7y ago
And surely there is nothing wrong with the alignment of ransomware authors' and this friendly service's incentives.
16.
▲
by
dearrifling
7y ago
If they offer warranty, who cares?
17.
▲
by
dearrifling
7y ago
That doesn't sound right. I think the difference is that C++ doesn't treat that as an array declaration so it doesn't require a complete type.
18.
▲
by
dearrifling
7y ago
ADL is important for customization points in modern C++.
19.
▲
by
dearrifling
7y ago
So they are misattributing the additional sale to their suggestions instead of the product being an advertisement for itself.
20.
▲
by
dearrifling
7y ago
One shouldn't std::move in a return. Returning a local is already automatically an rvalue, however explicitly moving it disables copy elision.
21.
▲
by
dearrifling
7y ago
As many words in C++, "modern" is overloaded. In this case I think it means it uses c++11 or later.
22.
▲
by
dearrifling
7y ago
std::function implementations typically have small buffer optimization, a lambda capturing a single reference will most likely fit in there. But yes, it's quite heavyweight in general.
23.
▲
by
dearrifling
7y ago
Well, that example shows some too stringy API for my taste.
24.
▲
by
dearrifling
7y ago
About that luminance-correct grayscale: https://entropymine.com/imageworsener/grayscale/
25.
▲
by
dearrifling
8y ago
100ms of keypress-to-sound latency makes the instrument unplayable. What about organ players?
26.
▲
by
dearrifling
8y ago
You can have unrelated commits and roots in a single git repo. No need for empty root commit.
27.
▲
by
dearrifling
8y ago
That has nothing to do with memory safety, that's just plain UB.
28.
▲
by
dearrifling
8y ago
It's because what most people call RGB is sRGB, a nonlinear color space. Interpolating in a linear color space is already much better.
29.
▲
by
dearrifling
8y ago
Awesome! According to the description of the internals this only works with offsets and doesn't adjust the subtitle's playback speed. I think playback speed variations are not that broad, it's usually caused by playing a subt
30.
▲
by
dearrifling
8y ago
Note that '<input grep | foo' is also valid.
More ›