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 KAA14955; Fri, 5 Jul 2002 10:07:09 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA14451 for ; Fri, 5 Jul 2002 10:07:09 +0200 (MET DST) Received: from cantina.students.cs.unibo.it (cantina.students.cs.unibo.it [130.136.3.110]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g65878918627 for ; Fri, 5 Jul 2002 10:07:08 +0200 (MET DST) Received: from lordsoth.takhisis.org ([62.98.126.95]) (authenticated bits=0) by cantina.students.cs.unibo.it (8.12.4/8.12.4/Debian-2) with ESMTP id g6586nDj032100 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Fri, 5 Jul 2002 10:07:04 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [127.0.0.1]) by lordsoth.takhisis.org (8.12.4/8.12.4/Debian-4) with ESMTP id g6586jxZ005365 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 5 Jul 2002 10:06:45 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.4/8.12.4/Debian-4) id g6586itR005363 for caml-list@inria.fr; Fri, 5 Jul 2002 10:06:44 +0200 Date: Fri, 5 Jul 2002 10:06:44 +0200 From: Stefano Zacchiroli To: Ocaml Subject: Re: [Caml-list] XML, XSL, eXcetera Message-ID: <20020705080644.GB5297@cs.unibo.it> Mail-Followup-To: Ocaml References: <24542c290fd7023473fa0a397374847c@caldo.demon.co.uk> <3D24975C.2020003@baretta.com> <20020704235143.A621@ice.gerd-stolpmann.de> <3D24CF9E.8010904@baretta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D24CF9E.8010904@baretta.com> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Jul 05, 2002 at 12:43:42AM +0200, Alessandro Baretta wrote: > How would you do that? With a sort of "toplevel server" > waiting for connections and dynamically compiling and > linking into its environment the code sent to it? Is > anything like this already around? Sure, it's named "/usr/bin/ocaml" :-) Try this script: #!/usr/bin/ocamlrun /usr/bin/ocaml print_endline "Hello, world!" You can use all toplevel directives so you can also use libraries that support dynamic loading. BTW, if you want to use a library that doesn't support dynamic loading you have to use a relinked ocaml interpreter or you will be in trouble. Maybe I've misunderstood your question ... Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney ------------------- 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