Live data from Hacker News

Building a Lisp to Javascript compiler

honza.ca

11–12 of 12 posts

Re: Building a Lisp to Javascript compiler

#11
post #9
post #8

Earlier quoted context omitted.

Do you mind giving a quick rundown of how you set up your environment, or at least a point in the right direction?

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…

Thank you, I'll look into it!

Re: Building a Lisp to Javascript compiler

#12
post #10
post #9

Earlier quoted context omitted.

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…

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`.

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
Post reply on HN