Port current implementation of working with bits to BitSet
ifesdjeen opened this issue · comments
For example:
(java.util.BitSet/valueOf
(.putInt
(java.nio.ByteBuffer/allocateDirect 4) 0 (int 1)))
Leaving it here not to forget.
checked. Makes no sense.
@ifesdjeen why?
Clojure's internal bit operations are quite good. Only difference I currently see is that BitSet allows working with >64 bits at once (or whatever the limit that may be imposed by working with raw numbers directly).
Yup, just checked it: in Clojure you can represent up to 64 bits using bit operations...