caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] OCaml bindings for openbabel (Chemical toolbox utilities)
@ 2013-07-03  1:51 Francois Berenger
  2013-07-03  2:13 ` Francois Berenger
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Berenger @ 2013-07-03  1:51 UTC (permalink / raw)
  To: caml-list

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.

Regards,
F.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] OCaml bindings for openbabel (Chemical toolbox utilities)
  2013-07-03  1:51 [Caml-list] OCaml bindings for openbabel (Chemical toolbox utilities) Francois Berenger
@ 2013-07-03  2:13 ` Francois Berenger
  2013-07-10 12:08   ` r.3
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Berenger @ 2013-07-03  2:13 UTC (permalink / raw)
  To: caml-list

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] OCaml bindings for openbabel (Chemical toolbox utilities)
  2013-07-03  2:13 ` Francois Berenger
@ 2013-07-10 12:08   ` r.3
  0 siblings, 0 replies; 3+ messages in thread
From: r.3 @ 2013-07-10 12:08 UTC (permalink / raw)
  To: caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-10 12:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03  1:51 [Caml-list] OCaml bindings for openbabel (Chemical toolbox utilities) Francois Berenger
2013-07-03  2:13 ` Francois Berenger
2013-07-10 12:08   ` r.3

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