Article View: news.software.nntp
Article #29463Re: Replacing innmail?
From: Russ Allbery
Date: Wed, 01 Jul 1998 00:00
Date: Wed, 01 Jul 1998 00:00
80 lines
4153 bytes
4153 bytes
Peter J Naylor <pete@filter.supernal.net> writes: > Russ Allbery <rra@stanford.edu> writes: >> Peter J Naylor <pete@filter.supernal.net> writes: >>> No. If I did I'd accomplish it using methods similar to the hippo. >>> There is absolutely no way I'd consider doing it with an interpretted >>> scripting language. >> Even though it's dramatically faster > Really? How so? Because from an embedded interpreted language, I have access to all of INN. There are patches now that let me query INN to see if a group is moderated, cancel a message already received, add things to the history file, do history lookups, etc. That stuff is slow, impossible, or memory bloated in an external program, or all three. >> and more convenient. > For whom? Developers of the filters, since the embedded ones have more capabilities. > Wouldn't it be nicer to be able to specify an executable in the config > files which would be forked at run time and sit there being fed either > the complete article or just the headers (another config file option?) - > returning responses which match a predefined set that INN could then act > upon? That way you could write the executable in whatever language you > prefer - shell script if you wish. Sure, that would be nice; that's what Cyclone does. I wouldn't use it, because an embedded language is even nicer and considerably more flexible, plus lets me do things that approach wouldn't without sending stuff through ctlinnd (with all the race conditions and other problems involved there), but I think that would be good functionality to add to INN for those who do want that. >> Directly traceable to using shell rather than something with sane >> quoting behavior that doesn't try to execute everything. > Directly traceable to poor programming, and Perl is just as likely to be > problematic when someone makes a mistake. Perl itself isn't free from > security problems either. I didn't argue that it was free of security problems, but it's considerably more secure than shell. Honestly, that's not a controversial statement, even among people who detest Perl. Shell scripts are a lot of things, including insanely portable, but secure isn't high on the list; there are just too many quoting irregularities and too many ways to get it wrong. Extremely experienced shell programmers have a hard time writing secure shell scripts. I honestly don't think the same statement is true of Perl programmers of the same relative expertise. > The readability issue is your opinion only, and the line counts are both > unsubstantiated and unimportant to users. They're important to me. > The scripts we're talking about have negligible performance impact when > considering the overall package. If performance was truly of major > importance they shouldn't be interpretted. *shrug* Matters to me. Perl is about 3 times slower than C for this, and several orders of magnitude easier to write for the sorts of things those scripts do. > Only if they're actually shared. Small binaries make better friends, > and so do packages that install without requiring half a dozen other > packages that you otherwise have no use for. Which is why it should be an option. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<m3k95wrk0t.fsf@windlord.Stanford.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-mailReferences:
<6napr9$oov$1@nnrp1.dejanews.com> <87hg13uhd9.fsf@erlenstar.demon.co.uk> <6nc7s9$1lc$1@news.supernal.net> <m390meuulh.fsf@windlord.Stanford.EDU> <6ncl16$5s6$1@news.supernal.net> <m3d8bqoxkm.fsf@windlord.Stanford.EDU> <6netla$su5$1@news.supernal.net>Show Full Headers
Complete Article Headers
Message-ID: <m3k95wrk0t.fsf@windlord.Stanford.EDU> Subject: Re: Replacing innmail? Date: Wed, 01 Jul 1998 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <6napr9$oov$1@nnrp1.dejanews.com> <87hg13uhd9.fsf@erlenstar.demon.co.uk> <6nc7s9$1lc$1@news.supernal.net> <m390meuulh.fsf@windlord.Stanford.EDU> <6ncl16$5s6$1@news.supernal.net> <m3d8bqoxkm.fsf@windlord.Stanford.EDU> <6netla$su5$1@news.supernal.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 X-Deja-AN: 367964760 Sender: eagle@windlord.Stanford.EDU Organization: The Eyrie Newsgroups: news.software.nntp