RE: [htdig3-dev] RE: PERL-htsearch


Subject: RE: [htdig3-dev] RE: PERL-htsearch
From: Tillman, James (JamesTillman@fdle.state.fl.us)
Date: Tue Dec 07 1999 - 08:18:39 PST


What's your opinion on moving the inlined functions out? Would it create
too much of a performance hit? I'll look into SWIG.

The primary problems I had using the header files in my XS project were to
do with macros conflicting and the stream classes conflicting. Would you be
able to provide any tips on preventing those conflicts? I'd love to just be
able to say "#include Searcher.h" and be done with it!

Jamie

> -----Original Message-----
> From: loic@ceic.com [mailto:loic@ceic.com]
> Sent: Tuesday, December 07, 1999 12:23 PM
> To: Tillman, James
> Cc: htdig3-dev@htdig.org
> Subject: RE: [htdig3-dev] RE: PERL-htsearch
>
>
> Tillman, James writes:
> > I realize everyone's busy working on the new beta of
> htdig, but I need to
> > solicit some opinions on something. I've recently
> modified htsearch in the
> > non-beta CVS branch to allow for an object oriented access
> to the parsing
> > and searching mechanism. This was mainly with a view to
> creating a Perl
> > interface, but it doesn't preclude someone creating their
> own custom
> > htsearch program in C++ or anything else capable of using
> C++ objects.
>
> Hi,
>
> You may be interested to know that I'm building a Perl interface to
> the htword classes (Word*.h). For this purpose I use SWIG. It
> helps a lot
> since I don't have to write tons of similar wrappers.
> As of now SWIG is not really enough to build a cleanly
> wrapped package. I
> had to patch the code to get the desired effect. I based my
> patches on the
> latest maintainance release (SWIG1.1 on the public CVS tree).
> The SWIG1.1
> author is quite responsive and I expect my patches to be
> integrated soon.
> I had no problems at all with inline functions. The biggest
> problem is
> at dynamic link stage with Perl. Since perl is often already
> dynamically linked
> with Berkeley DB, it conflicts with the Berkeley DB version
> of htdig. And since
> perl is not a C++ program, symbols related to iostream are
> not resolved. There
> are many ways to solve this (build a shared lib of htdig
> Berkeley DB, LD_PRELOAD
> and such).
>
> Take care,
>
> --
> Loic Dachary
>
> ECILA
> 100 av. du Gal Leclerc
> 93500 Pantin - France
> Tel: 33 1 56 96 10 85
> e-mail: loic@dachary.org
> URL: http://www.senga.org/
>

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev-unsubscribe@htdig.org
You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Tue Dec 07 1999 - 08:32:38 PST