On 10/24/2026 4:41 AM, Ralf Fassel wrote:
> * et99 <et…@rocketship1.me> > | Think of the bitwise operators as AND-ing two huge words made of all > | the bits, while land and the relational operators look at each element > | as a number. > > Ah ok, I think I understand. The concept of non-1-bit bitarrays at > first seems strange, but then, if you need a (huge) list of > 8-bit-numbers, why waste memory using 32-bit-ints (at least that is what > I understand the advantage is for non 1-bit-arrays, apart from doing > list-operations in C instead of manually in TCL). > > TNX > R'
Yes, exactly, and in some cases the 8-bit array is faster than the 1-bit at the cost of memory. I called it bitarray because that's how it begun, with just 1-bit. But then you say, Hey claude, what about... So he coded all the other sizes. One note, 64 can't be unsigned or it's too large for tcl's ints and it would go bignum. I believe the python package NumPy has pretty much these same operations. That's likely where claude got the idea when I asked what else could we implement. Claude reminds me of the superman movie with Christopher Reeve playing the man of steel. When Lois was angry that Clark got assigned her city beat, Perry White said, "Not only does he now how to treat his employer, in my 40 years in the business, he's the fastest typist I've every seen". And Claude is the fastest programmer I've ever seen. :) -e