← All repos

js_of_ocaml

Compiler from OCaml to Javascript.

compilerjavascriptjsooocamlocsigen
Browse cluster: OCaml Systems and Utilities
6,791commits
179contributors
16languages

Tech stack & purpose

Js_of_ocaml is a compiler from OCaml bytecode to JavaScript, developed and maintained by the Ocsigen team. The project allows pure OCaml programs to run in browsers and Node.js, and also includes wasm_of_ocaml, a compiler targeting WebAssembly. The system is built in OCaml itself, uses Dune as its build system, and generates JavaScript or WebAssembly output by reading OCaml bytecode files, converting them to an internal representation, optimizing and transforming that representation, and then emitting the target language.

Community & reference links

Languages

OCaml
52.2%
JavaScript
29.7%
WebAssembly
9.3%
C
7.9%
HTML
0.4%
TypeScript
0.2%
Makefile
0.1%
Raku
0.1%
Dune
0.0%
SourcePawn
0.0%
Shell
0.0%
Pawn
0.0%
Python
0.0%
Dockerfile
0.0%
Terra
0.0%
Perl
0.0%

Contributors (top 30 of 179)