From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id F3886BC6B for ; Wed, 7 Nov 2007 21:33:18 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAEywMUfVuiqznmdsb2JhbACOfQIBAQcEBhEYgQ8 X-IronPort-AV: E=Sophos;i="4.21,386,1188770400"; d="scan'208";a="4166811" Received: from 26.mail-out.ovh.net ([213.186.42.179]) by mail1-smtp-roc.national.inria.fr with SMTP; 07 Nov 2007 21:33:18 +0100 Received: (qmail 14314 invoked by uid 503); 7 Nov 2007 20:33:45 -0000 Received: (QMFILT: 1.0); 07 Nov 2007 20:33:45 -0000 Received: from b6.ovh.net (HELO mail148.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 7 Nov 2007 20:33:45 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 7 Nov 2007 20:33:15 -0000 Received: from mut38-5-82-246-191-110.fbx.proxad.net (HELO ?82.246.191.110?) (forum%x9c.fr@82.246.191.110) by ns0.ovh.net with SMTP; 7 Nov 2007 20:33:12 -0000 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <200711071647.40571.jon@ffconsultancy.com> References: <200711071647.40571.jon@ffconsultancy.com> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <7F573BBA-5455-41C1-8D0D-2FEA9AD4F25E@x9c.fr> Content-Transfer-Encoding: quoted-printable From: "forum@x9c.fr" Subject: Re: [Caml-list] Web REPL Date: Wed, 7 Nov 2007 21:33:51 +0100 To: caml-list@yquem.inria.fr X-Mailer: Apple Mail (2.752.2) X-Ovh-Remote: 82.246.191.110 (mut38-5-82-246-191-110.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam: no; 0.00; ocaml:01 ocaml:01 toplevel:01 ocamlrun:01 snippets:01 bindings:01 toplevel:01 off-list:01 caml-list:01 precisely:01 executable:03 programming:03 tutorial:03 privileged:05 xavier:06 Le 7 nov. 07 =E0 17:47, Jon Harrop a =E9crit : > > I haven't found time to get ocamljava working yet but someone =20 > pointed out that > it would be rather cool to have an on-line OCaml tutorial where =20 > your browser > evaluated OCaml code. Has anyone done anything like this? I am afraid I don't understand *precisely* what you want to do. If you want one to use an OCaml toplevel embedded in a Java applet, =20 it is quite easy to do using Cadmium (http://cadmium.x9c.fr). Cadmium is then used as a bare replacement for ocamlrun to run the ocaml executable. You should nevertheless be aware of the fact that the applet must be =20 signed (and trusted) because Cadmium needs "privileged" permissions. If fou want one to submit OCaml code snippets to a server for =20 execution, there are several solutions. Of course, I will advertise another of my =20 projects :-) Cadmium-Servlet provides bindings for servlet programming. You can then send OCaml code to the servlet for evaluation by a server-side toplevel. Xavier PS: If you run into troubles while trying to build ocamljava, don't =20 hesitate to contact me off-list.