by mej10 · 10y ago · 0 comments
That being said, I use Clojure for scripting tasks frequently and it isn't so bad. It just isn't as awesome as it could be.
POTENTIAL SOLUTION: I think for script startup time someone is going to have to bite the bullet and write some kind of nREPL client in a language with no startup time (Go, C, etc). Then you could just send code to be evaluated to already running environments. You could use boot.pods to isolate the Clojure runtimes. Seems straightforward-ish.
See as an example: https://github.com/georgewsinger/yaml-table
This script takes about 100 ms on my computer and about 2.25 seconds (!) to run via pure clojure on the JVM.