Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "forum@x9c.fr" <forum@x9c.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Web REPL
Date: Wed, 7 Nov 2007 21:33:51 +0100	[thread overview]
Message-ID: <7F573BBA-5455-41C1-8D0D-2FEA9AD4F25E@x9c.fr> (raw)
In-Reply-To: <200711071647.40571.jon@ffconsultancy.com>


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.


  parent reply	other threads:[~2007-11-07 20:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07 16:47 Jon Harrop
2007-11-07 19:29 ` [Caml-list] " Matthieu Dubuget
2007-11-07 19:36   ` Stéphane Lescuyer
2007-11-07 19:40   ` Simão Melo de Sousa
2007-11-07 20:33 ` forum [this message]
2007-11-08  1:11   ` Jan Rehders
2007-11-08  3:55     ` Jon Harrop
2007-11-08 16:00       ` Adrien
2007-11-11 18:27       ` forum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7F573BBA-5455-41C1-8D0D-2FEA9AD4F25E@x9c.fr \
    --to=forum@x9c.fr \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox