[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Glimpse.pm anyone?



On Tue, 16 May 2000, Golda Velez wrote:

> Do you mean for calling perl scripts from glimpse?  Sure, that would be
> quite useful, and no, we don't have such a module.  Right now our best
> solution for filters, etc is the lex shared libraries that Christian Vogler
> wrote a while back (and which I have available for testing if anyone wants,
> just e-mail me because they are not posted publicly on the site yet). 

No, I mean calling into glimpse from Perl.  Basically, I'd roll glimpse as
a library and link it with some interface code to make it callable from
Perl.  That way instead of doing something like:

   $results = system('glimpse -C search');

You could do something like:

  $results = Glimpse->search('-C', 'search');

Or something.  This would avoid the fork/exec penalty of system().

> As far as the licensing goes, I don't see a major problem - it can just be
> a separate piece that people download and add on themselves, not too much
> hassle considering the added performance.  I can link to GPL'd files from
> the download area, I just can't package them with glimpse in the tarfile.

That's all well and good as long as the project is totally separate from
Glimpse.  It might not be possible to do it without making changes to
glimpse itself...  It could still be distributed as a patch, but that's
pretty unusable for the average user.

-sam