Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Easier FFI
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-12-21 (04:04)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Easier FFI
On Friday 21 December 2007 03:37, Dave Benjamin wrote:
> I would love something like this. I've used "ctypes", a similar library
> for Python, a few times, and it has really come in handy. Not something
> I want to use often (at least not directly), but for those times when
> use of an unsupported C library is necessary, it's so nice to have the
> ability to stay within the language rather than writing a bunch of
> wrapper code. I wonder if something like ctypes would translate well to
> a statically typed language like OCaml.

Absolutely, that's exactly the kind of thing I'm talking about. Basically just 
a glorified C interpreter as a fallback to make unsafe interop as easy as 

Dr Jon D Harrop, Flying Frog Consultancy Ltd.