package trampoline

  1. Overview
  2. Docs
A trampoline library enabling deep recursions that don't fit into stack memory

Install

Dune Dependency

Authors

Maintainers

Sources

trampoline-0.1.0.tbz
sha256=858f0d995a6901cfebdc9937ad695093c0f5fbf56f289c52b9fa15453e839b21
sha512=a9071f22d1f9c13a9e2f6868bb4ebba2b0947b0514f643fd72c095273eccd83eb460858d38814d0121098ef5dc0676b09a6bd6cbd52bfffc03c1224b8cd27754

Description

Using this library you can perform deep recursion that is not limitied by the stack but only by the size of the available random access memory (RAM). In OCaml the number of nested recursive calls that are not tail-calls is limited by the stack. The stack usually consists of a fraction of the RAM available to the OCaml program. The difference between stack and RAM can be important for compilation targets where the default stack size is rather small, e. g. OCaml bytecode or JavaScript. The trampoline library provides a trampoline monad and a few convenience functions.

Tags

topics trampoline

Published: 16 Jun 2023

README

trampoline_ocaml

A trampoline implementation in OCaml

Dependencies (2)

  1. dune >= "3.4"
  2. ocaml

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.