r/ProgrammerHumor • • 14d ago

Meme cppAndItsVectorBooleans

Post image
3.4k Upvotes

214 comments sorted by

View all comments

Show parent comment

1

u/amshegarh 13d ago

That is interesting, but you can directly use pg for that (assuming you had one?)

Otherwise its just an array of ints (instead of one) + bitwise logic

1

u/Mountain-Ox 13d ago

We were on MySQL, this was during the lamp stack days. And I don't know if MySQL ever added features like that. I don't think it had native json support.

1

u/autumnal-lights 12d ago

not sure why you're being downvoted, array is on the stack, it's the same as a class which packs like 3 ints?