News for hackers. Stuff that matters.
Re:Building a Lisp to Javascript compiler by minikomi on Tuesday May 14, 2013 @01:58AM (#5703181)
Do you mind giving a quick rundown of how you set up your environment, or at least a point in the right direction?
Re:Building a Lisp to Javascript compiler by rsamvit on Tuesday May 14, 2013 @02:23AM (#5703249)
The most barebones version is very simple: lein has a plugin called lein-cljsbuild. In your project.clj there is a way to specify the directories this program needs to watch for file changes. lein cljsbuild has an option "auto" which activates the directory watcher and automatically recompiles the cljs files when one of them changes.

This long-running program keeps the same jvm running for all the compiles, and lets you iterate more quickly.

Re:Building a Lisp to Javascript compiler by john2x on Tuesday May 14, 2013 @03:16AM (#5703410)
How are you finding the ClojureScript REPL? I wanted to play around with it, but gave up after finding out how much trouble it is to get running. I was hoping it would be as simple as Clojure's `lein repl`.
Re:Building a Lisp to Javascript compiler by rsamvit on Tuesday May 14, 2013 @04:22PM (#5707784)
It's a bit harder to set up but it's very much worth it once you have it running. I use clojure.browser.repl
Re:Building a Lisp to Javascript compiler by minikomi on Tuesday May 14, 2013 @04:21AM (#5703563)
Thank you, I'll look into it!