#bitfields — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #bitfields, aggregated by home.social.
-
🎏 🐶 flag_shih_tzu v1.0.0 is finally out, 8 years after 0.3.23. There are breaking changes, and many new features, including multi-bit flags 🩵 think multiple enum attributes in a single integer column! Also complete Truffleruby and JRuby support.
:ruby: I write about the most important breaking change here:
https://dev.to/galtzo/why-flagshihtzu-is-changing-its-default-sql-for-bit-flags-41l9
#ruby #bitfields #activerecord -
“Bitfield Pitfalls”, Michal Necasek, OS/2 Museum (https://www.os2museum.com/wp/bitfield-pitfalls/).
Via HN: https://news.ycombinator.com/item?id=47469945
On Lobsters: https://lobste.rs/s/xtue97/bitfield_pitfalls
#C #Programming #BitFields #Gotchas #C89 #C11 #Bits #SystemsProgramming #Compilers
-
@bug a u2; or an s2, if it's signed.
A byte is a u8, a nibble :blobcatcookienom: is a u4.
A a dword is a u32 and a qword is a u64... and so on.
Simple, unambiguous, and it even tells you whether it's signed or unsigned... but it's not cute :blobfoxboopcute:, I grant you.
I think it's unlikely to be confused with the high-altitude plane ✈️ or the rock band :blobcatcool:, given context 😁