3 ms·
> Clojure doesn't need JVM. You can run it with GraalVM... Hm. https://en.wikipedia.org/wiki/GraalVM https://en.wikipedia.org/wiki/GraalVM "GraalVM is a Java
by avmich 5y ago
> Clojure doesn't need JVM. You can run it with GraalVM...
Hm.
https://en.wikipedia.org/wiki/GraalVM https://en.wikipedia.org/wiki/GraalVM
"GraalVM is a Java VM and JDK based on HotSpot/OpenJDK, implemented in Java..."
https://en.wikipedia.org/wiki/Clojure https://en.wikipedia.org/wiki/Clojure
"Other implementations of Clojure on different platforms include:
- Babashka,[82] Native Clojure scripting language leveraging GraalVM native image and Small Clojure Interpreter.."
I guess you mean that some particular implementation of JVM isn't needed. But in general Clojure has "j" in its name, it wouldn't make sense without JVM at all.
- LesZedCB 5y agowell, there's also ClojureScript and recently, ClojureDart - neither dependent on the JVM
- fuzzythinker 5y ago"a Java VM" =/= the JVM most people's understanding of the word.
- didibus 5y agoNo, you don't need GraalVM either, it is only built with GraalVM, but it is usable as a single static native binary with no other dependencies. Think how say CPython needs GCC to build itself, but to use Python as a user you don't need GCC, only the compiled CPython interpreter. This is the same for Babashka Clojure, you only need GraalVM to build it, but as a user you only need the compiled Babashka interpreter. There's also Self-hosted Clojurescript which only needs a JS VM. And there is Clojure CLR which only needs a CLR VM. And you've got Clojerl that only needs BeamVM. But Babashka is probably the one you'd want to try, since it is dependency free, just download the binary and put it on your PATH.