Software Alternatives, Accelerators & Startups

Clojure VS Jsonnet

Compare Clojure VS Jsonnet and see what are their differences

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.

Jsonnet logo Jsonnet

A powerful DSL for elegant description of JSON data.
  • Clojure Landing page
    Landing page //
    2023-09-19

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

  • Jsonnet Landing page
    Landing page //
    2023-05-26

Clojure videos

What is the business value of Clojure?

More videos:

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

Jsonnet videos

Jsonnet

More videos:

  • Review - Using Jsonnet to Package Together Dashboards, Alerts and Exporters - Tom Wilkie
  • Review - Webinar: Writing Less YAML – Using jsonnet and kubecfg to Manage Kubernetes Resources

Category Popularity

0-100% (relative to Clojure and Jsonnet)
Programming Language
100 100%
0% 0
Configuration Management
0 0%
100% 100
OOP
100 100%
0% 0
Mobile Apps
0 0%
100% 100

User comments

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

Social recommendations and mentions

Clojure might be a bit more popular than Jsonnet. We know about 37 links to it since March 2021 and only 32 links to Jsonnet. 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.

Clojure mentions (37)

  • Moving your bugs forward in time
    ‍For the rest of this post I’ll list off some more tactical examples of things that you can do towards this goal. Savvy readers will note that these are not novel ideas of my own, and in fact a lot of the things on this list are popular core features in modern languages such as Kotlin, Rust, and Clojure. Kotlin, in particular, has done an amazing job of emphasizing these best practices while still being an... - Source: dev.to / 15 days ago
  • Let's write a simple microservice in Clojure
    This article will explain how to write a simple service in Clojure. The sweet spot of making applications in Clojure is that you can expressively use an entire rich Java ecosystem. Less code, less boilerplate: it is possible to achieve more with less. In this example, I use most of the libraries from the Java world; everything else is a thin Clojure wrapper around Java libraries. - Source: dev.to / 27 days ago
  • A new F# compiler feature: graph-based type-checking
    I have a tangential question that is related to this cool new feature. Warning: the question I ask comes from a part of my brain that is currently melted due to heavy thinking. Context: I write a fair amount of Clojure, and in Lisps the code itself is a tree. Just like this F# parallel graph type-checker. In Lisps, one would use Macros to perform compile-time computation to accomplish something like this, I think.... - Source: Hacker News / 7 months ago
  • Ask HN: Why does the Clojure ecosystem feel like such a wasteland?
    As an analogy - my face hasn't changed all that much in a past few years, and I haven't changed my profile picture in those few years. Does it really mean that I'm unmaintained/dead? > Where can I find latest documentation [...]? The answer is still https://clojure.org/. And https://clojuredocs.org/ but it's community-maintained so might occasionally be missing some things right after they're released. E.g. As of... - Source: Hacker News / 9 months ago
  • Best implementation of CL for learning purposes
    As a Java/Scala user you should check out Clojure! It is highly recommended (https://clojure.org). Source: about 1 year ago
View more

Jsonnet mentions (32)

  • A Reasonable Configuration Language
    Jsonnet[1] and kapitan[2] are the tools I currently use. Their learning curve is not optimal (and I tried to contribute to smoothen it with a jsonnet course[3] and a 'get started wit kapitan' blog post[4]), but once used to it it's hard to do without, and their combination makes them even more useful (esp. If you deploy K8s). In Ruud's case, Jsonnet might have been worth looking at as Hashicorp tools can be... - Source: Hacker News / 4 months ago
  • Pkl, a Programming Language for Configuration
    Kubernetes config is a decent example. I had ChatGPT generate a representative silly example -- the content doesn't matter so much as the structure: https://gist.github.com/cstrahan/528b00cd5c3a22e3d8f057bb1a75ea61 Now consider 100s (if not 1000s) of such files. I haven't given Pkl an in depth look yet, but I can say that the Industry Standard™ of "simple YAML" + string substitution (with delicate, error prone... - Source: Hacker News / 4 months ago
  • What Is Wrong with TOML?
    Maybe you'd like jsonnet: https://jsonnet.org/ I find it particularly useful for configurations that often have repeated boilerplate, like ansible playbooks or deploying a bunch of "similar-but" services to kubernetes (with https://tanka.dev). Dhall is also quite interesting, with some tradeoffs: https://dhall-lang.org/ A few years ago I did a small comparison by re-implementing one of my simpler ansible... - Source: Hacker News / 8 months ago
  • That people produce HTML with string templates is telling us something
    Apologies for the lack of context, and for missing this comment until today. Both are tools for defining kubernetes manifests (which are YAML) in a reusable manner. Jsonnet is a formally specified extension of JSON. It’s essentially a functional programming language (w/some object oriented features) that generates config files in JSON/YAML/etc, so it’s straightforward to determine whether an input file is valid,... - Source: Hacker News / 12 months ago
  • TOML: Tom's Obvious Minimal Language
    I like Google's Jsonnet [1], which has all of this except for 4. Jsonnet is quite mature, with fairly wide language adoption, and has the benefit of supporting expressions, including conditionals, arithmetic, as well as being able to define reusable blocks inside function definitions or external files. It's not suitable as a serialization format, but great for config. It's popular in some circles, but I'm sad that... - Source: Hacker News / about 1 year ago
View more

What are some alternatives?

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

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

Dhall Configuration Language - A non-repetitive alternative to YAML

Rust - A safe, concurrent, practical language

YAML - YAML 1.2 --- YAML: YAML Ain't Markup Language

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

TOML - TOML - Tom's Obvious, Minimal Language