Software Alternatives, Accelerators & Startups

OCaml VS Erlang

Compare OCaml VS Erlang and see what are their differences

OCaml logo OCaml

(* Binary tree with leaves carrying an integer.

Erlang logo Erlang

A programming language used to build massively scalable soft real-time systems with requirements on high availability
  • OCaml Landing page
    Landing page //
    2023-10-03

We recommend LibHunt OCaml for discovery and comparisons of trending OCaml projects.

  • Erlang Landing page
    Landing page //
    2023-05-09

We recommend LibHunt Erlang for discovery and comparisons of trending Erlang projects.

OCaml videos

Uncommon Languages: OCaml

More videos:

  • Review - What is Ocaml?
  • Review - OCaml – The Best Coding Language for Blockchain – Dr. Dray at Tezos LA

Erlang videos

Book Review - Erlang in Anger

More videos:

  • Review - Erlang is getting pretty! - Michal Muskala | Code BEAM SF 20

Category Popularity

0-100% (relative to OCaml and Erlang)
Programming Language
62 62%
38% 38
OOP
59 59%
41% 41
Generic Programming Language
Development
0 0%
100% 100

User comments

Share your experience with using OCaml and Erlang. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, OCaml seems to be a lot more popular than Erlang. While we know about 30 links to OCaml, we've tracked only 2 mentions of Erlang. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

OCaml mentions (30)

  • Bringing more sweetness to ruby with sorbet types 🍦
    If you have been in the Ruby community for the past couple of years, it's possible that you're not a super fan of types or that this concept never passed through your mind, and that's totally cool. I myself love the dynamic and meta-programming nature of Ruby, and honestly, by the time of this article's writing, we aren't on the level of OCaml for type checking and inference, but still, there are a couple of nice... - Source: dev.to / 8 months ago
  • Notes about the ongoing Perl logo discussion
    An amazing example is Ocaml lang logo / mascot. It might be useful to talk with them to know what was the process behind this work. The About page camel head on Perl dot org header is also a pretty good example of simplification, but it's not a logo, just a friendly illustration, as the O'Reilly camel is. Another notable logo for this animal is the well known tobacco industry company, but don't get me started on... - Source: dev.to / 11 months ago
  • What can Category Theory do?
    Haskell and Agda are probably the most obvious examples. Ocaml too, but it is much older, so its type system is not as categorical. There is also Idris, which is not as well-known but is very cool. Source: 11 months ago
  • Key takeways from OpenAI CEO's 3-hour Senate testimony, where he called for AI models to be licensed by US govt. Full breakdown inside.
    NEAT is a fascinating algorithm. I've been interested in it ever since SethBling made a video about it playing Mario and this series of experiments about a variant of NEAT that evolves in real-time rather than by-generation. I'm finally getting to be just good enough of a programmer that I am actually considering writing my own (probably in OCaml because there's an unfortunate lack of NEAT implementations in... Source: about 1 year ago
  • So Hows the Hackathon Going?
    Easier than haskell and easier for writing compilers: https://ocaml.org/. Source: about 1 year ago
View more

Erlang mentions (2)

  • Perfect Elixir: Environment Setup
    I’m on MacOS and erlang.org, elixir-lang.org, and postgresql.org all suggest installation via Homebrew, which is a very popular package manager for MacOS. - Source: dev.to / 2 months ago
  • What is Calypso?
    However, as Elixir is inherently tied to the BEAM and Erlang/OTP, it means that it has features like immutable variables (though you can rebind them and have state via process loops, e.g. Agents or GenServers). This also means that OTP is the main "application framework" for Elixir/Erlang. In my opinion, OTP is a pretty good design philosophy for applications, but sometimes it's just kind of hard to set up or wrap... - Source: dev.to / about 3 years ago

What are some alternatives?

When comparing OCaml and Erlang, you can also consider the following products

Rust - A safe, concurrent, practical language

Elixir - Dynamic, functional language designed for building scalable and maintainable applications

Go.CD - Open source continuous delivery tool allows for advanced workflow modeling and dependencies management.

Perl - Highly capable, feature-rich programming language with over 26 years of development

Python - Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java.

Clojure - Clojure is a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming.