OCaml Alternatives

Apps similar to OCaml include Rust, which is free and open source. Other options are C (programming language), C++, Haskell and V (programming language). You're spoiled for choice with Programming Languages like OCaml: we list more than 25 alternatives for Linux, Mac, Windows, the web and self-hosting.

Copy a direct link to this comment to your clipboard
Alternatives
OCaml alternatives page was last updated

Alternatives list

  1. F* icon
     3 likes

    F* is an ML-like functional programming language aimed at program verification. F* can express precise specifications for programs, including functional correctness properties. Programs written in F* can be translated to OCaml or F# for execution.

    Cost / License

    • Free
    • Open Source

    Application type

    Since

    • Since 2015

    Platforms

    • Windows
    • Mac
    • Linux
    • Online
    Good alternative?
     
  2. Hare is a systems programming language designed to be simple, stable, and robust. Hare uses a static type system, manual memory management, and a minimal runtime. It is well-suited to writing operating systems, system tools, compilers, networking software, and other low-level...

    Cost / License

    Application type

    Since

    • Since 2024

    Platforms

    • Mac
    • Linux
    • BSD
    Good alternative?
     
  3. J icon
     1 like

    J is a high-level, general-purpose programming language that is particularly suited to the mathematical, statistical, and logical analysis of data. It is a powerful tool for developing algorithms and exploring problems that are not already well understood.

    Cost / License

    • Free
    • Open Source

    Application type

    Since

    • Since 2023 (updated Dec 2026)

    GitHub

    • GitHub stars: 748

    Platforms

    • Windows
    • Mac
    • Linux
    • Online
    • Android
    • iPhone
    • Raspberry Pi
    • Web Browser
    Good alternative?
     
  4. Odin icon
     4 likes

    The Odin programming language is fast, concise, readable, pragmatic and open sourced. It is designed with the intent of replacing C with the following goals:

    Cost / License

    • Free
    • Open Source (Zlib)

    Application type

    Since

    • Since 2019 (updated Nov 2026)

    GitHub

    • GitHub stars: 12.4k

    Platforms

    • Windows
    • Mac
    • Linux
    • BSD
    Good alternative?
     
  5. ReasonML icon
     2 likes

    ReasonML is a new face to OCaml that--when coupled with BuckleScript--makes web development easy, robust, and type-safe. It has a very good Javascript FFI story, and is easy to adopt piece-meal into your existing projects.

    Cost / License

    • Free
    • Open Source (MIT)

    Application type

    Since

    • Since 2018 (updated Nov 2026)

    GitHub

    • GitHub stars: 10.3k

    Platforms

    • Windows
    • Mac
    • Linux
    Good alternative?
     
  6.  1 like

    The Poly/ML implementation of Standard ML – full multiprocessor support in the thread library and garbage collector, interactive debugger, fast compiler.

    Cost / License

    • Free
    • Open Source

    Since

    • Since 2018

    Platforms

    • Windows
    • Mac
    • Linux
    Good alternative?
     
  7. A community fork of a language named after a plant fungus. All of the memory-safe features you love, now with 100% less bureaucracy.

    Cost / License

    • Free
    • Open Source

    Application type

    Since

    • Since 2023 (updated Aug 2024)

    Alerts

    • Discontinued

    GitHub

    • GitHub stars: 5.1k

    Platforms

    • Self-Hosted
    Good alternative?
     
  8. PureScript was initially designed by Phil Freeman in 2013. He started to work on PureScript since he wasn't satisfied by other attempts to transpile Haskell to JavaScript (e.g. using Fay, Haste, or GHCJS).

    Cost / License

    • Free
    • Open Source

    Application type

    Since

    • Since 2023 (updated Jun 2025)

    GitHub

    • GitHub stars: 8.8k

    Platforms

    • Windows
    • Mac
    • Linux
    • BSD
    • FreeBSD
    • OpenBSD
    • Online
    • NetBSD
    Good alternative?
     
  9. Where jank differs from Clojure JVM is that its host is C++ on top of an LLVM-based JIT. This allows jank to offer the same benefits of REPL-based development while being able to seamlessly reach into the native world and compete seriously with JVM's performance.

    Cost / License

    Since

    • Since 2026 (updated Jan 2026)

    GitHub

    • GitHub stars: 4

    Platforms

    • Mac
    • Linux
    Good alternative?
     
  10. SML/NJ icon
     Like

    Standard ML of New Jersey (abbreviated SML/NJ) is a compiler for the Standard ML '97 programming language with associated libraries, tools, and documentation.

    Cost / License

    • Free
    • Open Source

    Since

    • Since 2018

    Platforms

    • Windows
    • Mac
    • Linux
    Good alternative?
     
  11. Rux is a fast, compiled, strongly typed, multi-paradigm programming language.

    Cost / License

    • Free
    • Open Source (MIT)

    Application type

    Since

    • Since 2026 (updated Sep 2026)

    GitHub

    • GitHub stars: 501

    Platforms

    • Windows
    • Mac
    • Linux
    • BSD
    Good alternative?
     
  12.  Like

    Q# (pronounced as Q sharp) is a domain-specific programming language used for expressing quantum algorithms. It was initially released to the public by Microsoft as part of the Quantum Development Kit.

    Cost / License

    • Free
    • Open Source (MIT)

    Application type

    Since

    • Since 2023 (archived)

    GitHub

    • GitHub stars: 249

    Platforms

    • Windows
    • Mac
    • Linux
    • BSD
    Good alternative?
     
You are at page 3 of OCaml alternatives