Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do Ruby's pack and unpack routines let you access a field smaller than a byte? What about a field that is split across a byte boundary?

I agree that bit masking and manipulation is hard to read and can be misused by ego-driven programmers. But the "popularity" because because bit masking and manipulation are both fundamental to computer science and an absolute necessity in certain situations.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: