Bitwise operations are elegant in the same way nunchucks are elegant: they are impressive and versatile in the hands of a master, but inflict a lot of self-imposed bruises in the hands of novices.
this post was submitted on 06 Apr 2025
25 points (100.0% liked)
Programming
19355 readers
45 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 2 years ago
MODERATORS
Even in the hands of experts they can be dangerous. One of the most respected programmers at my company wrote an implementation of memory that had an off by one error when bit indexing for alignment checking.
Everything worked fine until you had 16-bit relatively aligned src and dest and happened to be targeting uncached memory.