From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15701 invoked by alias); 3 Aug 2007 13:39:14 -0000 Received: (qmail 15671 invoked by uid 22791); 3 Aug 2007 13:39:12 -0000 X-Spam-Check-By: sourceware.org Received: from berd.itl.waw.pl (HELO berd.itl.waw.pl) (193.110.137.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Aug 2007 13:39:10 +0000 Received: by berd.itl.waw.pl (Postfix, from userid 33) id D7F7C4299A; Fri, 3 Aug 2007 15:39:04 +0200 (CEST) Received: from [172.16.6.50] (z6-229n2.itl.waw.pl [172.16.6.50]) by berd.itl.waw.pl (Postfix) with ESMTP id BF4F74297D for ; Fri, 3 Aug 2007 15:39:03 +0200 (CEST) Subject: ctypes based intefrace to GSL From: Szymon Jaroszewicz To: gsl-discuss@sources.redhat.com Content-Type: text/plain Date: Fri, 03 Aug 2007 13:39:00 -0000 Message-Id: <1186148343.6046.34.camel@z6-329> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00015.txt.bz2 Hi All, I have written Python bindings to GSL which use the ctypes package. It is probably somewhat slower than pygsl but has other advantages: 1. It is very easy to install, the only dependency (except for GSL itself) is the ctypes package, standard since Python 2.5. No compilation is required. The implementation is simpler too as it does not require SWIG wrappers, C code or shared libraries. 2. ctypes seems to be the preferred future way to do Python bindings, since it is independent from python implementation used, e.g. it should work with projects such as PyPy. It is currently very incomplete but some important functionality like vectors, ODEs, integration, Chebyshev approximation, one dimensional root/minimization are there. You can get it at: http://www.cs.umb.edu/~sj/ctypesGsl-0.1.tgz Any comments are welcome Szymon