Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.
 
BR,
Ulf W


________________________________

	From: caml-list-bounces@yquem.inria.fr
[mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Matthieu Dubuget
	Sent: den 21 juni 2007 12:16
	To: Joel Reymont
	Cc: caml-list@yquem.inria.fr
	Subject: Re: [Caml-list] ocaml dll in an Erlang runtime
	
	


	2007/6/21, Joel Reymont <joelr1@gmail.com>: 

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


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

	
	I ask this, because almost all my OCaml code is use as shared
libraries.
	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. 
	
	Salutations
	
	
	Matt