Software Alternatives, Accelerators & Startups

Implementing the Perceus reference counting GC

OCaml Elm
  1. 1
    (* Binary tree with leaves carrying an integer.
    Pricing:
    • Open Source
    Reference counting (RC) has rather been a minor party to the other garbage collection (GC) algorithms in functional programming in the last decades as, for example, OCaml and Haskell use non-RC GC. However, several recent papers, such as Counting Immutable Beans: Reference Counting Optimized for Purely Functional Programming and Perceus: Garbage Free Reference Counting with Reuse, showed the efficiency of highly optimized RC GC in functional languages with sacrifice or restriction of some language features like circular references. The latter paper introduced an efficient RC GC algorithm called Perceus which is basically all-in-one RC.

    #Programming Language #OOP #Generic Programming Language 32 social mentions

  2. 2

    Elm

    A type inferred, functional reactive language that compiles to HTML, CSS, and JavaScript
    Pricing:
    • Open Source
    When your language has record types and syntax for record field access, things might be a little complex. Let's think about the following pseudo code where we want to update a recursive data structure of type A in place (The code is written in Elm but assume that we implemented it with Perceus.):.

    #Programming Language #OOP #Generic Programming Language 123 social mentions

Discuss: Implementing the Perceus reference counting GC

Log in or Post with