4 ms·
When have you tried Clojure? Startup time was also a deterrent for me initially, but that was ~7-8years. I annoyed the heck out of me. I was doing Rails back t
by onetom 6y ago
When have you tried Clojure?
Startup time was also a deterrent for me initially, but that was ~7-8years. I annoyed the heck out of me.
I was doing Rails back then and that was too much too.
Nowadays however the situation is a lot better.
For scripts, you definitely should check out https://github.com/borkdude/babashka https://github.com/borkdude/babashka !
Startup time still annoys me, but I've learnt an practiced development enough that I'm leaving my REPLs open for days on end.
I use very few simple tricks to speed things up a bit:
I work Clojure cli tools (`deps.edn`) instead of `lein`.
Run `(compile 'my.main.namespace)` occasionally, when I add some bigger library to my project as recommended here:
https://clojure.org/guides/dev_startup_time https://clojure.org/guides/dev_startup_time
And I think that's it.
You can further reduce this overhead if you are just using the the Socket REPL, but I think the best support for that (which allows evaluation interruption for example) is the Chlorine plugin for the Atom editor. I usually just accept the overhead of nREPL though.