Yes I was able to get :none running. I remember having issues with :advanced, 
although I do remember it working. I had some idea about writing some tests 
that would try to render your builds whenever a new one was made, so you'd 
catch issues earlier rather than later, but didn't get around to it. Here's 
some old code 
https://github.com/IB5k/agency/blob/master/modules/cljs/src/ib5k/components/cljs_render.clj
 that might not work anymore, but maybe parts will be helpful. This was the 
trick for :none 
https://github.com/IB5k/agency/blob/master/modules/cljs/src/ib5k/components/cljs_render.clj#L67

I found the console polyfill necessary
https://github.com/IB5k/agency/blob/master/modules/cljs/resources/polyfills/console.js

I also found that core.async go blocks will always break nashorn, which you can 
either wrap in conditionals where you check for something that doesn't exist in 
nashorn, or you can put them in component-did-mount, which will never be 
called. 

On Monday, February 9, 2015 at 5:22:55 AM UTC-5, Max Gonzih wrote:
> I was also unable to run advanced compilation mode in V8. I suspect that it's 
> due to issues inside goog module system. Simple mode seems to be broken, only 
> whitespace works.
> 
> On Sunday, February 8, 2015 at 10:35:50 PM UTC+1, [email protected] wrote:
> > Hi everyone,
> > 
> > I should've tacked my post from earlier today on to this thread, but I only 
> > saw it now. I'm really interested in this topic b/c I have projects that 
> > are best implemented as SPA's but require static HTML be produced for some 
> > endpoints as well.
> > 
> > Anyway, from trying to implement a server-rendered Reagent app recently 
> > (https://gist.github.com/pandeiro/c5d2728bd04aab4f31c3), I can comment on a 
> > few of the issues mentioned here.
> > 
> > First, stubbing is definitely necessary for Nashorn, though it is minimal. 
> > See here: 
> > https://github.com/pandeiro/agua/blob/master/src/agua/core.clj#L35-L36 -- 
> > as far as I can tell, this is all that's needed to deal with the global 
> > environment, environment-sniffing conditionals and routing, which appear to 
> > me to be the major concerns for this type of app.
> > 
> > Re: optimizations, I could not get my example to work with :advanced and I 
> > did not even try with :none, as I don't think Nashorn will work with 
> > manually retrieving Google Closure namespaces. As for :advanced, I did not 
> > try to debug why it wasn't working. So for now, I used :simple. (My example 
> > uses ring-gzip middleware and its total payload is in the 120kb range.)
> > 
> > Dylan and Max -- have you made any more attempts or progress with this in 
> > the last couple months?
> > 
> > Cheers, M

-- 
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 receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to