caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* interfacing ocaml and external structure
@ 1999-12-20 13:40 Patrick Goldbronn - SYSCO
  1999-12-23 14:31 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Goldbronn - SYSCO @ 1999-12-20 13:40 UTC (permalink / raw)
  To: Inria, caml

Hello,

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 ?
I don't know if marshalling is hard to understand and/or apply but it
could be an intermediate solution to use external type.

Perhaps it's impossible (I know nothing about the theorical implication
:( ) ?

Thanks,

-- 
#####################################
# Patrick GOLDBRONN                 #
# CEA - DRN/DMT/SYSCO               #
# CE-Saclay, Bâtiment 460           #
# 91191 GIF/YVETTE CEDEX (FRANCE)   #
#                                   #
# Tél : 01 69 08 73 55              #
# Fax : 01 69 08 96 96              #
#####################################




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

* Re: interfacing ocaml and external structure
  1999-12-20 13:40 interfacing ocaml and external structure Patrick Goldbronn - SYSCO
@ 1999-12-23 14:31 ` Xavier Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 1999-12-23 14:31 UTC (permalink / raw)
  To: Patrick Goldbronn - SYSCO, Inria, caml

> 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




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

end of thread, other threads:[~1999-12-23 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-20 13:40 interfacing ocaml and external structure Patrick Goldbronn - SYSCO
1999-12-23 14:31 ` Xavier Leroy

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