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

12:59 AM
@CupOfJava Well, if you ask Jerry, who counts from zero, it's actually a "metathree."
5
 
 
7 hours later…
7:37 AM
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…
8:48 AM
Morning
 
 
1 hour later…
10:10 AM
Shalom
 
nwp
10:44 AM
@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…
2:52 PM
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
 
3:18 PM
@Mysticial as someone that works closely with hardware... thoughts on Apple's M1?
 
4:06 PM
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…
5:42 PM
@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…
7:44 PM
But I think those x86 memory consistency instructions are optional?
 

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