Admitting defeat. No problems at all with compilers after all. I wrote a buggy accumulator and the bug manifested when the elements were ordered in a specific way.
... I was iterating over an unordered_map...
Career 1st.
Discovering a potential code gen bug on C++ @VisualStudio compiler...
... While doing a take-home exercise for an interview. (Details TBD since I have to coordinate releasing the code to the public with the interviewer)
@dyaroshev This is one of the real examples where "c++ requires a lot of boilerplate" really applies. If you know, you know...
(Not spoiling with details as this can be a legit interview question in some shops)
From the perspective of deduplicating codepaths, it’s a compression problem—if you compress too early, you get bad compression, because good compression requires more information about the entire dataset. So you can’t deduplicate too early.
@sergei_am Member reordering implies layout sensitivity. Could you maybe hoist the problematic initialisation to a (potentially-defaulted) ctor parameter?
Hard to know without seeing code 😔
@sergei_am Caching!? Jokes aside... Legitimate uses might exist depending on context.
But if I had to use an authoritative sounding term, it would be:
Data-member-initialization-interdependincies
You heard it here first!
@SeaOfThieves Cannot believe SoT is still going...
11th Season... On my 40th birthday nonetheless!
It still seems like yesterday when me and @ChrisMarlow666 were coding up fishing!
Keep up the good work crew!
Hi! I'm a professional pixel artist, illustrator and animator with 14 years of experience looking for a paying project. Doesn't have to be games.
RTs are really appreciated. ty!
#gamedev#pixelart
@fbuontempo Comma operator discard?
Some unintended std::string ctor overload?
Something to do with multi-arg bracket operator?
Hard to tell without reference 😩.
ELI5 please?