News for hackers. Stuff that matters.
Re:How many Java programmers does it take to round up to a p... by asmosoinio on Friday November 02, 2007 @07:26AM (#75400)
Funny thread! :)

I guess the thing here is that bit operators are not really "in you face" in Java. If you are programming in assembler, or even C, bits will be what you know. Programming at a higher level, you may not be that aware of bit functions and how to use them in real life. You should, but many are not.

The second approach by gojomo here is neat and effective and works directly at the bits instead of bloating with creating Strings and other objects for this simple task. So it's not the fault of the tool, it about the abstraction level people are thinking in.

Re:How many Java programmers does it take to round up to a p... by lisporama on Friday November 02, 2007 @11:04AM (#75436)
What are the bit operators in Common Lisp? My google-fu fails me...
Re:How many Java programmers does it take to round up to a p... by shiro on Friday November 02, 2007 @04:46PM (#75581)
CL has logand, logior, logxor, lognot, etc. It also has a parameterized version, boole http://www.lisp.org/HyperSpec/Body/fun_boole.html