1. web/js_of_ocaml

http://ocsigen.org/js_of_ocaml/

Js_of_ocaml is a compiler of OCaml bytecode to Javascript. It makes it possible to run Ocaml programs in a Web browser. http://ocsigen.org/js_of_ocaml/manual/overview

デモがあって、興味深い。

Library : http://ocsigen.org/js_of_ocaml/manual/library

1.1. install

-- ToshinoriMaeno 2012-08-16 09:19:36

OCaml + Findlib はインストールしなおした。 -- ToshinoriMaeno 2012-08-17 02:38:38

Lwt と Js_of_ocaml をダウンロードしよう。

findlib-1.3.3/
libev-4.11/
ocaml-4.00.0/
js_of_ocaml-1.2/
lwt-2.4.0/
react-0.9.4/

The generated code is independant of Eliom and the Ocsigen server. You can use it with any Web server.

1.2. 例題

付属の例題を動かしてみた。(/planet が表示されない。)

本家 http://ocsigen.org/js_of_ocaml/ でも見られます。

1.3. js から ocaml を作ってみる

http://d.hatena.ne.jp/camlspotter/20111015/1318664763

PPLサマースクール2012 http://ppl.jssst.or.jp/index.php?ss2012