package js_of_ocaml-compiler

  1. Overview
  2. Docs
Compiler from OCaml bytecode to JavaScript

Install

dune-project
 Dependency

Authors

Maintainers

Sources

js_of_ocaml-6.4.1.tbz
sha256=e59bbffcaefaba3191620556514b7f53bb3249e3f881a070d72724234dffd819
sha512=bb470f316f9c81a3b2b8dedd0b0f18f8e06beb48dd70df1d9f846de90ffab439cab5ef7a93a8166af0998068b06097e8319bc0d9f4f23a7159b0de8b3b515746

doc/js_of_ocaml-compiler.runtime/Jsoo_runtime/Effect/index.html

Module Jsoo_runtime.EffectSource

Sourceval assume_no_perform : (unit -> 'a) -> 'a

Passing a function f as argument of `assume_no_perform` guarantees that, when compiling with `--effects=double-translation`, the direct-style version of f is called, which is faster than the CPS version. As a consequence, performing an effect in a transitive callee of f will raise `Effect.Unhandled`, regardless of any effect handlers installed before the call to `assume_no_perform`, unless a new effect handler was installed in the meantime.

This behaviour is the same when double translation is disabled.