Respuestas al mensaje #3,507

  • 🔧 Site instability resolved. You can report double-posts and broken attachments. For bigger issues, use the Technical Grievances thread.
    🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
DiggieSmalls

Programming thread

I think this is just good coding practices
DavidS877

Programming thread

I don't know go, but structs are your friend. Properly packed. You'll find it's a trade-off between alignment performance and size. Network...
Rusty Metal Skull Gun

Programming thread

If endianness isn't an issue, sure. I don't know if Go is handholdingy enough to stop you from doing this, on the grounds that it's technically UB...
The Ugly One

Programming thread

There's no compute benefit to using small int types on modern CPUs. x86 register are all 32 bits, so, if you do 8-bit math, as far as the CPU is...
y a t s

Programming thread

This is a very common practice in embedded systems work. Just be mindful of memory alignment when packing small types into structs. The CPU will...
Marvin

Programming thread

Don't bother. You're painting yourself into a corner where the compiler would probably do a much better job than you would by hand. And if it's...
Atrás
Top Abajo