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] IOCaml 0.4
Date: Sat, 5 Apr 2014 21:32:53 +0100	[thread overview]
Message-ID: <CAHYOizG84_Xx0zQCHoB+M-DjD4jrMd3B25=bjZ9pzimr9Z7yUQ@mail.gmail.com> (raw)

IOCaml provides an OCaml REPL in a webbrowser.  Version 0.4 frees us
from the tyranny of Python and provides an OCaml based webserver.  Put
another way you no longer need IPython installed at all.

The project is split into 3 opam packages;

* iocaml-kernel (https://github.com/andrewray/iocaml) - byte code OCaml kernel
* iocamljs-kernel (https://github.com/andrewray/iocamljs) - javascript
OCaml kernel(s)
* iocaml (https://github.com/andrewray/iocamlserver) - iocaml webserver

In general from a 4.01.0 compiler

$ opam install iocaml

should get everything installed.  OS requirements are libssl-dev and
libzmq3-dev (possibly some others as well, let me know and I'll add
them to the project pages).  Chrome, Firefox and Safari have been
tested.

To run iocaml;

$ iocaml

or

$ iocaml path/to/dir

To bring up the dashboard interface.  Or

$ iocaml notebook.ipynb

To directly load a notebook.

Use the "-js <kernel>" option to load a javascript based ocaml kernel.

$ iocaml -js min [...]

will load a minimal javascript ocaml REPL while

$ iocaml -js full [...]

will load a REPL with the js_of_ocaml and lwt libraries including
syntax extensions included.

For those brave souls you can try

$ iocaml -js min -serve-jslibs [...]

and have a play with #use "topfind" / #require.  Its probably worth
mentioning that the various "-serve" options allow the browser access
to your file system so don't run it on a public network without due
care.

Cheers,
Andy

             reply	other threads:[~2014-04-05 20:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-05 20:32 Andy Ray [this message]
2014-04-06  2:35 ` Yotam Barnoy
2014-04-06  8:53 ` Anil Madhavapeddy
2014-04-06 10:59 ` 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='CAHYOizG84_Xx0zQCHoB+M-DjD4jrMd3B25=bjZ9pzimr9Z7yUQ@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).