[ClojureScript] Re: ClojureScript Google Closure Module support

2015-01-11 Thread David Nolen
Yes the point is that #2 is a separate interesting discussion on its own right. But I only want feedback about how to compute modules. On Sunday, January 11, 2015, Mike Haney wrote: > So just to be clear, this is a compiler change only? There are no > proposed changes to namespace loading, i.e

[ClojureScript] Re: ClojureScript Google Closure Module support

2015-01-11 Thread Mike Haney
So just to be clear, this is a compiler change only? There are no proposed changes to namespace loading, i.e. if you load a namespace and the module hasn't been loaded yet, it will just fail? That's fine with me, I just want to make sure everyone's on the same page. -- Note that posts from ne

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote: > Hmm, perhaps the minified jQuery is doing its own munging. I have no idea. > Sorry. :( If you don't *really* need jQuery, you should probably elide it. > Google Closure provides a ton of advanced compilation compatibl

[ClojureScript] Re: ClojureScript Google Closure Module support

2015-01-11 Thread David Nolen
#2 isn't on the table for this. Let's keep this thread focused please. Thanks. --module is described at the command line when querying help for the Google Closure Compuler. On Sunday, January 11, 2015, Daniel Kersten wrote: > Re #2, for me this is interesting for performance than anything else.

Re: [ClojureScript] Re: ClojureScript Google Closure Module support

2015-01-11 Thread Daniel Kersten
Re #2, for me this is interesting for performance than anything else. Ie loading only what is needed, when needed. David, do you have a link or anything for closure modules by any chance? Despite being a search company, I've found it difficult to turn up much in the way of documentation. I did see

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread David Nolen
prim-seq On Sunday, January 11, 2015, Jonathon McKitrick wrote: > Well, that's better than what I was using: > > (set! (.-display (.-style (goog.dom/getElement "rcontent"))) "block") > > Now, why can't I turn an HTMLOptionsCollection into a seq? > > On Sunday, January 11, 2015 at 7:11:24 PM UTC-

[ClojureScript] Re: ClojureScript Google Closure Module support

2015-01-11 Thread David Nolen
2 is out of scope wrt. compiler support. But as far as I know this is something that should be solvable on your own with Closure Modules. On Sunday, January 11, 2015, Mike Haney wrote: > There are 2 use cases I would like to see supported by this: > > 1) generating multiple apps from the same co

[ClojureScript] ClojureScript Google Closure Module support

