Article View: news.software.nntp
Article #40715Re: Diablo debugging problems...
From: Russ Allbery
Date: Sat, 09 Oct 1999 00:00
Date: Sat, 09 Oct 1999 00:00
44 lines
2827 bytes
2827 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: >>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: > Russ> My opinion is that the Highwind external filter interface is > Russ> the *worst* case for a filter interface; > Have you ever tried to embed Perl into a threaded program? > So far I know only one person who has, and it's caused him _major_ > problems. It shouldn't be a problem provided that you don't try to run multiple Perl interpretors at a time. One thread needs to be running the interpretor and the rest of the threads need to keep their hands off. Is that not your experience? Was that person trying to thread the Perl interpretor itself or use it from inside multiple threads? I wouldn't recommend that either. > I have a filter interface (not currently used in any transit code, but > used in other contexts) that is based on shared memory and pipes. It > allows for a certain degree of pipelining between the server and the > filter, and it also allows for a common filter interface for both > local-post type filters that might need to modify the headers, and > transit filters which merely signal accept/reject(reason). Two things that I personally use in filters and would miss badly: Direct access to the server active file without having to take the performance hit of reading it in and parsing it myself, and the ability to add additional message IDs to the history file so that those messages will be refused. The latter you can add the the API; the former would require more shared memory. Just being able to add more callbacks with ten-line XS functions and be able to touch anything that INN touches is really rather appealing. And dealing with shared memory in Perl isn't something I'm really excited about doing. Neither is having to redo the header parsing that INN already did. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylyadd3rtg.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:
<brad-0110991517500001@brad.techos.skynet.be> <yln1twf21z.fsf@windlord.stanford.edu> <brad-0710991318130001@brad.techos.skynet.be> <37fe9461$0$11999@master.news.zetnet.net> <37fec25d$0$11285@news.execpc.com> <ylr9j5m9n5.fsf@windlord.stanford.edu> <87r9j56qmt.fsf@erlenstar.demon.co.uk> <yl905d5al5.fsf@windlord.stanford.edu> <87hfk16n7j.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <ylyadd3rtg.fsf@windlord.stanford.edu> Subject: Re: Diablo debugging problems... Date: Sat, 09 Oct 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <brad-0110991517500001@brad.techos.skynet.be> <yln1twf21z.fsf@windlord.stanford.edu> <brad-0710991318130001@brad.techos.skynet.be> <37fe9461$0$11999@master.news.zetnet.net> <37fec25d$0$11285@news.execpc.com> <ylr9j5m9n5.fsf@windlord.stanford.edu> <87r9j56qmt.fsf@erlenstar.demon.co.uk> <yl905d5al5.fsf@windlord.stanford.edu> <87hfk16n7j.fsf@erlenstar.demon.co.uk> 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: 534621359 Organization: The Eyrie Newsgroups: news.software.nntp