package js_of_ocaml-compiler

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

Install

Dune Dependency

Authors

Maintainers

Sources

js_of_ocaml-6.1.1.tbz
sha256=d31da41aae61c02aaa8b4d504e4e93705233d303cd81a07bb4ac5eedb03d6014
sha512=207c6c80447a79fa13e5dbd6baf2837ec91b9d81952328ae91c3496ca30f095fce49faa09af8125602f1ae6f2f6e0c391178454dcb39b9907b5a3712bad3fcee

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.

OCaml

Innovation. Community. Security.