[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re2: [MacPerl] BigInt sluggishness.



At 11:57 AM -0500 12/6/00, Chris Nandor wrote:

>I don't see vec() actually used in your example, though

You are right, I am an idiot :-)

What happened was, I was reading the vec() documentation in the camel 
book, and came across the use of pack("b*") and unpack("b*") there. 
When I actually revised my program, it turned out that by using these 
and the binary operators & and | I could do everything I wanted 
without vec(), and I never even noticed; I "optimized" vec() out of 
my program.

So, thanks to you Cris, I learned all kinds of stuff about bitwise 
manipulation of strings in Perl, including vec() which I didn't need 
for my example but is cool nonetheless.

If Brian wants to be able to determine the status of particular time 
blocks, like you did in your example, Cris, then vec() will be 
perfect for that.  It is also loads of fun for mutilating text 
strings :-)  Reminds me of my old days writing graphic printer 
drivers in Z80 assembly on my NorthStar.

Sorry for the stupid waste of bandwidth.

-David-
David Steffen, Ph.D.
President, Biomedical Computing, Inc. <http://www.biomedcomp.com/>
Phone: (713) 610-9770 FAX: (713) 610-9769 E-mail: steffen@biomedcomp.com

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org