caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] IOCaml 0.4
@ 2014-04-05 20:32 Andy Ray
  2014-04-06  2:35 ` Yotam Barnoy
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andy Ray @ 2014-04-05 20:32 UTC (permalink / raw)
  To: Ocaml Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-06 11:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-05 20:32 [Caml-list] [ANN] IOCaml 0.4 Andy Ray
2014-04-06  2:35 ` Yotam Barnoy
2014-04-06  8:53 ` Anil Madhavapeddy
2014-04-06 10:59 ` Andy Ray

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).