« first day (3517 days earlier)      last day (1417 days later) » 

5:06 AM
Do pets truly love their owners or some of them just suffer from Stockholm syndrome, or a mixture of both? :p
 
5:21 AM
leave the gate open and find out
 
Do pets get lost often? Especially when they have never been to the outside of your yard.
 
the weak ones do
 
 
7 hours later…
12:30 PM
@Feeds Rewrite it in Rust much
 
 
8 hours later…
8:15 PM
Not a single recent starred message by Jerry Coffin, the world is definitely sick these days.
@StackedCrooked I did hash_range(str, str + len) in the end since it's a plain C string anyway.
Now I have a more tricky question I think
Suppose there is a binary data format that stores data using various types defined by a spec
So the spec reads, for example: type "i2" is stored on disk as a 2 byte signed integer, 2's complement, big endian, along with a diagram of the bits.
 
Hi guys, I need help with binarySearch with an array of strings
 
I want to understand thoroughly how such data is meant to be read into a C++ primitive data type. I understand that typically, ints (more like short in this example though its not guaranteed either) are stored 2's complement in RAM with C++. But not always. And a short can be more than 2 bytes long on a given arch.
So am I supposed to read it bit by bit and reconstruct the integer, or can I just read it with a reinterpret_cast of the bytes after adjusting the byte order to my machine's endianness?
 

« first day (3517 days earlier)      last day (1417 days later) »