Javascripts stubs for the Zarith library
Browse cluster: OCaml incremental computation and PPX tooling →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.