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

Clojure

1.9K
1.4K
+ 1
1.1K
Crystal

335
351
+ 1
286
Add tool

Clojure vs Crystal: 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; Crystal: Fast as C, slick as Ruby. Crystal is a programming language that resembles Ruby but compiles to native code and tries to be much more efficient, at the cost of disallowing certain dynamic aspects of Ruby.

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

"It is a lisp" is the primary reason why developers consider Clojure over the competitors, whereas "Compiles to efficient native code" was stated as the key factor in picking Crystal.

Clojure and Crystal are both open source tools. Crystal with 13.5K GitHub stars and 1.05K forks on GitHub appears to be more popular than Clojure with 7.85K GitHub stars and 1.25K GitHub forks.

CircleCI, Groupon, and Soundcloud are some of the popular companies that use Clojure, whereas Crystal is used by Bitupper, Diploid, and mose. Clojure has a broader approval, being mentioned in 95 company stacks & 80 developers stacks; compared to Crystal, which is listed in 7 company stacks and 14 developer stacks.

Decisions about Clojure and Crystal

We’re a new startup so we need to be able to deliver quick changes as we find our product market fit. We’ve also got to ensure that we’re moving money safely, and keeping perfect records. The technologies we’ve chosen mix mature but well maintained frameworks like Django, with modern web-first and api-first front ends like GraphQL, NextJS, and Chakra. We use a little Golang sparingly in our backend to ensure that when we interact with financial services, we do so with statically compiled, strongly typed, and strictly limited and reviewed code.

You can read all about it in our linked blog post.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Clojure
Pros of Crystal
  • 117
    It is a lisp
  • 100
    Persistent data structures
  • 100
    Concise syntax
  • 90
    jvm-based language
  • 89
    Concurrency
  • 81
    Interactive repl
  • 76
    Code is data
  • 61
    Open source
  • 61
    Lazy data structures
  • 57
    Macros
  • 49
    Functional
  • 23
    Simplistic
  • 22
    Immutable by default
  • 20
    Excellent collections
  • 19
    Fast-growing community
  • 15
    Multiple host languages
  • 15
    Simple (not easy!)
  • 15
    Practical Lisp
  • 10
    Because it's really fun to use
  • 10
    Addictive
  • 9
    Community
  • 9
    Web friendly
  • 9
    Rapid development
  • 9
    It creates Reusable code
  • 8
    Minimalist
  • 6
    Programmable programming language
  • 6
    Java interop
  • 5
    Regained interest in programming
  • 4
    Compiles to JavaScript
  • 3
    Share a lot of code with clojurescript/use on frontend
  • 3
    EDN
  • 1
    Clojurescript
  • 38
    Compiles to efficient native code
  • 36
    Ruby inspired syntax
  • 32
    Performance oriented - C-like speeds
  • 23
    Gem-like packages, called Shards
  • 20
    Can call C code using Crystal bindings
  • 18
    Super Fast
  • 18
    Typed Ruby <3
  • 17
    Open Source
  • 14
    Minimal Runtime
  • 11
    Cute
  • 9
    Clean code
  • 9
    Concurrent
  • 9
    Productive
  • 4
    Great community
  • 2
    Feels like duck types, safe like static types
  • 2
    Null Safety
  • 2
    Type inference
  • 2
    Program compiled into a single binary
  • 2
    Powerful
  • 2
    Meta-Programming (via Macros)
  • 2
    Simplicity
  • 1
    Has builtin LLVM support library
  • 1
    Statically linked binaries that are simple to deploy
  • 1
    Fun to write
  • 1
    High-performance
  • 1
    Simple, minimal syntax
  • 1
    Compile time statically safe macros
  • 1
    Concise
  • 1
    Statically Safe Monkey Patching
  • 1
    Fibers
  • 1
    Spawn
  • 1
    Meta-programming
  • 1
    Cross-platform
  • 1
    Productivity
  • 1
    Elegant

Sign up to add or upvote prosMake informed product decisions

Cons of Clojure
Cons of Crystal
  • 11
    Cryptic stacktraces
  • 5
    Need to wrap basically every java lib
  • 4
    Toxic community
  • 3
    Good code heavily relies on local conventions
  • 3
    Tonns of abandonware
  • 3
    Slow application startup
  • 1
    Usable only with REPL
  • 1
    Hiring issues
  • 1
    It's a lisp
  • 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
  • 13
    Small community
  • 3
    No windows support
  • 1
    No Oracle lib

Sign up to add or upvote consMake informed product decisions

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 Crystal?

Crystal is a programming language that resembles Ruby but compiles to native code and tries to be much more efficient, at the cost of disallowing certain dynamic aspects of Ruby.

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

What companies use Clojure?
What companies use Crystal?
See which teams inside your own company are using Clojure or Crystal.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with Clojure?
What tools integrate with Crystal?

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

Blog Posts

GitHubGitPython+22
17
14208
GitHubGitDocker+34
29
42436
What are some alternatives to Clojure and Crystal?
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