An open API service indexing awesome lists of open source software.

awesome-ocaml

A curated collection of awesome OCaml tools, frameworks, libraries and articles.
https://github.com/ocaml-community/awesome-ocaml

Last synced: 11 days ago
JSON representation

Algorithms and Data Structures

Application Libraries

  • Batteries Included - A community-maintained foundation library for your OCaml projects.
  • Cmdliner - Declarative definition of command line interfaces for OCaml.
  • Core - Jane Street Capital's full-fledged standard library overlay. A portable subset of Core is also available: Core_kernel.
  • Base - Jane Street Capital's dependency-free, quick-compiling, fully-portable across any environment that can run OCaml code standard library.
  • Minicli - Minimalist library for command-line parsing.
  • ocaml-rpc - Light library to deal with RPCs in OCaml.
  • ocaml-containers - A lightweight, modular standard library extension, string library, and interfaces to various libraries (bigarrays, Unix, etc.) BSD license.

Benchmarking

Blogs

Books

  • Pearls of Functional Algorithm Design - by Richard Bird - It summarizes 30 hard algorithmic problems in the function programming world. Although it is for Haskell, the algorithm problems are very interesting, and trying to solve them in OCaml also helps the thinking of functional programming. Partial solutions in OCaml are here.
  • Real World OCaml - by Y. Minsky, A. Madhavapeddy, and J. Hickey - Functional Programming for the masses.
  • Unix System Programming in OCaml - by X. Leroy and D. Rémy – Introduction to Unix Systems Programming, with an emphasis on communications between processes.
  • OCaml for Scientists - by Jon Harrop.
  • Purely Functional Data Structures - This is the first or only book focus on various data structures in FP world. A must-read one.
  • More OCaml: Algorithms, Methods, and Diversions - In More OCaml, John Whitington takes a meandering tour of functional programming with OCaml, introducing various language features and describing some classic algorithms. The book ends with a large-scale example dealing with the production of PDF files. There are questions for each chapter, along with worked-out answers and hints.
  • Using, Understanding, and Unraveling OCaml - This book describes both the OCaml language and the theoretical grounds behind its powerful type system.
  • How to Think Like a (Functional) Programmer - by Allen Downey and Nicholas Monje – How to Think Like a Computer Scientist is an introductory programming textbook based on the OCaml language. It is a modified version of Think Python by Allen Downey. It is intended for newcomers to programming and also those who know some programming but want to learn programming in the function-oriented paradigm, or those who simply want to learn OCaml.

Code Analysis and Linters

  • Infer - Infer is a static analyzer for Java, C and Objective-C
  • flow - flow is a static type checker for JavaScript.
  • SLAyer - SLAyer is an automatic formal verification tool that uses separation logic to verify memory safety of C programs.
  • MemCAD - MemCAD is an abstract interpreter for shape analysis. MemCAD can verify C programs manipulating complex data structures.
  • Camelot - Camelot is a modular and fully configurable OCaml linter and stylechecker.
  • coq-of-ocaml - Translator from OCaml to Coq to formally verify OCaml code.
  • MOPSA - MOPSA is a generic framework for building sound static analyzers based on the theory of abstract interpretation.

Community

Compilers and Compiler Tools

Concurrency

Databases

Datetime

Developer Tools

  • Try OCaml - Try OCaml in your web browser.
  • BetterOCaml - An efficient, intuitive, and cross-platform web IDE with your OCaml code interpreted and running in your browser!
  • Modular foreign function bindings
  • learn-ocaml - . Web app (written in OCaml) underlying the learn-ocaml-corpus. Can be customized to serve lectures (with Markdown slides), playgrounds (with a toplevel prelude), and interactive exercises (with OCaml tests). MIT License.
  • learn-ocaml.el - . Minor mode for Emacs that can display exercise topics and grade exercise solutions, after logging to a Learn-OCaml instance. MIT License.
  • Jupyter - An OCaml kernel for the Jupyter notebook.
  • utop - Universal toplevel for OCaml with support for multiline edition, history, real-time and context-sensitive completion, colors, and more.
  • ocamlformat - A command-line tool to format OCaml code.
  • ghim - A command-line tool to manage Github Issues.
  • puml2xml - A PlantUML (.puml) to XML (.xmi) converter.
  • ocaml-main-program-in-c - Example build system for making mixed C/Ocaml binaries where the main program is in C.
  • Py.ml - OCaml bindings for Python.
  • ocaml-lsp - An LSP language server for OCaml that integrates with any editor that understands LSP like VSCode, Vim and Emacs.
  • merlin - Context sensitive completion for OCaml in Vim and Emacs.
  • tuareg - OCaml mode for Emacs that can run the toplevel and the debugger within Emacs.
  • opam-switch-mode - Minor mode for Emacs that extends Tuareg and Merlin with menus to change or reset the opam switch in the ambient Emacs session.
  • merlin-eldoc - Emacs package to provide merlin's features through eldoc.
  • vscode-ocaml - extension that provides OCaml language support for VSCode
  • OCaml Debugger - extension that provides OCaml Debugger for VSCode
  • Sublime better ocaml - Better OCaml mode for Sublime Text.
  • ocp-index - Easy access to the interface information of installed OCaml libraries. Provides standalone tools like ocp-browser and ocp-grep.
  • ocp-index-top - Toplevel directive for looking up documentation using ocp-index.
  • ocp-indent - Indentation tool for OCaml, to be used from editors like Emacs and Vim.
  • Bisect_ppx
  • Vim plugin - .
  • OCaml: Learn & Code iOS app - Learn and execute OCaml code from your iPhone/iPad/Mac.
  • ocamlbrowser - A source and compiled interface browser, written using LablTk. Included in the standard distribution for ocaml <= 4.01 and with labltk for ocaml >= 4.02.
  • ctypes - Library for binding to C libraries using pure OCaml.

