NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
the best part (Score:1)
Re:the best part (Score:1)
(Don't laugh,
$DayJob->employerstill hires Cobolistas, and Cobol2002 supports Unicode and XML.)The questioner could also get direct access to BCD with PL/1, the original Swiss Army Chainsaw [plover.com], which brings us back to MJD.
The questioner couldn't see the forest for the trees BCD only saves him 50% memory compared to Tiny (byte) integers or array of chars. (Or Tiny costs only 100%.) Which in big-oh notation is
O(1)
otherwise known as "irrelevant". And he was talking about streaming anyway -- streaming in Perl is MJD's current metier, and they were discussing BCD! *sigh* Using streaming techniques to fill a PDL array of ints would be efficient enough with a big window and enough overlap.
I shudder to think what use he'll put to the patterns he finds in Pi's digits. I hope it's not serious mathematics, I'd be embarrassed if so.
He started this project a week ago in PHP. He got the same answer there. [google.com]
Using a Zip-type perl module to read a block of compressed PI file at a time, keeping a lenght($pattern) from previous block, would have been a fine solution, alas.
Bill
# I had a sig when sigs were cool
use Sig;
Reply to This
Parent