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.5.0.tbz
sha256=a991ce25175a5a13240c8bf64354b8f35e0a8d7223b90bef01ba32bc6f929cf4
sha512=ce476986cb2c78990f29b1d7a01bb173a0d30ad0e0a80ba7bde9aa8365952ed01eda4935d92a323b982b0c1c897b20ef01eabe75fe80e4da858f73f6a2d25232
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