Code Monkey home page Code Monkey logo

ocaml-multicore's Introduction

Multicore OCaml

A concurrent and shared-memory parallel extension of the OCaml compiler.

Multicore OCaml cleanly separates abstractions for concurrency (overlapped execution) from parallelism (simultaneous execution). Concurrency is expressed through effect handlers and parallelism through domains. Much of the work in supporting shared memory parallelism is the development of a mostly-concurrent, generational, mark-and-sweep collector that strikes a balance between single-threaded performance and feature backwards compatibility, and multicore scalability.

See the wiki for more resources.

Variants

Active variants

  • 4.12+domains+effects (default) -- A variant based on 4.12 that performs stop-the-world parallel minor collection. It makes available domains and the syntax extensions for using effects. The branch is 4.12+domains+effects.
  • 4.12+domains -- This branch has domains but does not have the syntax extension for effects (it retains the compiler and runtime system changes needed for effects). The branch is 4.12+domains. This branch is useful to install ppx libraries.

Historical variants

  • Parallel Minor GC (4.10) -- A 4.10 branch using a stop-the-world parallel minor collection. The branch is parallel_minor_gc.
  • Parallel Minor GC + No effect syntax (4.10) -- A 4.10 branch using a stop-the-world parallel minor collection but without the syntax extension for effects. The branch is no-effect-syntax.
  • Parallel Minor GC (4.06) -- A 4.06 branch using a stop-the-world parallel minor collection. The branch is parallel_minor_gc_4_06.
  • Concurrent Minor GC (4.06) -- A 4.06 branch that collects each domain's minor heap concurrently. The branch is master.

Installation

If you want to try out Multicore OCaml, the easiest way is to install the compiler using OPAM.

Parallel programming examples are available in the domainslib library.

Effect handler (concurrent programming) examples are available in effects-examples repo.

Notes

The original README.adoc file has been moved to README.stock.adoc.

ocaml-multicore's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.