2015-01-11 Thread Mike Haney
There are 2 use cases I would like to see supported by this: 1) generating multiple apps from the same code base. For my current project, there is the main web app, an admin interface, and a mobile (Cordova) version. There is a lot of shared code, and currently I am just cheating and building

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
Well, that's better than what I was using: (set! (.-display (.-style (goog.dom/getElement "rcontent"))) "block") Now, why can't I turn an HTMLOptionsCollection into a seq? On Sunday, January 11, 2015 at 7:11:24 PM UTC-5, David Nolen wrote: > Use goog.dom.classes > > http://docs.closure-library.

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread David Nolen
Use goog.dom.classes http://docs.closure-library.googlecode.com/git-history/b75212a4258f8190d08fd518e16efe764d9d/closure_goog_dom_classes.js.html goog.dom.classes.toggle with a CSS display none class should get the job done. That or you can use goog.dom.style goog.dom.style.setStyle(el, "di

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
On Sunday, January 11, 2015 at 7:01:55 PM UTC-5, Jonathon McKitrick wrote: > On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote: > > Hmm, perhaps the minified jQuery is doing its own munging. I have no idea. > > Sorry. :( If you don't *really* need jQuery, you should prob

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
On Sunday, January 11, 2015 at 7:01:55 PM UTC-5, Jonathon McKitrick wrote: > On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote: > > Hmm, perhaps the minified jQuery is doing its own munging. I have no idea. > > Sorry. :( If you don't *really* need jQuery, you should prob

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote: > Hmm, perhaps the minified jQuery is doing its own munging. I have no idea. > Sorry. :( If you don't *really* need jQuery, you should probably elide it. > Google Closure provides a ton of advanced compilation compatibl

[ClojureScript] ClojureScript Google Closure Module support

2015-01-11 Thread David Nolen
Currently looking into supporting Google Closure Modules. They allow breaking up advanced compiled builds so everything need not be loaded all at once. This would help a lot with load latency in larger ClojureScript applications. A basic sketch underway here: https://gist.github.com/swannodette/0

Re: [ClojureScript] [ANN] Rum: new ClojureScript wrapper for React. Decomplected, extensible, simple

2015-01-11 Thread Mike Haney
First, I want to point out that I am NOT knocking Reagent at all. I have used it for months now and I like the library and have been a very vocal proponent of it on this group and elsewhere. For many if not most apps, it's all you will ever need. That being said, there are 2 challenges I am f

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread adrian . medina
Hmm, perhaps the minified jQuery is doing its own munging. I have no idea. Sorry. :( If you don't *really* need jQuery, you should probably elide it. Google Closure provides a ton of advanced compilation compatible functionality you would otherwise be using jQuery for. On Sunday, January 11, 2

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Mike Fikes
Hi Jonathon, try the :pseudo-names compiler option [1] to get more insight into what might be going wrong with your "is not a function" error. [1] https://github.com/clojure/clojurescript/wiki/Compiler-Options#pseudo-names -- Note that posts from new members are moderated - please be patient wi

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
On Sunday, January 11, 2015 at 4:22:08 PM UTC-5, adrian...@mail.yu.edu wrote: > That's almost certainly an externs issue. Looks to me like you need to supply > externs for react.js. When I add "reagent/react.js" to the externs vector, I get this error: Jan 11, 2015 4:27:43 PM com.google.javascr

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread adrian . medina
That's almost certainly an externs issue. Looks to me like you need to supply externs for react.js. On Sunday, January 11, 2015 at 4:00:19 PM UTC-5, Jonathon McKitrick wrote: > Let's try this again, with more isolated cases. I now have 2 working build > profiles, prod and dev. The dev code is

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
Let's try this again, with more isolated cases. I now have 2 working build profiles, prod and dev. The dev code is working the way I want, but I want full optimizations for the prod build. Currently, I get this error in an event handler of my app: TypeError: kt.a(...).Hf is not a function T

Re: [ClojureScript] [ANN] Rum: new ClojureScript wrapper for React. Decomplected, extensible, simple

2015-01-11 Thread Nikita Prokopov
Matt, if you keep all your state in Reagent atoms, that’s perfectly fine, you’ll probably get no benefits from moving to Rum. Rum idea is not to lock you down to a single storage model. Sometimes your dataflow is trickier that just atoms, e.g. you need components to react to DataScript events,

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread adrian . medina
That looks like it is almost there; try uncommenting :optimizations :advanced as well as :externs and remove the trailing slash from :output-dir. I don't think the latter actually matters, but for the purposes of debugging I like to isolate sources of uncertainty. On Sunday, January 11, 2015 a

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
> Specify :source-map "path/to/source.map.js" in your :compiler options. I'm making progress. I couldn't get source-map to work with output-dir and a simple filename. It needed the entire path, as you posted. Next, I had to disable :closure-warnings because of this error: Compiling "resources

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread adrian . medina
On Sunday, January 11, 2015 at 1:01:33 PM UTC-5, Jonathon McKitrick wrote: > Let's start with source maps. How can I get them working while still > optimizing the output from the compiler? > > On Sunday, January 11, 2015 at 11:39:35 AM UTC-5, David Nolen wrote: > > OK, but you have not explained

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
Let's start with source maps. How can I get them working while still optimizing the output from the compiler? On Sunday, January 11, 2015 at 11:39:35 AM UTC-5, David Nolen wrote: > OK, but you have not explained what exactly is not working for each of them? -- Note that posts from new members

Re: [ClojureScript] [ANN] Rum: new ClojureScript wrapper for React. Decomplected, extensible, simple

2015-01-11 Thread Matt Ho
Could you describe some of these cases where the Reagent model isn't expressive enough? I'm having a hard time understanding the use case. Thanks! M -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subs

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread David Nolen
OK, but you have not explained what exactly is not working for each of them? David On Sun, Jan 11, 2015 at 11:27 AM, Jonathon McKitrick wrote: > Here's one set > > :cljsbuild {:builds > {:prod >{:source-paths ["src/cljs"] > :compiler {:output-to "

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
This does not include my attempts to get source maps working. -- 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 stop

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
Here's one set :cljsbuild {:builds {:prod {:source-paths ["src/cljs"] :compiler {:output-to "resources/public/js/main.js" :optimizations :advanced ;;:pretty-print true :p

Re: [ClojureScript] ANN: Om 0.8.0

2015-01-11 Thread David Nolen
I really didn't put that much thought into it and it can easily be changed later if/when Om has a web presence other than the GitHub repository. David On Sun, Jan 11, 2015 at 9:16 AM, Daniel Kersten wrote: > I don't see the benefit of putting the "org" in at all if its nothing to > do with a do

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread David Nolen
We need more information. What do your build settings look like? Thanks, David On Sun, Jan 11, 2015 at 10:53 AM, Jonathon McKitrick wrote: > Is there a guide on how to combine optimization settings, source maps, > externs, and maybe the preamble in the same project and/or build > configuration?

[ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
Is there a guide on how to combine optimization settings, source maps, externs, and maybe the preamble in the same project and/or build configuration? It seems when I change one, I inadvertently break the others. I'm using jQuery and React in my preamble, and I would like to enable advanced op

[ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
Is there a guide on how to combine optimization settings, source maps, externs, and maybe the preamble in the same project and/or build configuration? It seems when I change one, I inadvertently break the others. I'm using jQuery and React in my preamble, and I would like to enable advanced op

Re: [ClojureScript] Re: Material Design

2015-01-11 Thread Daniel Kersten
It's pretty new so I guess it really is still a work in progress, but I find the text confusing as it makes it sounds like the "documentation site" is what's still a work in progress. In any case, I'm also very interested in porting this to Om. I'm thinking an auto generated wrapper like what boot

Re: [ClojureScript] ANN: Om 0.8.0

2015-01-11 Thread Daniel Kersten
I don't see the benefit of putting the "org" in at all if its nothing to do with a domain name. I mean, what does "org.om" even mean and what benefit does it add over just "om" if its not a reference to a domain name? At the end of the day it doesn't really matter though, I guess. Anyway, thanks