Wow, this is astounding progress. It's a real testament both to your hard work and to the amazing infrastructure that people are developing using OCaml. Congrats.


On Sat, Apr 5, 2014 at 4:32 PM, Andy Ray <andy.ray@ujamjar.com> wrote:
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

--
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs