« first day (3748 days earlier)      last day (1425 days later) » 

00:59
@CupOfJava Well, if you ask Jerry, who counts from zero, it's actually a "metathree."
5
 
7 hours later…
07:37
So, for some interview questions I'm trying to find slightly messed up function signatures. For example, int median(unsigned char* values, int elements) as an example of a slightly messed up function signature. But I can't seem to generate any more :-(
 
1 hour later…
08:48
Morning
 
1 hour later…
10:10
Shalom
nwp
nwp
10:44
@Mikhail std::min is fucked up and the lesson learned is transferable to other functions.
One could argue std::accumulate is similarly fucked up because the type of the accumulator is unspecified.
You can swap around the order of arguments in memcpy-like functions.
You can have some generic algorithm not allow 2 different types for the iterators.
 
4 hours later…
14:52
So your recommendation is to make this interface decision based on an implementation detail of the function (that is, whether the function happens to store a copy of the input string value)? Really? — Don Hatch 15 hours ago
wut
C++ is a language that literally revolves around lifetime and ownership
15:18
@Mysticial as someone that works closely with hardware... thoughts on Apple's M1?
16:06
I find it interesting that they built x86 memory consistency instructions into the ARM architecture to speed up emulation. Though I don't know enough about the differences to know how difficult that is.
 
2 hours later…
17:42
@ratchetfreak more of a page flag IIRC. I don't know what it means microarchitecturally other than they basically turn off a lot of superscalar reordering
Honestly kind of surprised x86 hasn't introduced something in reverse. A flag that allows a code segment to follow more RISC-like rules
 
2 hours later…
19:44
But I think those x86 memory consistency instructions are optional?

« first day (3748 days earlier)      last day (1425 days later) »