From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA28396; Fri, 20 Feb 2004 18:36:56 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA27824 for ; Fri, 20 Feb 2004 18:36:54 +0100 (MET) Received: from smtp.mcdean.com (relay2.mcdean.com [65.242.69.7]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1KHaqae014176 for ; Fri, 20 Feb 2004 18:36:53 +0100 Received: by smtp.mcdean.com (Postfix Relay Hub, from userid 504) id 187D8AA914; Fri, 20 Feb 2004 12:36:50 -0500 (EST) Received: from crystalballinc.com (ossdev.mcdean.com [192.168.18.35]) by smtp.mcdean.com (Postfix Relay Hub) with ESMTP id BA0B9AA8CE for ; Fri, 20 Feb 2004 12:36:49 -0500 (EST) Message-ID: <40364514.7050708@crystalballinc.com> Date: Fri, 20 Feb 2004 12:34:12 -0500 From: Vlad Seryakov Organization: Crystal Ball Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Embedding OCaml References: <40363E5A.6030707@crystalballinc.com> <20040220172545.GA7538@redhat.com> In-Reply-To: <20040220172545.GA7538@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-DCC: : X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on suxmcdlts07.mcdean.com X-Spam-Status: No, hits=0.0 required=9.0 tests=none autolearn=no version=2.60 X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; vlad:99 vlad:99 caml-list:01 embedding:01 runtime:01 dynalink:01 callbacks:01 2004:99 dynalink:01 dynamically:01 dynlink:01 fussy:01 703:99 961:99 cmo:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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