bitset
bitset copied to clipboard
Bitset implementation for Ruby
Thanks for developing this package! I am making some pretty heavy use of it. Anyway, I made some bug fixes and added some features; details are in the commit logs....
As of 2/23/2016, this version no longer builds on the latest Ruby, and it has a couple bugs I am aware of. I invite people to use my version at...
I would like to see bit shifting operators supported (>> and
I'm struggling with this one. I'm getting these errors exclusively in the app I'm trying to use it with: (gdb) backtrace #0 0x00007fff81f63616 in __kill () #1 0x00007fff82003cca in abort...
``` a = Bitset.new(7) b = ~Bitset.new(7) a.hamming(b) #=> 64 ``` The problem is that internally the representation is always some number of 64-bit integers, and so unless we explicitly...