caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: r.3@libertysurf.fr
To: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml bindings for openbabel (Chemical toolbox utilities)
Date: Wed, 10 Jul 2013 14:08:19 +0200 (CEST)	[thread overview]
Message-ID: <723533639.196948689.1373458099657.JavaMail.root@zimbra27-e5.priv.proxad.net> (raw)
In-Reply-To: <51D388CC.1090305@riken.jp>

[-- Attachment #1: Type: text/plain, Size: 947 bytes --]

On 03/07/2013 04:13, Francois Berenger wrote: 

On 07/03/2013 10:51 AM, Francois Berenger wrote: 

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



</blockquote>

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 



[-- Attachment #2: Type: text/html, Size: 1716 bytes --]

      reply	other threads:[~2013-07-10 12:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03  1:51 Francois Berenger
2013-07-03  2:13 ` Francois Berenger
2013-07-10 12:08   ` r.3 [this message]

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

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

  git send-email \
    --in-reply-to=723533639.196948689.1373458099657.JavaMail.root@zimbra27-e5.priv.proxad.net \
    --to=r.3@libertysurf.fr \
    --cc=caml-list@inria.fr \
    /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.
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 NNTP newsgroup(s).