Follow
the best thing about systems languages is they get you into that frame of mind where you're like "is 16 bytes per item too big"

and by best I mean I wish I could stop thinking about it

@ninjawedding hm, i've felt that way forever, but i started in assembly in the early 80s :(

@wohali it first hit me when I learned how small cache lines are relative to common quantities and since then I've been irrationally hooked on trying to get things smaller

@ninjawedding When I found out how big the tag for tagged enums in Rust is, I felt a bit offended. It's like 8 bytes or something nuts.

@CharredStencil huh, thanks for the tip! I need to look that up myself

(reminds me: I also need to look into the space overhead for libc++ and libstdc++ std::variant)

@ninjawedding I was wrong, it's only 4 bytes.

But that can still add up for small payloads.

reddit.com/r/rust/comments/229

"It's 4 extra bytes (rather than just one) due to padding to ensure correct alignment."

Sign in to participate in the conversation
sdfn-01.ninjawedding.org

This is a small ship in the fediverse.

The name is borrowed from the mass-produced Macross-class ships in the Macross universe; SDFN-01 Hayase was the first of the line. The ships were designed to scout emigration routes ahead of the Megaroad colonization ship.

More information can be found at the Macross Compendium.

Federation transparency report (2018-11-03)

  • Suspended instances: newjack.city
  • Silenced instances: none
  • Reject media: preteengirls.biz