in reply to Re: vec overflow?in thread vec overflow?
Another workaround that is useful if your algorithm benefits from having a single contiguous bitvector -- for example if you want to count the set bits quickly using my $popcount = unpack '%32b*', $bitvector; -- is to nest calls to vec. Eg:
vec( vec( $bitvector, $n >> 5, 64 ), $n & 0x1f, 1 ) = 1;
Theoretically, as neither offset breaches the 2**31-1 barrier, this can allow you to address bitvectors up to 16GB/137 billion bits, though I don't have enough memory to try it.
None - I don't code
0 - Ticker-tape is a purer representation of a Turing Machine
1 - A laptop screen or single monitor desktop workstation
1 - And it's cracked. And I like practicing my trade while lying on a bed of nails
2 - The standard dev kit suits me fine
3 - Fewer than three monitors wouldn't present enough insight into what I'm working on
4 - Everyone else has two or three. I'm not like everyone else
5 - This configuration reminds me of the 1987 5-cylinder VW Passat my parents let me drive in high school
6 - I saw such a thing on the Internet, and had to have it
6 - Because I haven't figured out how to add more
7 - I need all the luck I can get, for this code to work
8 - Because my power strip had eight outlets available
9 - A 3x3 array was the the most I could fit into my Faraday shielded SHTF headquarters
More than 9 - Most of them are just displaying graphs / mock code to make the boss think I'm doing something critical
Results (536 votes). Check out past polls.