Could somebody write this in Clojure? I'm too noob to do it myself. Will it be an order of magnitude slower?
You mean before the JVM has started up. One could compile Clojure with GraalVM to eliminate startup time.
I could start and run Java programs way faster than just starting the Clojure REPL.