Software Alternatives & Reviews

OCaml VS Haskell

Compare OCaml VS Haskell and see what are their differences

OCaml logo OCaml

(* Binary tree with leaves carrying an integer.

Haskell logo Haskell

An advanced purely-functional programming language
  • OCaml Landing page
    Landing page //
    2023-10-03

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

  • Haskell Landing page
    Landing page //
    2023-05-01

We recommend LibHunt Haskell for discovery and comparisons of trending Haskell 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

Haskell videos

Functional Programming & Haskell - Computerphile

More videos:

  • Review - Marloe Haskell Review
  • Review - Marloe Watch Company - Haskell - Watch Review

Category Popularity

0-100% (relative to OCaml and Haskell)
Programming Language
42 42%
58% 58
OOP
46 46%
54% 54
Generic Programming Language
Dynamic Programming Language

User comments

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

Social recommendations and mentions

OCaml might be a bit more popular than Haskell. We know about 30 links to it since March 2021 and only 21 links to Haskell. 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 / 7 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 / 10 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: 10 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: 12 months ago
  • So Hows the Hackathon Going?
    Easier than haskell and easier for writing compilers: https://ocaml.org/. Source: 12 months ago
View more

Haskell mentions (21)

  • Is there a programming language that will blow my mind?
    Haskell - a general-purpose functional language with many unique properties (purely functional, lazy, expressive types, STM, etc). You mentioned you dabbled in Haskell, why not try it again? (I've written about 7 things I learned from Haskell, and my book is linked at them bottom if you're interested :) ). Source: 11 months ago
  • Where to go from here?
    Where you go is entirely up to you. According to haskell.org, Haskell jobs are a-plenty. sigh. Source: about 1 year ago
  • Haskell.org now has "Get Started" page!
    Should they be part of haskell.org or something else? Source: about 1 year ago
  • Haskell.org now has "Get Started" page!
    Haskell.org now has a big purple Get Started button that takes you to a nice short guide (haskell.org/get-started) that quickly provides all the basic info to get going with Haskell. It is aimed for beginners, to reduce choice fatigue and to give them a clear, official path to get going. Source: about 1 year ago
  • dev environment for windows
    I just jumped into the wiki "Write Yourself a Scheme in 48 hours" which looks pretty good. (although some of the text explanation is hard to understand without context).. I used cabal to set up the starter project. Sublime editor seems to work OK and I just use the git Bash shell on windows to compile the program directly on the command line. So maybe this is all good enough for now (?). It seems installing... Source: over 1 year ago
View more

What are some alternatives?

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

Rust - A safe, concurrent, practical language

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

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

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

JavaScript - Lightweight, interpreted, object-oriented language with first-class functions

Java - A concurrent, class-based, object-oriented, language specifically designed to have as few implementation dependencies as possible