package js_of_ocaml
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Compiler from OCaml bytecode to JavaScript
Install
dune-project
Dependency
Authors
Maintainers
Sources
js_of_ocaml-6.4.0.tbz
sha256=7ae22a7e5a6c6aa14a8e2695fa62c66f32cb20db17f1b45dc21e97009342151f
sha512=6cea398d61d4be8e38e912ba7e4bad4f7b81b10d946cdf29026274b5a4b2cc2709fb75e23f7cbe2db335cc65679c262a8aa1b9148effc987d6e79665a7538286
doc/index.html
Js_of_ocaml
Js_of_ocaml is a compiler from OCaml bytecode programs to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environments like browsers and Node.js. A companion compiler, wasm_of_ocaml, targets WebAssembly.
Manual
- Overview — what Js_of_ocaml is and how to use it
- Installation
- Quick Start
- JavaScript interoperability
- PPX syntax extension and JSON derivation
- Export OCaml code to JavaScript
- Error handling
- Lwt support
- Command-line options, compilation modes, JavaScript primitives, tail-call optimization, effect handlers, runtime representation
- Targeting older browsers
- wasm_of_ocaml overview and writing Wasm primitives
- Build a toplevel, debug a program, performance, contribute
- Examples and projects
API reference
See the API overview for the full list of modules, or jump to the main libraries: Js_of_ocaml.Js, Js_of_ocaml.Dom_html, Js_of_ocaml_lwt.Lwt_js_events, Js_of_ocaml_tyxml.Tyxml_js.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page