gorillalabs / sparkling

A Clojure library for Apache Spark: fast, fully-features, and developer friendly
https://gorillalabs.github.io/sparkling/
Eclipse Public License 1.0
448 stars 68 forks source link

Recompile function for REPL development #26

Closed bucketh3ad closed 8 years ago

bucketh3ad commented 9 years ago

Since Spark requires functions to be compiled in order to work, I wrote a little helper function that aids REPL development by recompiling the current namespace.

(defn recompile [] (binding [*compile-files* true] (require (symbol (str *ns*)) :reload-all)))

Not sure if this would fit in the project anywhere, but I found it useful for speeding up my workflow, particularly when connected to an nREPL from my editor. Calling (recompile) certainly beats booting up a new REPL and reconnecting.

chrisbetz commented 8 years ago

closing this, because working on that will be tracked in #36 . Thanks for the input.