r/programming • • May 28 '14

"Compression-oriented programming" - Casey Muratori's blog

http://mollyrocket.com/casey/stream_0019.html
125 Upvotes

67 comments sorted by

View all comments

-2

u/Banane9 May 29 '14

Just why is he using a ulong (8 bytes) for what is probably a 4 byte (int) argb color?

5

u/[deleted] May 29 '14

Standard guarantees that a ulong will hold 32 bits, maybe?

-3

u/Banane9 May 29 '14

At least in the language I use a (u)int is guaranteed to have 32 bits... And you're guaranteed a (u)long with 64 bits too, even on 32 bit machines afaik.

3

u/[deleted] May 29 '14

What language? D?

-2

u/Banane9 May 29 '14

C#, actually