Large bit-strings

Daniel Vainsencher danielv at netvision.net.il
Wed Jul 30 11:14:48 UTC 2003


I think we should definitely have something like this in SM.

Daniel

Luciano Notarfrancesco <lnotarfrancesco at yahoo.com> 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).
> 
> Luciano.-
> 
> 
> Jens Pall wrote:
> 
> >Hi
> >
> >Is there a way to work with very large bit-strings (50k - 100k bits) in
> >Squeak? I could use a collection but I imagine that's a bit inefficient
> >memory vise.
> >Some basic operations I want to be able to do is to cut out a bit sequences
> >and convert it to a number and roll the string back and forth.
> >
> >Thanks,
> >Jens
> >
> >
> >  
> >
> 
> 
> -- 
> http://community.corest.com/~luciano
> CCB0 B2B0 BCCB 8178 CA8B  4C08 AE9B D2F2 E9CC E897



More information about the Squeak-dev mailing list