Version française
Home     About     Download     Resources     Contact us    
Browse thread
Web REPL
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: forum@x9c.fr <forum@x...>
Subject: Re: [Caml-list] Web REPL

Le 7 nov. 07 à 17:47, Jon Harrop a écrit :

>
> I haven't found time to get ocamljava working yet but someone  
> pointed out that
> it would be rather cool to have an on-line OCaml tutorial where  
> 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,  
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  
signed
(and trusted) because Cadmium needs "privileged" permissions.

If fou want one to submit OCaml code snippets to a server for  
execution, there
are several solutions. Of course, I will advertise another of my  
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  
hesitate to
contact me off-list.