Pop Goes the Population Count?
Posted by hasheddan 3 days ago
Comments
Comment by dhosek 3 days ago
Comment by silisili 3 days ago
Maybe a bit of a stretch, but I could see it fitting - https://en.wikipedia.org/wiki/Aptronym
Comment by bombcar 3 days ago
Comment by kens 3 days ago
[1] https://retrocomputing.stackexchange.com/a/8666/4158
[2] https://archive.computerhistory.org/resources/access/text/20...
Comment by pklausler 3 days ago
Comment by adgjlsfhk1 3 days ago
Comment by thefaux 3 days ago
Side note: many years ago I wrote the backend for a private global surveillance system that has almost surely tracked the physical location of anyone reading this. We could efficiently track how often a device had been seen at a location in the prior 64 (days|weeks|months) in just 192 bytes and use popcount to compute the value. I am not proud that I built this.
Comment by Quekid5 3 days ago
Not that you couldn't do source level analysis as you suggest... it just wouldn't be effective in many cases.
It would also be 'unstable' in the sense that it might depend on architecture, etc.
Comment by adgjlsfhk1 3 days ago
Comment by majke 3 days ago
Comment by azinman2 2 days ago
Comment by wat10000 3 days ago
I don't know if compilers are able to detect this and compile it down to a single instruction, though.
Comment by mattgodbolt 3 days ago
Comment by burnt-resistor 3 days ago
I wish GCC and LLVM had compiler passes to semi/automagically "vectorize" hot sections using SIMD, i.e., magic transformation of UTF-8 conversion, regex matching, and string functions.
Comment by taeric 3 days ago