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 AAA22238; Fri, 13 Dec 2002 00:42:26 +0100 (MET) 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 AAA23178; Fri, 13 Dec 2002 00:42:24 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from www.duonix.com ([210.113.163.221]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gBCNgL115233; Fri, 13 Dec 2002 00:42:22 +0100 (MET) Received: from hama ([192.168.0.254]) by www.duonix.com (8.12.5/8.11.6) with SMTP id gBCNimwM092502; Fri, 13 Dec 2002 08:44:48 +0900 (KST) (envelope-from shoh@duonix.com) X-Authentication-Warning: www.duonix.com: Host [192.168.0.254] claimed to be hama Message-ID: <000b01c2a238$9c49dd70$fe00a8c0@hama> From: "SooHyoung Oh" To: "Maxence Guesdon" , "Erik Arneson" Cc: References: <20021212101444.44faf508.maxence.guesdon@inria.fr> <15864.57140.849677.64996@sif.musiciansfriend.com> Subject: Re: [Caml-list] mod_ocaml Date: Fri, 13 Dec 2002 08:45:53 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Ocaml Server Pages seems to have some of your reqirments. First, it receives and parses the query string. Second, it compiles the ocaml script and execute the binary. If someone has time to combine these two tools, it'll be great, isn't it? ps: You can download osp from http://www.rogare.com/index.php?inc=downloads/ocaml/ocaml, and you can download some fixes and view examples from http://www.taglib.co.kr/ocaml/index.html --- SooHyoung Oh http://www.taglib.co.kr/shoh.html ----- Original Message ----- From: "Erik Arneson" To: "Maxence Guesdon" Cc: Sent: Friday, December 13, 2002 4:10 AM Subject: Re: [Caml-list] mod_ocaml > On 12 December 2002, Maxence Guesdon wrote: > > I've been told about a mod_ocaml for apache, available at > > http://www.slacky.de/docs/projects/mod_ocaml/ > > > > I have not tested it, but I thought a lot of people might be interested. > > If some of you try it, can you tell us if it works ? > > It works just fine! It is a nice module for quick dynamic web pages, > like Mr Gushee pointed out, but I think there are a few changes that > could be made to make it safer and more robust for bigger applications. > > First, it would be neat if there were a safer way to grab and validate > the query string. A string replacement just doesn't work very well, and > it prints out an error if certain query string arguments aren't found, > so there's no easy way to just search for their existence. There are > some OCaml modules out there to handle this, though, and I believe the > QUERY_STRING environment variable is still available for parsing. > > Second, the OCaml interpreter is called every hit, which probably isn't > very scalable. It would be really neat if the embedded OCaml page were > compiled to byte code and stored in memory somehow, so perhaps the OCaml > bytecode interpreter could only be called once. Mod_perl does something > like this, and it seems to work very well. > > The latter is a pretty big project, though. I would have no idea where > to start, and I think mod_ocaml is a pretty neat beginning in any case! > > -- > ;; Erik Arneson AARG Net ;; > ;; GPG Key ID: 2048R/8B4CBC9C ;; > ;; "Resistance to tyrants is obedience to God!" - Thomas Jefferson ;; > > > ------------------- > 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 > ------------------- 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