From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id E134A81792 for ; Wed, 10 Jul 2013 14:08:25 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of r.3@libertysurf.fr) identity=pra; client-ip=212.27.42.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="r.3@libertysurf.fr"; x-sender="r.3@libertysurf.fr"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of r.3@libertysurf.fr) identity=mailfrom; client-ip=212.27.42.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="r.3@libertysurf.fr"; x-sender="r.3@libertysurf.fr"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp2-g21.free.fr) identity=helo; client-ip=212.27.42.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="r.3@libertysurf.fr"; x-sender="postmaster@smtp2-g21.free.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvoAAPxN3VHUGyoClGdsb2JhbABagkV2TYMJvgeBERYOAQEBAQcNCQkUAyWCKiNxBCUZAlmILJk6jn2RHo8vOxaCQIEfA5kAin6INjqBbA X-IPAS-Result: AvoAAPxN3VHUGyoClGdsb2JhbABagkV2TYMJvgeBERYOAQEBAQcNCQkUAyWCKiNxBCUZAlmILJk6jn2RHo8vOxaCQIEfA5kAin6INjqBbA X-IronPort-AV: E=Sophos;i="4.87,1035,1363129200"; d="scan'208,217";a="20668968" Received: from smtp2-g21.free.fr ([212.27.42.2]) by mail3-smtp-sop.national.inria.fr with ESMTP; 10 Jul 2013 14:08:24 +0200 Received: from zimbra27-e5.priv.proxad.net (unknown [172.20.243.177]) by smtp2-g21.free.fr (Postfix) with ESMTP id C6B6C4B01D8 for ; Wed, 10 Jul 2013 14:08:20 +0200 (CEST) Date: Wed, 10 Jul 2013 14:08:19 +0200 (CEST) From: r.3@libertysurf.fr To: caml-list@inria.fr Message-ID: <723533639.196948689.1373458099657.JavaMail.root@zimbra27-e5.priv.proxad.net> In-Reply-To: <51D388CC.1090305@riken.jp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_196948688_932531635.1373458099656" X-Originating-IP: [172.16.79.17, 143.196.127.2] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Linux)/7.2.0-GA2598) X-Authenticated-User: r.3@libertysurf.fr Subject: Re: [Caml-list] OCaml bindings for openbabel (Chemical toolbox utilities) ------=_Part_196948688_932531635.1373458099656 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 03/07/2013 04:13, Francois Berenger wrote: On 07/03/2013 10:51 AM, Francois Berenger wrote:
Hello, I think there are no bindings currently to the openbabel library, right? openbabel is written in C++, and I don't want to switch to that language... Is there a recommended example of a good OCaml binding to a C library? I see that openbabel has python bindings, so I will support the same set than what is available for python. The python bindings were generated using swig and swig supports OCaml apparently. That looks interesting.
Hello, I don't know much about C bindings. I used cairo-ocaml which had quite simple bindings, and which also has python bindings : http://oandrieu.nerim.net/ocaml/ A more complicated example but I am pretty sure implemetation was good is lablgtk2 I don't know if there are some general recognised tools to generate C bindings. Best regards, Romain ------=_Part_196948688_932531635.1373458099656 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
On 03/07/2013 04:13, Francois Berenger wrote:
On 07/03/2013 10:51 AM, Francois Berenger wrote:
Hello,

I think there are no bindings currently to the openbabel library, right?
openbabel is written in C++, and I don't want to switch to that language...

Is there a recommended example of a good OCaml binding to a C library?

I see that openbabel has python bindings, so I will support the same set
than what is available for python.

The python bindings were generated using swig and swig supports OCaml
apparently.
That looks interesting.



Hello, I don't know much about C bindings.
I used cairo-ocaml which had quite simple bindings, and which also has python bindings :
http://oandrieu.nerim.net/ocaml/

A more complicated example but I am pretty sure implemetation was good is lablgtk2

I don't know if there are some general recognised tools to generate C bindings.

Best regards,
Romain


------=_Part_196948688_932531635.1373458099656--