this post was submitted on 06 Apr 2025
26 points (100.0% liked)

Programming

19350 readers
71 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
top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 13 points 1 day ago* (last edited 1 day ago) (1 children)

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.

[โ€“] [email protected] 9 points 18 hours ago

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.