🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25190

Re: Bet nobody else has *this* problem...

#25190
From: Trevor Fiatal
Date: Wed, 14 Jan 1998 00:00
45 lines
2859 bytes
On Tue, 13 Jan 1998 12:31:42 GMT, Terry Kennedy <terry@spcuna.spc.edu>
spake thusly:

>Trevor Fiatal <trevor@home.net> writes:
>> Perl won't handle integers greater than 2^21, and several of my lusers have
>> downloaded over 2GB of news in that 48-hour period.  And these are
>> *residential* customers.  One of them, from the looks of it, has passed *4GB*
>> by a few dozen megabytes.
>
>  Add a "use Math::BigInt" and make all of your byte stuff BigInts. The only
>problem I've had when using BigInt and BigFloat is that fcmp appears to do
>lexical compares of numbers expressed in scientific notation, which is about
>the most useless thing I've ever seen (as my comments in diablo-stats.pl show).

Yeah, I was afraid someone was going to mention Math::BigInt.  
<whine>But that requires actual *work* to convert someone else's code!</whine>

Seriously, though, I always hesitate before I dive into doing non-portable
mods to somebody else's code -- it inevitably turns into a cycle of new code
release, find mods in old code, hack mods into new code, debug problems,
repeat.  I was actually kind of hoping that somebody already had a version of
innreport hacked up to handle ints >32bits, but doesn't look like it.

Think if I submitted my bytecount extensions and BigInt mods, they'd actually
make it into the code so it would be a one-time project?

>  Not for readers, but I've bounced off the speed bumps at 2GB (signed int),
>4GB (unsigned int) and 10Gb (a %#d format spec, because it would *never* get
>_that_ big). I think the code is now safe up to 99.9GB. I hope to either re-
>tire or hire a news flunky and delegate this work by the time that happens...
>8-)

MMmmm.... vacation....

-Trevor

--
/--------------------------------=-------------------------------------\
|Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail |
|Internet Applications Architect | systems admin. Relocation available |
|@Home Network, SF Bay Area, CA  | for right candidate. Email for info.|
\--------------------------------|-------------------------------------/

Technical Details
Message-ID: <34bd3a1b.348629872@news.corp.home.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <34bc54cf.289908102@news.corp.home.net> <EMq2su.7vt@spcuna.spc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <34bd3a1b.348629872@news.corp.home.net>
Subject: Re: Bet nobody else has *this* problem...
Date: Wed, 14 Jan 1998 00:00:00 +0000
From: trevor@home.net (Trevor Fiatal)
References: <34bc54cf.289908102@news.corp.home.net> <EMq2su.7vt@spcuna.spc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 315755023
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Cache-Post-Path: zeppelin.svr.home.net!unknown@24.0.25.18
Content-Type: text/plain; charset=us-ascii
Organization: @Home Network
Newsgroups: news.software.nntp