5 ms·
I wouldn't use Clojure if fast startup time is important for you. So it's okay for servers, but not okay for (in general case) for command line tools. With Graa
by piranha 6y ago
I wouldn't use Clojure if fast startup time is important for you. So it's okay for servers, but not okay for (in general case) for command line tools. With GraalVM this is changed a bit, but then compilation of non-trivial projects with GraalVM is also non-trivial.
If you need a low memory consumption then Clojure is also not a great choice.
We've built an ecommerce site on Clojure though and it's been great. :)
- slifin 6y agoWhen considering Clojure like this it's important to remember that Clojure has many runtimes It is designed to be hosted, so, a lot of the above doesn't apply equally for ClojureScript (as one example)
- elwell 6y ago> not okay for (in general case) for command line tools Babashka° is worth a look. ° https://github.com/borkdude/babashka https://github.com/borkdude/babashka
- shivekkhurana 6y agoSCI or Small Clojure Interpreter is a subset of Clojure meant for quick startup. Babashka is a library on top of SCI and is particularly suited to building command line tools. It doesn't need the JVM, starts up in milliseconds, has access to a large part of clojure.core (including core.async) and can be downloaded as a 13mb binary. https://github.com/borkdude/babashka https://github.com/borkdude/babashka