Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
s28l
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
s28l
3mo ago
char* can also be a C-style string. std::byte has the same special treatment in the standard as char and unsigned char, with the added benefit of not being used for other purposes (i.e. ASCII character or uint8, respectively).
2.
▲
by
s28l
3mo ago
C style cast can be either a static_cast or reinterpret_cast, but it can also be a const_cast or a static+const or reinterpret+const. Finally, it will perform a static_cast that bypasses private inheritance (because the alternative would be
3.
▲
by
s28l
1y ago
I find this article rather underwhelming because it spends so much time calling out bad examples and so little time highlighting examples of subtlety (in any era). Without positive examples, I don’t think they make the case that this is a n
4.
▲
by
s28l
3y ago
Maybe it's a combination of the "bend" and the "long slow" part. If you are making a turn the centrifugal force will push the fluid away from the axis of rotation. There is likely a level sensor only on one side of
5.
▲
by
s28l
3y ago
Doesn't the unrolled version skip the speculation for three out of every four entries? If so, it seems suspicious that it does so much better when it looks like it's a mix between the first and second version instead of just an un
6.
▲
by
s28l
4y ago
His goal seems to be to effect change. My understanding is that before reaching these questions, he _was_ interested in the job. Explaining to a potential employer that they lost a candidate's interest because of their application ques
7.
▲
by
s28l
4y ago
Considering he also wrote a blog post criticizing this question, I feel comfortable saying that he already passed on this job. So saying you'd pass on him has "you can't quit, you're fired!" energy to it. Also, I do
8.
▲
by
s28l
4y ago
> Also, you can short crypto on CME. Is that rigged too? I think your first point is fair, but I think you're overselling things here. Yyou can only short Bitcoin, not all crypto, but the real issue is that the Bitcoin futures curve
9.
▲
by
s28l
4y ago
There is a big difference between "undefined" and "unspecified" behavior. In this case, the behavior of `unique_ptr(unique_ptr&&)` is in fact specified. [0] However, the bigger issue with that code is that it can
10.
▲
by
s28l
4y ago
Against better judgement (and advice of counsel, presumably), this guy is still running his mouth to the media. If you had a disgraced former crypto CEO who was still willing to speak at your finance conference, wouldn't you keep him o
11.
▲
by
s28l
4y ago
> No, just no. Why is the MSM putting out constant puff pieces about this guy? Just to be clear, this is the archive of a puff piece published on the Sequoia Capital website: they were talking up their book. They took it down when they w
12.
▲
by
s28l
4y ago
As of 2008, options market makers are not allowed to naked short. [0] The only remaining exemptions to restrictions on naked short selling are for equity market makers. These market makers are still subject to delivery requirements (T+2). P
13.
▲
by
s28l
4y ago
I don't think that's true. Neither C nor C++ would allow you to invoke a function with an incomplete type, regardless of whether it is a `struct` or an `enum`, so there's no ABI issues with forward declaring them, but you wou
14.
▲
by
s28l
4y ago
I think the only benefit of `_Pragma` is that it enables defining a macro that expands into a `#pragma` definition. I don't think there's any other use case beyond that.
15.
▲
by
s28l
4y ago
I meant that they are processed before any syntactical analysis, so they're not particularly useful for this kind of thing. For example, these are all wrong usages of our hypothetical `#pragma unreachable`: void foo(); #pragm
16.
▲
by
s28l
4y ago
That was unclear on my part, but I meant a new compiler in terms of "new to the project", not "new to the C++ community". The linked SO answer only covers those three compilers, which illustrates the issue I was talking
17.
▲
by
s28l
4y ago
1. It is a compiler defined function (`__builtin_unreachable()`), but the issue is that MSVC doesn't have it, so you need a different implementation per compiler [0]. Plus, if a new compiler shows up (besides MSVC/GCC/LLVM),
18.
▲
by
s28l
4y ago
> Some scripts are better to either have explicit error handling code, or simply never fail. Silently ignoring sub-commands that exit with a non-zero code is not the same thing as "never failing". Your script might return 0, bu
19.
▲
by
s28l
4y ago
The risk profile is different. Yes, both have a payout that depends on your own mortality, but there are other risk factors to consider. An annuity is also a credit risk: if the counter-party goes under, then your payments will stop. Since
20.
▲
by
s28l
4y ago
My understanding of the article was that the perpetrator was hit with a genuine DMCA notice that he was upset about. It seemed his plan was to generate these fake notices with the hope that they'd be noticed and rolled back, and in the
21.
▲
by
s28l
4y ago
It's entirely possible that /usr might be a separate partition from /, so hardlinks wouldn't work.
22.
▲
by
s28l
4y ago
Most political consulting firms do the majority of their work for a single party, so they can reasonably be identified as either "Republican" or "Democratic". Some non-nefarious reasons why this clustering tends to occur
23.
▲
by
s28l
5y ago
There is a lot to disagree with here. First, the article itself provides an example of an army with a superior fighting force that had far fewer casualties than the other side, yet still lost the war. That was due to the civilians back at h
24.
▲
by
s28l
5y ago
The breeder's equation described the expected change in a _population_ from one generation to the next due to selection pressures (natural or artificial). For example, say a cattle rancher with a large herd may want to increase the ave
25.
▲
by
s28l
5y ago
The author is playing fast and loose with definitions here. Other sources[0][1] (that I would consider more reputable) define the breeder's equation in terms of populations, but this author focuses on arbitrary and ill-defined subsets