by tacker2000 · 1y ago · 0 comments
If a simple bitset like this exists in a library somewhere I would love to see where! Most implementations I've seen over-complicate it for simple use cases like this.
Bunches of bit twiddling things people like to do in different places for either speed/space.
I am aware of the bithacks page, but I just found encoding the bit coordinate in the ID itself so clever.
"Lol, this is the obvious implementation."
or
"Lol, just use a boolean."
That is to say, those that might be interested would already know. I'd expect very little in between.
Fwiw, I do think noticing the id readability is notable from a reverse engineering standpoint.