Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8D35B431FBD for ; Tue, 26 Jan 2010 01:15:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.245 X-Spam-Level: X-Spam-Status: No, score=-0.245 tagged_above=-999 required=5 tests=[AWL=-0.246, BAYES_50=0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nVXyXozzlPB3 for ; Tue, 26 Jan 2010 01:15:31 -0800 (PST) Received: from hosted.simon-cozens.org (hosted.simon-cozens.org [78.129.197.129]) by olra.theworths.org (Postfix) with ESMTP id D4116431FBC for ; Tue, 26 Jan 2010 01:15:30 -0800 (PST) Received: from cpc1-stav12-0-0-cust457.aztw.cable.virginmedia.com ([92.235.229.202] helo=foobar.local) by hosted.simon-cozens.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NZhWB-0005pj-Of; Tue, 26 Jan 2010 09:15:29 +0000 Received: from foobar.lan (practivate.adobe.com [127.0.0.1]) by foobar.lan (Postfix) with ESMTP id C960CE9F6DC; Tue, 26 Jan 2010 08:34:57 +0000 (GMT) Message-ID: <4B5EA931.6080804@simon-cozens.org> Date: Tue, 26 Jan 2010 08:34:57 +0000 From: Simon Cozens User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Ben Gamari References: <4B5DE02C.3070309@simon-cozens.org> <1264476319-sup-7498@ben-laptop> In-Reply-To: <1264476319-sup-7498@ben-laptop> X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 92.235.229.202 X-SA-Exim-Mail-From: simon@simon-cozens.org X-SA-Exim-Version: 4.2.1 (built Sat, 01 Aug 2009 12:09:26 +0000) X-SA-Exim-Scanned: Yes (on hosted.simon-cozens.org) Cc: notmuch Subject: Re: [notmuch] [PATCH] Mail::Notmuch Perl wrapper X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2010 09:15:31 -0000 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