caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andy Ray <andy.ray@ujamjar.com>
To: Ocaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] [ANN] IOCamlJS v0.1
Date: Tue, 25 Feb 2014 22:02:07 +0000	[thread overview]
Message-ID: <CAHYOizECp-mLLV9gDz35B6+saXa3f8HcfS6jnBPupDYO0WLNNg@mail.gmail.com> (raw)

https://github.com/andrewray/iocamljs


IOCamlJS runs a (compiled-to-javascript) OCaml REPL in the IPython
notebook. stdout and stderr are redirected to the notebook interface
so printf works as expected. The js_of_ocaml and lwt syntax extensions
are enabled.

Only a small API for interacting with the notebook is provided by
iocamljs at the moment; js_of_ocaml provides far greater
possibilities.

The demo notebook js_of_ocaml-webgl-demo.ipynb provides a good example
of what can be done. Its an almost direct copy of the js_of_ocaml
WebGL demo except the 3d model, shader code, ocaml code and html code
are all embedded in the notebook and can be compiled and run live in
the browser.

Nothing needs to be (re)compiled for it to run - so long as you have a
IPython 1.1 installed the github repo has everything you need.  It
might even run on Windows....(I haven't tried but why not?!).

Cheers,

Andy

PS I have only tested with IPython 1.1 and the way it hacks the
ipython kernel I wouldn't recommend a different version for now.

             reply	other threads:[~2014-02-25 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-25 22:02 Andy Ray [this message]
2014-02-25 22:38 ` [Caml-list] Fwd: " Andy Ray

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=CAHYOizECp-mLLV9gDz35B6+saXa3f8HcfS6jnBPupDYO0WLNNg@mail.gmail.com \
    --to=andy.ray@ujamjar.com \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).