← All repos

zarith_stubs_js

Javascripts stubs for the Zarith library

Browse cluster: OCaml incremental computation and PPX tooling
52commits
8contributors
6languages

Tech stack & purpose

Zarith Stubs JS provides JavaScript implementations of the native C functions from the Zarith OCaml library, which performs arbitrary-precision integer and rational arithmetic. The project bridges the gap between Zarith and Js_of_ocaml, a compiler that converts OCaml to JavaScript, by reimplementing Zarith's C API in JavaScript using the peterolson/BigInteger.js library as a foundation. Built by Jane Street, the project allows developers to use Zarith in web environments by adding it as a dependency in dune-based projects or by providing its runtime files directly to the Js_of_ocaml compiler.

Languages

OCaml
39.4%
WebAssembly
27.8%
JavaScript
18.8%
Standard ML
13.9%
Makefile
0.1%
Dune
0.0%

Contributors