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
ocaml dll in an Erlang runtime
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-21 (10:34)
From: Ulf Wiger (TN/EAB) <ulf.wiger@e...>
Subject: RE: [Caml-list] ocaml dll in an Erlang runtime
If you can run multiple instances of ocaml dlls in the same memory
space, this doesn't have to be such a big deal.
To clarify, a "driver" in Erlang is instantiated using the
open_port(Cmd) function. This initiates a driver context, and the number
of available file descriptors limits how many instances you can open. It
becomes problematic if the code is makes use of global variables.
But even if one can only have one instance of an OCaml driver, this
could be useful. You can open a named port, which can be accessed by any
erlang process.
Ulf W


[] On Behalf Of Matthieu Dubuget
	Sent: den 21 juni 2007 12:16
	To: Joel Reymont
	Subject: Re: [Caml-list] ocaml dll in an Erlang runtime

	2007/6/21, Joel Reymont <>: 

		My biggest issue with OCaml is building shared
		I tried to build a shared library for use with Ruby once
and failed

	Could you please elaborate about this? Maybe not on this thread.

	I ask this, because almost all my OCaml code is use as shared
	Most of the time, this is on Windows (but compilation is a lot
simpler on unix).
	They are called from LabVIEW, Java, C...
	The only problem I faced is that I have to avoid Thread module.