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,…
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…
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…
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 the…
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…
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…
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 don't…
> 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…
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 easily…
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,…
> 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…
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…
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…
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.
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();…
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…
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…
> 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…
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…
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…
It's entirely possible that /usr might be a separate partition from /, so hardlinks wouldn't work.
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…
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 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…
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…
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,…
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…
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…
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 the…
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…
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…
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 don't…
> 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…
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 easily…
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,…
> 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…
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…
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…
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.
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();…
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…
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…
> 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…
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…
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…
It's entirely possible that /usr might be a separate partition from /, so hardlinks wouldn't work.
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…
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 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…
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…