News for hackers. Stuff that matters.
Re:Python Standard Library changes in recent years by danwills on Saturday May 21, 2022 @08:48AM (#31457389)
Yeah, good point! I hadn't thought about that until you mentioned it but totally agree. I'd suggest something like `num_enabled_bits` or `enabled_bits_count` might have made things a bit clearer?
Re:Python Standard Library changes in recent years by carapace on Saturday May 21, 2022 @10:44AM (#31458336)
The operation's name is "popcount", there's an asm (i86?) instruction "POPCNT".

https://duckduckgo.com/?t=ffcm&q=popcount&ia=web