News for hackers. Stuff that matters.
Re:Why C++ is not my favourite language by eru on Friday August 28, 2009 @04:46PM (#792259)
Is there an easy way to shuffle bytes and bits in Scheme? I was quite delighted when I found Data.Binary (http://code.haskell.org/binary/) for Haskell.
Re:Why C++ is not my favourite language by alaricsp on Friday August 28, 2009 @08:12PM (#792535)
Yes... sort of.

SRFI-4 (http://srfi.schemers.org/srfi-4/srfi-4.html) provides a standard interface for dealing with 'homogenous vectors' (eg, arrays of unboxed integers or floats), which is great for shuffling bytes.

For bits, there's the usual bitwise-or and all that.

However, both could be improved somewhat; what the Factor folks have done with their struct arrays is IMHO superier.