Skip to main content

Showing 1–4 of 4 results for author: Bour, F

Searching in archive cs. Search in all archives.
.
  1. arXiv:2102.09823  [pdf, other

    cs.PL

    Tail Modulo Cons

    Authors: Frédéric Bour, Basile Clément, Gabriel Scherer

    Abstract: OCaml function calls consume space on the system stack. Operating systems set default limits on the stack space which are much lower than the available memory. If a program runs out of stack space, they get the dreaded "Stack Overflow" exception -- they crash. As a result, OCaml programmers have to be careful, when they write recursive functions, to remain in the so-called _tail-recursive_ fragmen… ▽ More

    Submitted 19 February, 2021; originally announced February 2021.

  2. arXiv:1812.04905  [pdf, ps, other

    cs.PL

    CAMLroot: revisiting the OCaml FFI

    Authors: Frédéric Bour

    Abstract: The OCaml language comes with a facility for interfacing with C code -- the Foreign Function Interface or FFI. The primitives for working with the OCaml runtime -- and, in particular, with the garbage collector (GC) -- strive for a minimal overhead: they avoid unnecessary work and allow for calls to C code to be very cheap. But they are also hard to use properly. Satisfying the GC invariants leads… ▽ More

    Submitted 26 April, 2019; v1 submitted 12 December, 2018; originally announced December 2018.

  3. Merlin: A Language Server for OCaml (Experience Report)

    Authors: Frédéric Bour, Thomas Refis, Gabriel Scherer

    Abstract: We report on the experience of develo** Merlin, a language server for the OCaml programming language in development since 2013. Merlin is a daemon that connects to your favourite text editor and provides services that require a fine-grained understanding of the programming language syntax and static semantics: instant feedback on warnings and errors, autocompletion, `type of the code under the c… ▽ More

    Submitted 2 October, 2018; v1 submitted 17 July, 2018; originally announced July 2018.

  4. Modular implicits

    Authors: Leo White, Frédéric Bour, Jeremy Yallop

    Abstract: We present modular implicits, an extension to the OCaml language for ad-hoc polymorphism inspired by Scala implicits and modular type classes. Modular implicits are based on type-directed implicit module parameters, and elaborate straightforwardly into OCaml's first-class functors. Basing the design on OCaml's modules leads to a system that naturally supports many features from other languages wit… ▽ More

    Submitted 6 December, 2015; originally announced December 2015.

    Comments: In Proceedings ML/OCaml 2014, arXiv:1512.01438

    ACM Class: D.3.3

    Journal ref: EPTCS 198, 2015, pp. 22-63