Re: [ClojureScript] Is the Clojurescript compiler needed at runtime?

2014-06-09 Thread Chris Jenkins
Actually, putting Clojurescript and any Clojurescript libraries into :dev dependencies doesn't quite work in a trouble-free way because it still breaks the Clojurescript compilation step in some circumstances. If I do the following: lein clean lein uberjar (or lein ring uberwar) .. then the

Re: [ClojureScript] Is the Clojurescript compiler needed at runtime?

2014-06-09 Thread Gary Trakhman
I don't think leiningen will ever do this, it might be a cleaner hack if you move the cljsbuild plugin into the dev profile too. On Monday, June 9, 2014, Chris Jenkins cdpjenk...@gmail.com wrote: Actually, putting Clojurescript and any Clojurescript libraries into :dev dependencies doesn't

Re: [ClojureScript] Is the Clojurescript compiler needed at runtime?

2014-06-09 Thread Chris Jenkins
Thanks Gary. Yeah, moving :cljsbuild to the :dev profile works. I still have to manually run cljsbuild though, which is annoying on my local machine and I suspect it would break things like deploying to Heroku or Cloud Foundry. So this will do for now but I'm still looking for a better solution in

Re: [ClojureScript] Clarification of symbol resolution rules

2014-06-09 Thread David Nolen
On Sun, Jun 8, 2014 at 5:55 AM, Colin Fleming colin.mailingl...@gmail.com wrote: Hi all, I'm working on CLJS symbol resolution for Cursive. There are a lot of corners where it's hard to figure out from the doc how they should work - I've looked through the code but I'm not sure I've got it

Re: [ClojureScript] Re: Clarification of symbol resolution rules

2014-06-09 Thread David Nolen
goog.typeOf should probably be goog/typeOf. David On Sun, Jun 8, 2014 at 8:08 AM, Colin Fleming colin.mailingl...@gmail.com wrote: Another one - I've seen some forms like (goog.typeOf x), which implies that JS root objects can be used directly? This is something I haven't seen documented

Re: [ClojureScript] Clarification of symbol resolution rules

2014-06-09 Thread Colin Fleming
Thanks David. I think I'll implement this the way it should work then, and users will see an unresolved symbol warning if they use the incorrect forms. As things get fancier I can provide some explanation and an intention to migrate the incorrect forms to the correct ones. Hopefully this should

Re: [ClojureScript] Clarification of symbol resolution rules

2014-06-09 Thread Colin Fleming
Oh, one other question - does :refer-clojure in CLJS refer both macros and functions in the same declaration? i.e. I could do something like: (ns foo (:refer-clojure :only [defn reduce])) On 10 June 2014 01:27, Colin Fleming colin.mailingl...@gmail.com wrote: Thanks David. I think I'll

Re: [ClojureScript] Clarification of symbol resolution rules

2014-06-09 Thread David Nolen
That is correct. On Mon, Jun 9, 2014 at 9:31 AM, Colin Fleming colin.mailingl...@gmail.com wrote: Oh, one other question - does :refer-clojure in CLJS refer both macros and functions in the same declaration? i.e. I could do something like: (ns foo (:refer-clojure :only [defn reduce]))

Re: [ClojureScript] Clarification of symbol resolution rules

2014-06-09 Thread Colin Fleming
Great, thanks. On 10 June 2014 01:33, David Nolen dnolen.li...@gmail.com wrote: That is correct. On Mon, Jun 9, 2014 at 9:31 AM, Colin Fleming colin.mailingl...@gmail.com wrote: Oh, one other question - does :refer-clojure in CLJS refer both macros and functions in the same

[ClojureScript] Re: ClojureScript Clojure 1.6.0

2014-06-09 Thread Karsten Schmidt
Hi David, this is great! I've switched to this branch, updated all hashing impls of deftypes in my library and it works without a hitch and see much less hash collisions in large 3d meshes as a result. Awesome! K. On 8 Jun 2014 18:07, David Nolen dnolen.li...@gmail.com wrote: 1.6.0 branch is

Re: [ClojureScript] Detecting ClojureScript compilation in macros

2014-06-09 Thread Yehonathan Sharvit
Why clix is a workaround and not considered as the best solution? -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and

[ClojureScript] Re: ClojureScript Clojure 1.6.0

2014-06-09 Thread Yehonathan Sharvit
I have compilation warnings related to core.async. Here is the log: Compiling resources/public/js/main.js from [src/cljs]... Jun 10, 2014 7:49:49 AM com.google.javascript.jscomp.LoggerErrorManager println WARNING: /Users/viebel/libs/klozzer/target/cljsbuild-compiler-0/cljs/core/async.js:127: