🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40215

Re: Diablo vs. INN questions...

#40215
From: Joe Greco
Date: Tue, 28 Sep 1999 00:00
44 lines
3106 bytes
In news.software.nntp article <7sr01r$ong$1@newssvr02.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
:In article <37f0580c$0$7749@news.execpc.com>,
:Joe Greco <jgreco@ns.sol.net> wrote:
:
:| Which is what makes filtering under INN a perfect bitch; you have to use
:| Perl.  Some of us prefer to code filters in C, or shell, or whatever.  Some
:| of us still do not speak Perl.
:
:  They would be even faster in assembler! Of course they would take
:forever to write, etc. The reason for using perl is that it has the
:string manipulation most filters really need, extended regular
:expressions, etc.

I don't know about your dialect of C, but mine does happen to have
extended regular expressions.  As part of libc, even.  But you do
need to specify REG_EXTENDED.

:  C is just not a good string processing language. I would use it for
:something which had to be exceptionally fast, but news filters only need
:to be vary fast, and perl does that well. My timer stats usually show
:history lookup and perl filters use about the same cpu, and I can live
:with that.
:
:  BTW: I am not a perl enthusiast, but I am not only a tool using
:mammal, but a "right tool" using mammal, and perl is a better tool than
:C in terms of time to write code, and code readability (means more
:maintainable, obviously). I still do log analysis in AWK, because the
:mawk interpreter is way faster then perl on linux, BSD, Solaris and AIX,
:at least when you have to read in a bunch of lines and look at them.

I'm a library-building intelligent right tool using mammal, and I happen
to be of the opinion that I can do the sorts of filtering that I happen
to want to do in C faster, more easily, and better than I could in Perl -
not the least of which is because I can bang out the code in C in a few
hours, while I'd have to actually learn Perl first.  Part of it is because
I already have an impressive set of C library functions to deal with Usenet
articles, which may (and often does) reduce the "few hours" to an hour or
so.  Of course, the fantastic thing is that I use these same library
functions for other Usenet-related tasks, such as DSRS and the UPS, my
sol.* hierarchy cancelbot, etc.

... JG

Technical Details
Message-ID: <37f10f2b$0$10182@news.execpc.com>
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: <brad-2709991944100001@brad.techos.skynet.be> <yl4sggteag.fsf@windlord.stanford.edu> <37f0580c$0$7749@news.execpc.com> <7sr01r$ong$1@newssvr02.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <37f10f2b$0$10182@news.execpc.com>
Subject: Re: Diablo vs. INN questions...
Date: Tue, 28 Sep 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <brad-2709991944100001@brad.techos.skynet.be> <yl4sggteag.fsf@windlord.stanford.edu> <37f0580c$0$7749@news.execpc.com> <7sr01r$ong$1@newssvr02.news.prodigy.com>
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: 530396421
Sender: jgreco@earth.execpc.com
X-Trace: S=T[4Gb?NP1I5[332>a9Y;bfNiaEHUgJ7RYcgIRLSUE=6ekPCkCoQ:3kHE9;[V<ba;U7R6Ed3Q8?2GhaMU<hZ^N7F4FfQ?Mh6U=
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com