Re:Command-line apps with Clojure and GraalVM: 300x better s...
by jimmyhmiller on Friday July 20, 2018 @01:46PM
(#17577203)
With Clojure you get that feedback loop by running everything in an open repl. No startup time needed.
[ Parent
| on HN ]
Re:Command-line apps with Clojure and GraalVM: 300x better s...
by pmarreck on Friday July 20, 2018 @05:26PM
(#17579083)
so you rerun tests in a REPL? what happens when something is redefined?
Re:Command-line apps with Clojure and GraalVM: 300x better s...
by yogthos on Saturday July 21, 2018 @10:41AM
(#17582147)
Typically Clojure apps are structured to be reloadable meaning that you don't have any global state, and you can easily flush the current REPL state http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-r...
There are also tools like lein-test-refresh https://github.com/jakemcc/lein-test-refresh that figure out what needs to be reloaded automatically. You start it up, it watches your namespaces for changes, and reruns tests as needed. As a bonus it can even hook into your OS notification system and let you know if any tests fail.
Re:Command-line apps with Clojure and GraalVM: 300x better s...
by ilikehurdles on Thursday July 26, 2018 @11:31AM
(#17618222)
A lot of editor integration will handle reloading and test-running for you (including VSCode's calva extension, Cursive, and Proto REPL for Atom, although it's less "automatic" than the others).