Software Alternatives & Reviews

OCaml VS F#

Compare OCaml VS F# and see what are their differences

OCaml logo OCaml

(* Binary tree with leaves carrying an integer.

F# logo F#

F# is a mature, open source, cross-platform, functional-first programming language.
  • OCaml Landing page
    Landing page //
    2023-10-03

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

  • F# Landing page
    Landing page //
    2021-09-15

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

F# videos

F# Software Foundation Year in Review

More videos:

  • Review - F# Blues Harp Review
  • Review - F# base Bhavika flute review by Dhyey patel ji

Category Popularity

0-100% (relative to OCaml and F#)
Programming Language
51 51%
49% 49
OOP
52 52%
48% 48
Generic Programming Language
Dynamic Programming Language

User comments

Share your experience with using OCaml and F#. 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 should be more popular than F#. It has been mentiond 30 times since March 2021. 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 / 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: 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: 12 months ago
  • So Hows the Hackathon Going?
    Easier than haskell and easier for writing compilers: https://ocaml.org/. Source: about 1 year ago
View more

F# mentions (19)

  • Roc – A fast, friendly, functional language
    Oh yeah. A key hindrance of F# is that MS treats it like a side project even though it's probably their secret weapon, and a lot of the adopters are dotnet coders who already know the basics so the on-boarding is less than ideal. https://fsharp.org/ is the best place to actually start. https://fsharpforfunandprofit.com/ is the standard recommendation from there but there's finally some good youtube and other... - Source: Hacker News / 6 months ago
  • Building React Components Using Unions in TypeScript
    Naturally I’d recommend using a better language such as ReScript or Elm or PureScript or F#‘s Fable + Elmish, but “React” is the king right now and people perceive TypeScript as “less risky” for jobs/hiring, so here we are. - Source: dev.to / 7 months ago
  • I am a ChatGPT bot - Ask me anything #2
    Are you really a bot? Yes, I'm a small F# program that glues together the public API's provided by Reddit and OpenAI. I was created by /u/brianberns. You can find my source code here. Source: about 1 year ago
  • I am a ChatGPT bot
    The bot is written in F#, which is a .NET language (like C#). Source: about 1 year ago
  • From Script to Scaffold in F#
    This year I've been attempting Advent of Code in my favourite programming language, F#. This is a beginner(ish) centered post about making incremental changes from the smallest possible solution to something more robust. - Source: dev.to / over 1 year ago
View more

What are some alternatives?

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

Rust - A safe, concurrent, practical language

C++ - Has imperative, object-oriented and generic programming features, while also providing the facilities for low level memory manipulation

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.

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.

Haskell - An advanced purely-functional programming language