Re: interfacing ocaml and external structure

From: Xavier Leroy (
Date: Thu Dec 23 1999 - 15:31:35 MET

Date: Thu, 23 Dec 1999 15:31:35 +0100
From: Xavier Leroy <>
To: Patrick Goldbronn - SYSCO <>,
Subject: Re: interfacing ocaml and external structure
In-Reply-To: <>; from Patrick Goldbronn - SYSCO on Mon, Dec 20, 1999 at 01:40:47PM +0000

> I saw some messages about external structure (such "large array") and
> interfaces with ocaml.
> With the function alloc_final, we can give the free function of the
> external type to GC.
> I think the other interesting feature to use in ocaml is marshalling
> (perhaps there are others).
> Do you think it is possible to give, like the free function, the
> marshall function for an external type ?

Yes, we have some work in progress in this direction. The idea is
to attach to "finalized" blocks a record of C functions, supporting
not only finalization, but also equality test, hashing, marshalling
and unmarshalling. This would be useful not only for large arrays,
but also for other datatypes in the Caml library such as big integers.

- Xavier Leroy

This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:29 MET