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

Clojure

1.3K
1.2K
+ 1
1.1K
Perl

1.8K
772
+ 1
514
Add tool

Clojure vs Perl: What are the differences?

Developers describe Clojure as "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. On the other hand, Perl is detailed as "Highly capable, feature-rich programming language with over 26 years of development". Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.

Clojure and Perl can be categorized as "Languages" tools.

"It is a lisp", "Concise syntax" and "Persistent data structures" are the key factors why developers consider Clojure; whereas "Lots of libraries", "Open source" and "Text processing" are the primary reasons why Perl is favored.

Clojure and Perl are both open source tools. Clojure with 7.85K GitHub stars and 1.25K forks on GitHub appears to be more popular than Perl with 435 GitHub stars and 152 GitHub forks.

According to the StackShare community, Perl has a broader approval, being mentioned in 133 company stacks & 64 developers stacks; compared to Clojure, which is listed in 95 company stacks and 80 developer stacks.

Decisions about Clojure and Perl

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 Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Clojure
Pros of Perl
  • 116
    It is a lisp
  • 99
    Persistent data structures
  • 98
    Concise syntax
  • 88
    jvm-based language
  • 87
    Concurrency
  • 80
    Interactive repl
  • 75
    Code is data
  • 61
    Open source
  • 58
    Lazy data structures
  • 54
    Macros
  • 47
    Functional
  • 22
    Simplistic
  • 21
    Immutable by default
  • 19
    Excellent collections
  • 18
    Fast-growing community
  • 14
    Multiple host languages
  • 14
    Simple (not easy!)
  • 13
    Practical Lisp
  • 9
    Because it's really fun to use
  • 9
    Addictive
  • 9
    Community
  • 8
    It creates Reusable code
  • 8
    Web friendly
  • 8
    Rapid development
  • 7
    Minimalist
  • 5
    Java interop
  • 5
    Programmable programming language
  • 4
    Regained interest in programming
  • 3
    Compiles to JavaScript
  • 3
    EDN
  • 2
    Share a lot of code with clojurescript/use on frontend
  • 68
    Lots of libraries
  • 62
    Open source
  • 58
    Text processing
  • 50
    Powerful
  • 45
    Unix-style
  • 44
    Regex
  • 35
    Stable
  • 28
    Concise syntax
  • 27
    Hackerish
  • 19
    Easy to use
  • 10
    Swiss army chainsaw
  • 10
    CPAN
  • 9
    Code Less Do More
  • 7
    Freedom
  • 6
    All purpose
  • 5
    Familiar
  • 4
    Readability
  • 4
    Community
  • 3
    It's the best one-off task language
  • 3
    Modular
  • 3
    Object-Oriented
  • 2
    Postmodern
  • 2
    Smart (does alot for you)
  • 2
    Good man pages
  • 2
    For a man
  • 2
    Many ways to do it
  • 1
    Auto case variables
  • 1
    Hashes
  • 1
    Multi-threaded support
  • 1
    Single Source Library (CPAN)

Sign up to add or upvote prosMake informed product decisions

Cons of Clojure
Cons of Perl
  • 9
    Cryptic stacktraces
  • 4
    Need to wrap basically every java lib
  • 3
    LISP!!!!!!!!
  • 3
    Good code heavily relies on local conventions
  • 3
    Toxic community
  • 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
    Messy $/@/% syntax
  • 3
    No exception handling
  • 2
    No OS threads
  • 2
    Bad OO support
  • 2
    "1;"
  • 1
    Copy-on-create for interpreter-based threads
  • 1
    Barewords
  • 1
    Errors/warnings are ignored by default
  • 1
    Variables are global by default

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

Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.

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

What companies use Clojure?
What companies use Perl?
See which teams inside your own company are using Clojure or Perl.
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 Perl?

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

Blog Posts

+22
17
13418
+34
29
40686
What are some alternatives to Clojure and Perl?
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