Exercises and Short Examples

  • learn-ocaml-corpus - . Corpus of beginner-to-advanced online exercises (including those from the OCaml MOOC) with automatic grading tests.
  • Programming Language Examples Alike Cookbook - The OCaml section of the book is a free reference for solving common programming problems using OCaml.
  • OCaml at Exercism - Exercism is your place to engage in thoughtful conversations about code. Explore simplicity, idiomatic language features, and expressive, readable code. Solutions.

Formal Software Verification

  • Alt-Ergo - Alt-Ergo is an open-source SMT solver dedicated to the proof of mathematical formulas generated in the context of program verification.
  • Why3 - Why3 is a platform for deductive program verification. It provides a rich language for specification and programming, called WhyML, and relies on external theorem provers, both automated and interactive, to discharge verification conditions.

General

Graphics

  • lablgl - Interface to OpenGL. Integrates well with lablgtk.
  • cairo2 - Binding to Cairo, a 2D Vector Graphics Library. Integrates well with lablgtk.
  • Vg - Declarative 2D vector graphics for OCaml.
  • glMLite - OpenGL bindings for OCaml. Provides an (experimental) functional API. (homepage)
  • archimedes - 2D plotting library.

Internationalization

  • ocaml-m17n - Multilingualization for OCaml source code. Allows using Unicode identifiers in OCaml source code.
  • Uucd - Unicode character database decoder for OCaml.
  • Uucp - Unicode character properties for OCaml.
  • Uunf - Unicode text normalization for OCaml.
  • Uuseg - Unicode text segmentation for OCaml.
  • Uutf - Non-blocking streaming Unicode codec for OCaml.

Language-related

Large Source Code Examples

  • frama-c - platform dedicated to the analysis of source code written in C
  • WHY3 - platform for deductive program verification
  • cil - C Intermediate Language
  • libguestfs - library and tools for accessing and modifying virtual machine disk images
  • Liquidsoap - a swiss-army knife for multimedia streaming, notably used for netradios and webtvs
  • mirage - library operating system that constructs unikernels for secure, high-performance network applications across a variety of cloud computing and mobile platforms
  • MLDonkey - cross-platform multi-network peer-to-peer daemon
  • Oni2 - Native, lightweight modal code editor.
  • Tezos - a self-upgradable Proof of Stake blockchain
  • xen-api - management stack that configures and controls Xen-enabled hosts and resource pools, and co-ordinates resources within the pool.
  • coq - formal proof management system

Logging

  • dolog - A dumb OCaml logger.
  • Volt - A variant of the Bolt OCaml logging tool.

Machine Learning

Messaging

  • onanomsg - nanomsg bindings for OCaml.
  • Kafka - OCaml bindings for Apache Kafka.
  • AMQP - AMQP client library for Async and Lwt.
  • MPI - Message Passing Interface bindings for OCaml.
  • MQTT - OCaml implementation of the MQTT pubsub protocol.
  • capnp-ocaml - OCaml code generator plugin for the Cap'n Proto serialization framework.

Metaprogramming

Metrics

  • prometheus - OCaml client library for Prometheus monitoring.

Mobile Applications

Networking

  • ocaml-cohttp - Very lightweight HTTP server using Lwt or Async.
  • ocurl - OCaml bindings to libcurl.
  • httpaf - A high performance, memory efficient, and scalable web server written in OCaml.
  • piaf - Client/server library for HTTP/1.X / HTTP/2 written entirely in OCaml.
  • ocaml-dns - A pure OCaml implementation of the DNS protocol.