[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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. > > http://starship.python.net/crew/theller/ctypes/ 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 possible. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e