News for hackers. Stuff that matters.
Re:How to save multiple numbers into one byte by pjscott on Friday December 02, 2016 @07:04PM (#13093361)
See also bitfields, which make the compiler generate the shifting and masking code for you:

https://en.wikipedia.org/wiki/Bit_field

Re:How to save multiple numbers into one byte by davidw on Friday December 02, 2016 @07:15PM (#13093409)
Erlang also has pretty nice syntax for handling bits & bytes.

http://erlang.org/doc/programming_examples/bit_syntax.html

Re:How to save multiple numbers into one byte by pjscott on Saturday December 03, 2016 @12:21AM (#13094458)
Whoa, that's some practical syntax. Suddenly I'm filled with envy that none of the C-family languages have that.