unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Simon Cozens <simon@simon-cozens.org>
To: Ben Gamari <bgamari@gmail.com>
Cc: notmuch <notmuch@notmuchmail.org>
Subject: Re: [PATCH] Mail::Notmuch Perl wrapper
Date: Tue, 26 Jan 2010 08:34:57 +0000	[thread overview]
Message-ID: <4B5EA931.6080804@simon-cozens.org> (raw)
In-Reply-To: <1264476319-sup-7498@ben-laptop>

On 26/01/2010 03:30, Ben Gamari wrote:
> I know practically nothing about writing Perl bindings,

I recommend http://www.manning.com/jenness/ ;)

> 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.

Yes, this is why I chose not to use SWIG: if I'm going to automatically
get code that doesn't do what I want and then have to manually write
code that does, why not just manually write code that does? (well,
semi-manually: xsubpp extracted all the function signatures for me.)

I guess the advantage of SWIG is that it gets you code that you don't
want in many different languages.

Anyway, whichever way you do it, you'll still need the class
documentation and the tests - feel free to take them from my patch if
you end up going the SWIG route for Perl.

Simon

  reply	other threads:[~2010-01-26  9:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-25 18:17 [PATCH] Mail::Notmuch Perl wrapper Simon Cozens
2010-01-25 19:10 ` Mike Kelly
2010-01-26  3:30 ` Ben Gamari
2010-01-26  8:34   ` Simon Cozens [this message]
2010-01-26 15:51     ` Ben Gamari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B5EA931.6080804@simon-cozens.org \
    --to=simon@simon-cozens.org \
    --cc=bgamari@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).