Need advice about which tool to choose?Ask the StackShare community!

Clojure

1.4K
1.2K
+ 1
1.1K
OCaml

158
126
+ 1
21
Add tool

Clojure vs OCaml: What are the differences?

Clojure: A dynamic programming language that targets the Java Virtual Machine. Clojure is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system; OCaml: A general purpose industrial-strength programming language. It is an industrial strength programming language supporting functional, imperative and object-oriented styles. It is the technology of choice in companies where a single mistake can cost millions and speed matters, .

Clojure and OCaml can be primarily classified as "Languages" tools.

Clojure is an open source tool with 7.89K GitHub stars and 1.25K GitHub forks. Here's a link to Clojure's open source repository on GitHub.

Groupon, CircleCI, and Zalando are some of the popular companies that use Clojure, whereas OCaml is used by Hammer Lab, NG Informática, and Maersk Digital. Clojure has a broader approval, being mentioned in 116 company stacks & 422 developers stacks; compared to OCaml, which is listed in 6 company stacks and 6 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Clojure
Pros of OCaml
  • 118
    It is a lisp
  • 101
    Persistent data structures
  • 100
    Concise syntax
  • 89
    jvm-based language
  • 88
    Concurrency
  • 82
    Interactive repl
  • 76
    Code is data
  • 61
    Open source
  • 60
    Lazy data structures
  • 55
    Macros
  • 48
    Functional
  • 22
    Simplistic
  • 21
    Immutable by default
  • 19
    Excellent collections
  • 18
    Fast-growing community
  • 14
    Simple (not easy!)
  • 14
    Multiple host languages
  • 14
    Practical Lisp
  • 9
    Because it's really fun to use
  • 9
    Community
  • 9
    Addictive
  • 8
    It creates Reusable code
  • 8
    Web friendly
  • 8
    Rapid development
  • 7
    Minimalist
  • 5
    Programmable programming language
  • 5
    Java interop
  • 4
    Regained interest in programming
  • 3
    EDN
  • 3
    Compiles to JavaScript
  • 2
    Share a lot of code with clojurescript/use on frontend
  • 5
    Satisfying to write
  • 4
    Pattern matching
  • 3
    Also has OOP
  • 3
    Easy syntax
  • 3
    Very practical
  • 3
    Extremely powerful type inference

Sign up to add or upvote prosMake informed product decisions

Cons of Clojure
Cons of OCaml
  • 9
    Cryptic stacktraces
  • 4
    Need to wrap basically every java lib
  • 4
    Toxic community
  • 3
    LISP!!!!!!!!
  • 3
    Good code heavily relies on local conventions
  • 2
    Slow application startup
  • 2
    Tonns of abandonware
  • 1
    Usable only with REPL
  • 1
    Hiring issues
  • 1
    Bad documented libs
  • 1
    Macros are overused by devs
  • 1
    Tricky profiling
  • 1
    IDE with high learning curve
  • 1
    Configuration bolierplate
  • 1
    Conservative community
  • 0
    Have no good and fast fmt
  • 3
    Small community
  • 1
    Royal pain in the neck to compile large programs

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Clojure?

Clojure is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system.

What is OCaml?

It is an industrial strength programming language supporting functional, imperative and object-oriented styles. It is the technology of choice in companies where a single mistake can cost millions and speed matters,

Need advice about which tool to choose?Ask the StackShare community!

What companies use Clojure?
What companies use OCaml?
See which teams inside your own company are using Clojure or OCaml.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Clojure?
What tools integrate with OCaml?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

GitHubPythonGit+22
17
13697
GitHubGitDocker+34
29
41450
What are some alternatives to Clojure and OCaml?
Scala
Scala is an acronym for “Scalable Language”. This means that Scala grows with you. You can play with it by typing one-line expressions and observing the results. But you can also rely on it for large mission critical systems, as many companies, including Twitter, LinkedIn, or Intel do. To some, Scala feels like a scripting language. Its syntax is concise and low ceremony; its types get out of the way because the compiler can infer them.
Haskell
It is a general purpose language that can be used in any domain and use case, it is ideally suited for proprietary business logic and data analysis, fast prototyping and enhancing existing software environments with correct code, performance and scalability.
Common Lisp
Lisp was originally created as a practical mathematical notation for computer programs, influenced by the notation of Alonzo Church's lambda calculus. It quickly became the favored programming language for artificial intelligence (AI) research. As one of the earliest programming languages, Lisp pioneered many ideas in computer science, including tree data structures, automatic storage management, dynamic typing, conditionals, higher-order functions, recursion, and the self-hosting compiler. [source: wikipedia]
Elixir
Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development and the embedded software domain.
Julia
Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. It provides a sophisticated compiler, distributed parallel execution, numerical accuracy, and an extensive mathematical function library.
See all alternatives