« first day (5023 days earlier)      last day (144 days later) » 

06:41
jezus christ, what s up with youtube lately??
My adblocker keeps on getting detected, regardless of the browser and whether I remove and reinstall it
 
3 hours later…
09:35
I'm working on something fun in C++17, but implementing the interface is killing me. Specifically, a char vector backed data structure that allows me to change my mind over what type I want to store in it. HellVector v; v.push_back<SigChunk>(s); v.clear(); v.push_back<SigBit>(s);
09:52
writing Templates can be a bit annoying. Since you can go months or years with just using themplates and then you have to write one again and you have to use some features of C++ you haven't used in a while
nwp
nwp
Not knowing the type of stuff is inherently painful.
You can make this, but then for every operation (except clear I guess) you have to specify the type and you better not get it wrong.
Can't set the state.
std::variant<std::vector<SigChunk>, std::vector<SigBit>> solves the problem as stated and your interface is not going to be any better, but it's fairly painful to use.
11:01
Actually, std::variant doesn't solve my problem, since a union based implementation required me to destroy one vector and construct the other, which called needless delete and new. Unfortunately, this data structure is used such that it's often converted from one to the other. I'm doing this the way I'm doing it because that perf hit was a deal breakers
nwp
nwp
11:22
I guess I gave too much credit to the v.clear();.

« first day (5023 days earlier)      last day (144 days later) »