Re: [notmuch] [PATCH] Mail::Notmuch Perl wrapper

Subject: Re: [notmuch] [PATCH] Mail::Notmuch Perl wrapper

Date: Mon, 25 Jan 2010 22:30:47 -0500

To: notmuch

Cc:

From: Ben Gamari


Excerpts from Simon Cozens's message of Mon Jan 25 13:17:16 -0500 2010:
> (Resent with compressed patch)
> 
> Hi there,
>     Here's a Perl library, Mail::Notmuch, which wraps the notmuch library.
> I've attached it because it's pretty huge. It requires you to
> build notmuch as a shared library - there's a patch on the mailing list
> earlier which does that.

I know practically nothing about writing Perl bindings, but it seems
like this might be work better left to a bindings generator. I currently
have a patch which enables binding generation through SWIG. It works
well, although SWIG unfortunately doesn't have very good support for
exposing object-oriented C interfaces like notmuchs' through the target
language's type system. Nonetheless, this is easily done by a wrapper
library to prettify the binding (which in the case of Python took very
little time).

I sent the patchset out a few weeks ago, but I'll rebase it on top of my
shared-library branch and send it out again tonight.

Cheers,
- Ben

Thread: