Software Alternatives, Accelerators & Startups

J VS Clojure

Compare J VS Clojure and see what are their differences

J logo J

array language with functional core

Clojure logo Clojure

Clojure is a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming.
Not present
  • Clojure Landing page
    Landing page //
    2023-09-19

We recommend LibHunt Clojure for discovery and comparisons of trending Clojure projects.

J features and specs

  • Conciseness
    J is known for its extremely concise code, allowing complex operations to be expressed in just a few characters. This can lead to significant reductions in code size and faster prototyping.
  • Array Programming
    J is an array programming language, which makes it exceptionally powerful for mathematical and statistical operations. It allows operations to be performed on entire arrays without the need for explicit loops.
  • Interactive Environment
    The J programming language features an interactive environment that facilitates experimentation and exploration of data and functions, making it suitable for data analysis and educational purposes.
  • Cross-Platform
    J is designed to be cross-platform, with implementations available for various operating systems, which enhances its accessibility and usability across different platforms.
  • Extensive Libraries
    J comes with extensive standard libraries that support a wide range of functionalities, including graphics, UI, and other utilities, enhancing its capabilities.

Possible disadvantages of J

  • Steep Learning Curve
    The syntax of J is quite different from more conventional programming languages, which can make it difficult for new users to learn and adopt.
  • Niche Language
    J is not as widely used as other programming languages, which means that there is a smaller community and fewer resources or libraries compared to more mainstream languages.
  • Readability Challenges
    While J's conciseness is an advantage, it can also lead to code that is difficult to read and understand, especially for those who are not familiar with the language.
  • Limited Industry Adoption
    J has limited adoption in the industry, which may result in fewer job opportunities for developers skilled in the language compared to other mainstream programming languages.
  • Performance Considerations
    While J is efficient for array-based operations, it may not perform as well as lower-level languages in scenarios that require intensive computation and optimization.

Clojure features and specs

  • Functional Programming Paradigm
    Clojure emphasizes immutability and first-class functions, which can lead to more predictable and maintainable code.
  • Interoperability with Java
    Clojure runs on the JVM, allowing seamless integration with the vast ecosystem of Java libraries and tools.
  • REPL Driven Development
    Clojure's Read-Eval-Print Loop (REPL) allows for interactive programming, making it easier to test and debug code in real time.
  • Concise Syntax
    Clojure's syntax is minimalistic and expressive, which can lead to more concise and readable code.
  • Concurrency Support
    Clojure provides strong support for concurrent programming with features like Software Transactional Memory (STM) and immutable data structures.

Possible disadvantages of Clojure

  • Steep Learning Curve
    The functional programming paradigm and Lisp-like syntax can be challenging for newcomers, particularly those from imperative programming backgrounds.
  • Performance Overhead
    Clojure's emphasis on immutability can introduce performance overhead compared to languages that use mutable data structures.
  • Limited Tooling
    While improving, the ecosystem for Clojure is not as mature as for some other mainstream languages, which can pose challenges in finding robust development and debugging tools.
  • Less Mainstream
    Clojure is not as commonly used as languages like Python or Java, which can make it harder to find experienced developers or community support.
  • Verbose Error Messages
    Error messages in Clojure can sometimes be verbose and difficult to understand, which can complicate the debugging process.

Analysis of J

Overall verdict

  • J is a powerful, high-performance array programming language descended from APL, well-suited for those who value extreme conciseness, mathematical elegance, and speed in numerical and data-processing tasks, though its terse syntax presents a steep learning curve.

Why this product is good

  • Extremely concise syntax that allows complex operations to be expressed in very few characters
  • Array-oriented design makes it exceptionally efficient for vectorized and mathematical computations
  • Free and open-source with active community support and documentation
  • Fast execution due to its low-level, optimized interpreter
  • Rich built-in library for statistics, linear algebra, and data manipulation
  • Cross-platform availability (Windows, macOS, Linux)
  • Encourages a unique problem-solving mindset that can improve algorithmic thinking

Recommended for

  • Mathematicians and statisticians needing rapid prototyping of numerical algorithms
  • Data scientists working with large array or matrix computations
  • Enthusiasts of APL-family languages looking for a modern, refined alternative
  • Computer science educators teaching array programming concepts
  • Competitive programmers who enjoy concise code golf-style solutions
  • Researchers requiring high-performance computation without heavy language overhead

Analysis of Clojure

Overall verdict

  • Clojure is generally considered a good programming language, particularly for certain types of development projects.

Why this product is good

  • Clojure is a modern, functional programming language that runs on the Java Virtual Machine (JVM). It is known for its simplicity, expressiveness, and powerful abstractions which can enhance developer productivity. Clojure also emphasizes immutability and offers excellent support for concurrent programming, making it suitable for building robust and scalable applications.

Recommended for

  • Developers looking for a functional language that runs on the JVM.
  • Projects that require scalable and concurrent applications.
  • Those interested in data manipulation and transformation, given Clojure's strong sequence and collection processing capabilities.
  • Developers who appreciate Lisp-like syntax and homoiconicity.

J videos

NOT a typical J. Crew review | ft. fabric, sewing and try-ons!

Clojure videos

What is the business value of Clojure?

More videos:

  • Review - Blog in Clojure Code Review
  • Review - Clojure Web App Code Review

Category Popularity

0-100% (relative to J and Clojure)
Programming Language
4 4%
96% 96
OOP
6 6%
94% 94
Generic Programming Language
JVM Programming Language
100 100%
0% 0

User comments

Share your experience with using J and Clojure. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Clojure should be more popular than J. It has been mentiond 43 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

J mentions (5)

  • Thinking in an Array Language
    This is based on K. Another array language is J http://jsoftware.com In J this would be:
       dot =: +/ . *.
    - Source: Hacker News / over 2 years ago
  • How do you Programm with esoteric languages?
    Does J count a "esoteric"? If so, I do directly write J code, interactively. It's often a sort of exploration, a dialogue with the interpreter. J's conciseness makes that quite pleasant. Source: over 2 years ago
  • I Completed All 8 Advents of Code in One Go: Here Are the Lessons I Learned.
    Sure. Advent_of_Code (AoC) is a computer programming competition thatโ€™s been running since 2015. Problems are released daily from 1 December for 24 days. Thatโ€™s the Advent thing. Each registrant gets their own data and has to write a program that produces a matching solution unique to their data usually a single number. You get a star if you get the correct answer. There is a ranking based on how long from release... Source: over 3 years ago
  • Solving Wordle with APL
    I started learning APL in 1974 and J about twenty years later. I think youโ€™ll find J (https://jsoftware.com) will be easy to pickup. You have the APL idioms down pat. I have to relearn them as I donโ€™t use either much these days. Source: over 4 years ago
  • Array programming language(s) for 3d-graphics?
    I like J, from jsoftware.com. They came up with a genius way of representing all primitives with ascii characters combined with periods or colons (a couple of exceptions). If you download and install, go to the demos and labs to see 3D graphic implementations and all sorts of other examples of capabilities. Source: almost 5 years ago

Clojure mentions (43)

  • Quoting Difficulties
    In my last post I discussed DSLs for database querying in Clojure. These typically take the form of data structures. - Source: dev.to / 9 days ago
  • Ease Comes After
    One of the most famous talks in computer science is Simple Made Easy by Rich Hickey, The creator of the programming language Clojure. In it, he explains that, "simple" and "easy" are not the same thing. He refers to the word origins of the two words:. - Source: dev.to / about 2 months ago
  • Synchronous Functions in Dart
    This series of post will try to explain a complex topic: concurrent and parallel programming, in Dart. I think the only way to deal with that is using the Erlang VM (BEAM), but Clojure and other functional languages are usually doing better job on this part. Unfortunately, to me, most of other languages using OOP don't offer a great abstraction to concurrency and parallelism, but during the last decade, things are... - Source: dev.to / 3 months ago
  • Which Lisp? Beginner
    Oversimplifying, there are three big variants: Common Lisp, Scheme, Clojure. Each of them has a lot of somewhat similar implementations: * Clojure: A lot of support for immutable data. It runs in the JVM so you will have a lot of the libraries you are use to. Probably the best option for you. https://clojure.org/ * Scheme, in particular Racket: Mostly functional, and in particular Racket has a lot of support to... - Source: Hacker News / about 1 year ago
  • Create a Server Driven CLI from your REST API
    Another project of mine Bob can be seen as an example of spec-first design. All its tooling follow that idea and its CLI inspired Climate. A lot of Bob uses Clojure a language that I cherish and who's ideas make me think better in every other place too. - Source: dev.to / over 1 year ago
View more

What are some alternatives?

When comparing J and Clojure, you can also consider the following products

Python - Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java.

Elixir - Dynamic, functional language designed for building scalable and maintainable applications

Haskell - An advanced purely-functional programming language

NIM - GB64.COM is the home of The Gamebase Collection of C64 games.

Rust - A safe, concurrent, practical language

Julia - Julia is a sophisticated programming language designed especially for numerical computing with specializations in analysis and computational science. It is also efficient for web use, general programming, and can be used as a specification language.