Large bit-strings

Yoshiki Ohshima Yoshiki.Ohshima at acm.org
Sat Aug 9 04:57:17 UTC 2003


  Jens,

  I found I had a little time to implement this BitArray thing.

  If you're interested in, please try the attached changeset.  I'd
like to know what a realistic application and see if what I should
add.

  Thank you,

-- Yoshiki


At Wed, 30 Jul 2003 23:10:16 -0000,
Jens Pall wrote:
> 
> 
> > 
> > I made a subclass of ArrayedCollection that internally represents its 
> > contents as a LargeInteger (I call it BitArray). I can convert BitArrays 
> > to and from Integers, Strings and ByteArrays. The ability to use the 
> > Collection and Stream protocol with bits was very useful for me, and 
> > simplified a lot my code. I think we should have something like this in 
> > the image (I'm not publishing my code because it's just a quick hack).
> 
> How large can a LargeInteger get?
> Did you use just one LargeInteger in the collection or a sequence of them?
> Were you able to take 'chunks' of bits from the array?
> 
> I also have to be able to store the string on disk so this looks useful.
> 
> Jens
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitArray1.1.cs.gz
Type: application/octet-stream
Size: 5269 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030808/b4a9f2a4/BitArray1.1.cs.obj


More information about the Squeak-dev mailing list