4 ms·
Probably not enough to matter. Even if it halved the startup time it would still be too slow for the tasks it is too slow for. Note: Clojure itself performs fin
by mej10 11y ago
Probably not enough to matter. Even if it halved the startup time it would still be too slow for the tasks it is too slow for. Note: Clojure itself performs fine, I am just talking about the startup time.
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.
- georgewsinger 11y agoYou can also target nodejs with ClojureScript, which leads to blazing fast scripts/startup time. See as an example: https://github.com/georgewsinger/yaml-table 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.
- georgewsinger 11y agoYou can also target nodejs with ClojureScript, which leads to blazing fast scripts/startup time. See as an example: https://github.com/georgewsinger/yaml-table https://github.com/georgewsinger/yaml-table This ClojureScript program takes about 100 ms to run on my computer, while the corresponding Clojure version takes about 2.25 seconds (!) to run via the JVM.
- ziggy1337 11y agoI think https://github.com/technomancy/grenchman https://github.com/technomancy/grenchman is exactly what you're looking for.