On Mon, 29 Jan 2001, Vladislav Safronov wrote:

> Date: Mon, 29 Jan 2001 17:52:42 +0300
> From: Vladislav Safronov <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Advice needed. (web app. performance)
> 
> Hi,
> 
> I've just finished a simple web based spellcheck application
> based on ispell, it's written as perl module which just call
> ispell on every request (actually keeps it open afert first request).
> The bad thing is N users used spellcheck there are N running
> useless ispells and it is not good I think. 
> 
> I think as sort of spellcheck server should be written which can fork
> accordingly to user requests. 
> 
> Where can I find sample code (skeleton code) for such server?
> Would you recommend any other method?
> 
> Thanx,
> 
> \Vlad.

How funny.  I just spent the last several days working on the exact
same code.  I used Lingua::Ispell to communicate with ispell.  It's
pretty good, but I think it could be written much more cleanly.  (I
know, I know patches are always welcome :)  I spent a long time last
week closely examing the source for Lingua::Ispell because I
encountered what turned out to be a bug in mod_perl versions 1.23 and
higher built with Perl 5.6.0 where the STDIN and STDOUT get very, very
confused.  You could always take a look at that code to get a feel for
where to start.  I began hacking on my own implementation, playing
with IPC::Open2 and IO::* modules.  Very interesting stuff.  Anyway,
that's what I'd recommend.

BTW, any chance I could take a look at how you solved the problems?
I'm still working on my version.

ky

Reply via email to