25 september 2021
hi
back before the trans shitshow, I lived right next to a pizza truck, and their pizzas were super good
then I had to move and all...
just yesterday I've been hanging around with these old friends, and they still live around that place, so we had to get pizzas
they're still as good! I got the egg-bacon one, which I really like.
was also nice to see these friends, too, it had been a while
I always have trouble with these things, thinking of all the people I should contact, but staying stuck in my routine and never actually doing it...
plus, I always have trouble with relationships in general. I have a hard time determining how strong the bonds are, how much people actually like me, I don't want to overestimate and then feel like an idiot... argl.
I've been talking with my relatives about synesthesia
it's said that it can be hereditary. and it turns out my sister has it, but my parents don't. go figure.
fun shit
I have a hard time keeping a train of thought for this, and not spreading over 5276323 other things
ADHD, huh.
I still haven't attempted to get a diagnosis for it. actually, I'm not sure whether I should go for ADHD or autism, given the overlap between the two, and given I exhibited traits of both when I was a kid. can't I go for some diagnosis that covers both, and they determine what I actually have?
shrug.
I've been writing some code for melonDS lately, but (surprise) I hit a roadblock, and have been ADHDing around since.
the basic idea was to build a FAT image from a given folder, for example for DLDI. that task alone is easily accomplished with fatfs, but I also want it to be smarter: keeping track of which files need to be updated instead of rebuilding the whole thing, reflecting changes on the FAT image to the host folder, etc.
performance wise, it isn't really feasible to go and open all the files and compare the data. so instead I opted to check the last-modified dates against an index of sorts.
that's where shit is tricky.
I first went for the old POSIX API for dealing with the host filesystem. all good and nice, except Windows doesn't have stat(), so that sucks.
I figured an alternative would be using std::filesystem. nice and all, plus there's already a recursive folder iterator, just what I need.
yeah except now the 'last modified time' for a file is returned as some obscure modern-C++ type, and I don't know how to deal with that -- how to turn it into something that can be stored in a file, and more importantly, how to read a value from a file and turn it back into that type, without it explding if the value isn't right.
that's exactly why I don't like modern C++. suddenly everything is some obscure magical black-box, and things explode in really obscure and weird ways if you don't do your things the right way. modern C++ tries hard to become a high-level language, but it can't really escape its low-level roots.
I prefer lower-level code anyway. I like knowing what it does at the machine level, even moreso when the code in question is performance-critical.
blarg.