caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Ulf Wiger (TN/EAB)" <ulf.wiger@ericsson.com>
To: "Matthieu Dubuget" <matthieu.dubuget@gmail.com>,
	"Joel Reymont" <joelr1@gmail.com>
Cc: <caml-list@yquem.inria.fr>
Subject: RE: [Caml-list] ocaml dll in an Erlang runtime
Date: Thu, 21 Jun 2007 12:34:38 +0200	[thread overview]
Message-ID: <6616D98C65DD514BA2E1DDC5F92231550228B7C6@esealmw115.eemea.ericsson.se> (raw)
In-Reply-To: <9f09a07a0706210315j1fc1f675yfdadf812c995da7f@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]

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
	


[-- Attachment #2: Type: text/html, Size: 3077 bytes --]

  parent reply	other threads:[~2007-06-21 10:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21  9:39 Ulf Wiger (TN/EAB)
2007-06-21  9:52 ` [Caml-list] " Joel Reymont
2007-06-21 10:15   ` Matthieu Dubuget
2007-06-21 10:28     ` Joel Reymont
2007-06-21 10:42       ` Ulf Wiger (TN/EAB)
2007-06-21 19:09       ` Pablo Polvorin
2007-06-21 10:34     ` Ulf Wiger (TN/EAB) [this message]
2007-06-21 12:00     ` Jon Harrop
2007-06-21 12:23       ` Matthieu Dubuget
2007-06-21 19:00         ` Pablo Polvorin
2007-06-22 10:22       ` Dmitry Bely
2007-06-22  8:02 ` Xavier Leroy
2007-06-22 11:57   ` Serge Aleynikov
2007-06-25  9:44   ` Ulf Wiger (TN/EAB)
2007-06-23  4:02 ` Jon Harrop
     [not found] ` <1182973204.24639.1197385329@webmail.messagingengine.com>
2007-06-27 21:07   ` Ulf Wiger (TN/EAB)
2007-06-28  8:22     ` Gabriel Kerneis
2007-06-28  8:38       ` Gabriel Kerneis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6616D98C65DD514BA2E1DDC5F92231550228B7C6@esealmw115.eemea.ericsson.se \
    --to=ulf.wiger@ericsson.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=joelr1@gmail.com \
    --cc=matthieu.dubuget@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).