Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Embedding OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vlad Seryakov <vlad@c...>
Subject: Re: [Caml-list] Embedding OCaml
Thanks

Actually i checked mod_caml and used many great ideas from it. I have my 
module
working fine and actually i do not use separate executable as mod_caml 
does. i was able to put Caml bytecode
runtime into shared library and give that shared library to caml_main on 
startup, so Dynalink is happy as well.
I have douts about multithreading, source code does not have anything, 
so mutex around callbacks the only solution,
which means it cannot be used in very busy web servers because 
concurrency will be an issue.

Richard Jones wrote:
> On Fri, Feb 20, 2004 at 12:05:30PM -0500, Vlad Seryakov wrote:
> 
>>Hello,
>>
>>I am trying to embedd OCaml into Aolserver as second interpreter. 
>>Aolserver is multithreaded web server which uses Tcl
>>as scripting language. Requestes are processed concurrently by calling 
>>Tcl scripts. My intention is to add OCaml
>>to Aolserver so web pages written in Caml can be used for web programming.
>>
>>My question is, is it safe to use OCaml in such environment where many 
>>different OCaml scripts can be executed.
> 
> 
> Have a look at this posting:
> 
> http://caml.inria.fr/archives/200308/msg00258.html
> 
> 
>>I use Dynalink pacjage for dynamically loading object .cmo files.
> 
> 
> Dynlink is very fussy.  I had lots of problems with it.  You might
> like to look at mod_caml for ideas.
> 
> Rich.
> 

-- 
Vlad Seryakov
703 961-5433 office
vlad@crystalballinc.com
http://www.crystalballinc.com/vlad/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners