Clojureย vsย Spring

Get Advice Icon

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

Clojure
Clojure

706
528
+ 1
887
Spring
Spring

1.9K
1.5K
+ 1
939
Add tool

Clojure vs Spring: What are the differences?

What is 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.

What is Spring? Provides a comprehensive programming and configuration model for modern Java-based enterprise applications. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

Clojure belongs to "Languages" category of the tech stack, while Spring can be primarily classified under "Frameworks (Full Stack)".

"It is a lisp", "Concise syntax" and "Persistent data structures" are the key factors why developers consider Clojure; whereas "Java", "Open source" and "Great community" are the primary reasons why Spring is favored.

Clojure and Spring are both open source tools. It seems that Spring with 30.6K GitHub stars and 19.6K forks on GitHub has more adoption than Clojure with 7.85K GitHub stars and 1.25K GitHub forks.

MIT, Zillow, and Intuit are some of the popular companies that use Spring, whereas Clojure is used by Nubank, CircleCI, and Groupon. Spring has a broader approval, being mentioned in 319 company stacks & 184 developers stacks; compared to Clojure, which is listed in 95 company stacks and 80 developer stacks.

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

A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.
Get Advice Icon

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

Why do developers choose Clojure?
Why do developers choose Spring?

Sign up to add, upvote and see more prosMake informed product decisions

What companies use Clojure?
What companies use Spring?

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

What tools integrate with Clojure?
What tools integrate with Spring?

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

What are some alternatives to Clojure and Spring?
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
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
Decisions about Clojure and Spring
Jake Stein
Jake Stein
CEO at Stitch ยท | 13 upvotes ยท 84.8K views
atStitchStitch
Go
Go
Clojure
Clojure
JavaScript
JavaScript
Python
Python
Kubernetes
Kubernetes
AWS OpsWorks
AWS OpsWorks
Amazon EC2
Amazon EC2
Amazon Redshift
Amazon Redshift
Amazon S3
Amazon S3
Amazon RDS
Amazon RDS

Stitch is run entirely on AWS. All of our transactional databases are run with Amazon RDS, and we rely on Amazon S3 for data persistence in various stages of our pipeline. Our product integrates with Amazon Redshift as a data destination, and we also use Redshift as an internal data warehouse (powered by Stitch, of course).

The majority of our services run on stateless Amazon EC2 instances that are managed by AWS OpsWorks. We recently introduced Kubernetes into our infrastructure to run the scheduled jobs that execute Singer code to extract data from various sources. Although we tend to be wary of shiny new toys, Kubernetes has proven to be a good fit for this problem, and its stability, strong community and helpful tooling have made it easy for us to incorporate into our operations.

While we continue to be happy with Clojure for our internal services, we felt that its relatively narrow adoption could impede Singer's growth. We chose Python both because it is well suited to the task, and it seems to have reached critical mass among data engineers. All that being said, the Singer spec is language agnostic, and integrations and libraries have been developed in JavaScript, Go, and Clojure.

See more
C#
C#
Java
Java
JavaScript
JavaScript
ClojureScript
ClojureScript
Clojure
Clojure

I adopted Clojure and ClojureScript because:

  • it's 1 language, multiple platforms.
  • Simple syntax.
  • Designed to avoid unwanted side effects and bugs.
  • Immutable data-structures.
  • Compact code, very expressive.
  • Source code is data.
  • It has super-flexible macro.
  • Has metadata.
  • Interoperability with JavaScript, Java and C#.
See more
Interest over time
Reviews of Clojure and Spring
No reviews found
How developers use Clojure and Spring
Avatar of Brandon Adams
Brandon Adams uses ClojureClojure

Cloure is a high level language that provides access to both the JVM (for server-side development) and javascript (for client-side development) with largely the same language. This is important to limit context switching and enable code-reuse during fast product cycles. Clojure is ideal for rapid prototyping and has a strong focus on stability, correctness, and concurrency. Tools like Schema and Spec enable well-structured development and high code confidence.

Avatar of Brian Fults
Brian Fults uses ClojureClojure

To complement Java. The REPL lets me interactively exercise Java code. I can write performant and safe libraries in Java, and then use them in Clojure. I also find the data-centric aspect of Clojure (excellent build-in structures, literal syntax for easily creating those structures, functions that act well on abstractions of those structures) good for data processing.

This fits a sweet spot between Ruby and Java.

Avatar of datapile
datapile uses SpringSpring

Spring is another gift rained down by the gods of Open Source Software (a.k.a. Pivotal Labs in this particular case) that just makes sense on all levels.

From Spring Boot, to SpringMVC, the configuration architecture & profile paradigm, Spring Cloud expandability, to the ease with which one can deploy Spring applets as microservices within Docker is an absolute joy.

Avatar of BandSquare
BandSquare uses ClojureClojure

We use Clojure mostly for its "Minority Report"-like interactive development in situations that require 'semi-automatic programming' (data inspection, admin tasks, API exploration, scrapers, etc.). We have also used Clojure successfully to build some components of our stack very quickly and reliably, in the backend and the frontend.

Avatar of papaver
papaver uses ClojureClojure

just started learning clojure, maybe around two weeks or so. i'm addicted. this is what i want to be working with and learning for the foreseeable future. the elegance of the language is refreshing. the community is really amazing. i've finally found a language that fits my passion for programming.

Avatar of CloudRepo
CloudRepo uses ClojureClojure

Clojure simplifies and reduces the coding efforts involved in creating CloudRepo. The fact that it runs in the JVM gives us access to all the libraries that we could ever need. Our code base is much smaller and easier to reason about than it would have been had we gone with pure Java.

Avatar of Giovanni Candido da Silva
Giovanni Candido da Silva uses SpringSpring

The core of the application use Spring Stack, to provide services and structure like:

  • Persistence
  • REST
  • Email
  • Security
  • Self contained application with spring boot
  • And many others.
Avatar of Kang Hyeon Ku
Kang Hyeon Ku uses SpringSpring

๊ทธ๋ƒฅ ๊ฐ„๋‹จํ•œ MVC ์›น ํ”„๋ ˆ์ž„ ์›Œํฌ ์ธ์ค„ ์•Œ์•˜๋Š”๋ฐ ์ •๋ง ๋ชจ๋“ˆํ™”๊ฐ€ ์ž˜ ๋˜์žˆ๊ณ , ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด ๊ฐœ๋ฐœ์ž์—๊ฒŒ ์ •๋ง ํŽธ๋ฆฌํ•˜๊ฒŒ ๋งŒ๋“ค์–ด ๋†“์•˜๋‹ค. vaildation ๋ถ€๋ถ„์€ ๋”ฐ๋กœ ์ฒ˜๋ฆฌ ํ•  ์ˆ˜ ์žˆ๊ณ , ํŒŒ๋ผ๋ฏธํ„ฐ ๋‹ด๋Š” ๋ณ€์ˆ˜์™€ ๋””ํดํŠธ ๊ฐ’์„ ์ธ์ž๋กœ ์„ค์ •ํ•ด ์ฃผ๋Š” ๋ถ€๋ถ„๋„ ์ฐธ ์ข‹์€ ๊ฒƒ ๊ฐ™๋‹ค. ๋˜ spring-data ๋Š” jpa ํ™œ์šฉํ•ด ๋น ๋ฅด๊ฒŒ ๊ฐœ๋ฐœํ•˜๋Š”๋ฐ ์œ ์šฉํ•˜๋‹ค.

Avatar of ByeongGi
ByeongGi uses SpringSpring
  • SpringFramework ์ค‘ MVC , AOP ๋“ฑ์˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์›น ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ํ”„๋กœ์ ํŠธ ๊ตฌ์„ฑ
  • ๊ณตํ†ต ๋กœ์ง ๊ตฌํ˜„ ๋ฐ ๋ณด์•ˆ ์ฒ˜๋ฆฌ ๊ฐ€๋Šฅ

  • Spring5์—์„œ ์ง€์›ํ•˜๋Š” ํ•จ์ˆ˜ํ˜• ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ฒฝํ—˜ ์žˆ์Œ

Avatar of Ralic Lo
Ralic Lo uses SpringSpring

Used Spring Boot and its ORM to interacting with database server for web application development.

How much does Clojure cost?
How much does Spring cost?
Pricing unavailable
Pricing unavailable