111 reputation
2
bio website
location
age
visits member for 3 years, 4 months
seen Oct 19 '12 at 2:26

Dec
22
revised Is anything in programming truly evil?
added 389 characters in body; added 31 characters in body
Dec
22
revised Is anything in programming truly evil?
deleted 104 characters in body; deleted 1 characters in body
Dec
22
revised Is anything in programming truly evil?
added 244 characters in body
Dec
22
revised Is anything in programming truly evil?
added 406 characters in body
Dec
21
revised Is anything in programming truly evil?
added 6 characters in body
Dec
21
comment Is anything in programming truly evil?
@acidzombie24 There is no machine code for doing anything with bytes (except loading/storing). On the JVM level 32 bit is the smallest unit. So all the work has to be done either by the compiler or by the programmer. The compiler won't change. I've added the needed adjustment to my post.
Dec
21
awarded  Editor
Dec
21
revised Is anything in programming truly evil?
added 163 characters in body
Dec
21
awarded  Teacher
Dec
21
comment Is anything in programming truly evil?
@acidzombie24 Absolutely correct. >>> is an unsigned shift and >> is a signed shift. But when shifting a byte it first gets extended to an int (filled up with the sign) and then shifted. So even the 'unsigned' shift extends it with its sign. In fact the result is a positive int but after storing it into a byte it's negative again.
Dec
21
answered Is anything in programming truly evil?