@valigo I knew having it for a few years already, before a name was given to it. Then later I came early wikipedia (pre-2017) article and it said "Aphantasia is a hypothesized neurological condition" and I was like wtf you mean "hypothesized"!
@nicbarkeragain The thing is if the free model is terrible beyond belief why would I even pay to try a better?
And ChatGPT is the worst, even asking simple question it always try to "one-up" with some gotcha that turns out to be nothing when you ask it what it meant.
@ChShersh Way past a decade since I browsed the literature, but pretty sure you can use parameters as a shorthand for arguments, because arguments="actual parameters". Doesn't work the other way though.
@lemire Weird. When I drop the contracts and use [[assume]], GCC trunk on Godbolt still uses div, but Clang optimizes. So does not look like a contracts issue.
@tuccio__@Jonathan_Blow@denbvk On the given compiler(s), the required behavior was of course achieved. While not naming it "strict aliasing", it did exist back then, even in C89, in the expressions chapter:"An object shall have its stored value accessed only by an lvalue that has one of the following
types..."
@yaserx@lemire The compiler doesn't know that value >= 10 is rare. Removing the branch, and even auto-vectorizing to process megabytes of data is not faster if value >= 10 is not quite rare.
@Armandotrue@Jonathan_Blow As I understand, their equal was broken. They have equal(a, b) == TRUE, except it should be false for the particular 'a' and 'b' here, due to a bug. In order for this bug to manifest it first has to pass h(a) == h(b) (otherwise we abort early and don't to the equal check).
@Armandotrue@Jonathan_Blow Reading the fix and skimming the code, they use the property: h(a) != h(b) => a != b. The actual problem seem to be a broken inductive construction, such that equal(a, b) says true despite a != b. To get that incorrect, false result the hashes must match first.
@Jonathan_Blow Seems to me they do compare values: https://t.co/QpkmNGzFcq . In fact, looking at the fix, seems bug has nothing to do with hash. Of course you need hashes to be equal to then do the malformed structural check, but you would do that always if no hashing was used too.
@smorcrux@Jonathan_Blow You are assuming you can compare bitwise. If you expect to do multiple comparisons, and the value itself is a big complex nested object, a simplified value like hash, is how you get a trivial bitwise value to quickly discard non-equal candidates.