On Sat, 21 Mar 2020 at 01:54, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
Hi Richard,

My example was about having a collection of bits. So, #do: and #select: do continue to have the very same semantics.
The whole point is to save memory behind the scenes, while keeping the same API.
Consider a very large matrix of booleans. It would save memory to store booleans as bits.
There is of course the "normal" way of doing it, by changing the implementation.
But, with slots, it should be possible to use an instance 2DArray

What is the 2D-ness of a collection of bits.�� Have you considered Bitmap?��

The original paper discusses bit-fields.�� I'm not sure how that maps to current Pharo implementation.
http://scg.unibe.ch/archive/papers/Verw11bFlexibleObjectLayouts.pdf����

cheers -ben