Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > b55d7c43b870130fe183a7ec3a49d711 > files > 439

js-of-ocaml-doc-1.0.9-1.fc16.noarch.rpm

= 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.  Its key features are the following:
* The whole language, and most of the standard library are supported.
* The compiler is easy to install: it only depends on [[http://projects.camlcity.org/projects/findlib.html|Findlib]] and [[wiki(21):|Lwt]].
* The generated code is independant of [[wiki(15):|Eliom]] and the [[wiki(12):|Ocsigen server]]. You can use it with any Web server.
* You can use a standard installation of OCaml to compile your programs.  In particular, you do not have to recompile a library to use it with Js_of_ocaml.
You just have to link your program with a specific library to interface with the browser APIs.

A few small demos are available on-line:
* <<a_file src="toplevel/index.html"|An OCaml toplevel running in the browser>>
* <<a_file src="planet/index.html"|An animated 3D view of the Earth>>
* <<a_file src="graph/index.html" |A graph viewer>>
* <<a_manual chapter="boulderdash"|A Boulder Dash game>>
* <<a_manual chapter="wiki"|A realtime wiki editor>>

You can also read a more detailed <<a_manual chapter="overview" | overview >> with installation instructions and the <<a_api text="documentation of the associated library" | index >>.