Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-07-06 Thread mikefikes18
Yes. Look at the documentation for the cljs.js load function.

> On Jul 6, 2016, at 11:57 AM, Zubair Quraishi  wrote:
> 
> Hi Mike,
> I didn't necessarily mean that core.async is slow in my last comment, but 
> more that macro evaluation can be slow. The clojurescript macro file in 
> question is here:
> 
> https://github.com/zubairq/BlocklyBuilder/blob/master/src/webapp/framework/client/macros.cljs
> 
> It seems to take at least 5 seconds to compile in bootstrapped clojurescript. 
> So are you saying that I can precompile and cache this file so that the 
> browser never has to compile it?
> thanks
> Zubair
> 
> 
> On Tuesday, July 5, 2016 at 9:11:49 PM UTC+2, Mike Fikes wrote:
>>> i know I have been pushing for core.async to be pushed into master but I 
>>> have since changed my mind as i have seen that running macros in 
>>> bootstrapped clojurescript is very slow
>> 
>> Hey Zubair, 
>> 
>> For a library of the size of `core.async`, I’d recommend making use of 
>> bootstrapped ClojureScript’s ability to cache the results of compilation. 
>> You can at least eliminate 95% of the start up time (with Andare). Here is 
>> an example (where the -K option to Planck enables caching):
>> 
>> $ time planck -Kc andare-0.2.0.jar -e"(require 'cljs.core.async)" 
>> -e"(require-macros 'cljs.core.async.macros)" -e"(cljs.core.async.macros/go)"
>> #object[cljs.core.async.impl.channels.ManyToManyChannel]
>> 
>> real0m27.401s
>> user0m36.093s
>> sys0m0.940s
>> 
>> $ time planck -Kc andare-0.2.0.jar -e"(require 'cljs.core.async)" 
>> -e"(require-macros 'cljs.core.async.macros)" -e"(cljs.core.async.macros/go)"
>> #object[cljs.core.async.impl.channels.ManyToManyChannel]
>> 
>> real0m1.505s
>> user0m2.658s
>> sys0m0.357s
>> 
>> - Mike
> 
> -- 
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-07-06 Thread Zubair Quraishi
Hi Mike,
 I didn't necessarily mean that core.async is slow in my last comment, but more 
that macro evaluation can be slow. The clojurescript macro file in question is 
here:

https://github.com/zubairq/BlocklyBuilder/blob/master/src/webapp/framework/client/macros.cljs

It seems to take at least 5 seconds to compile in bootstrapped clojurescript. 
So are you saying that I can precompile and cache this file so that the browser 
never has to compile it?
thanks
Zubair


On Tuesday, July 5, 2016 at 9:11:49 PM UTC+2, Mike Fikes wrote:
> > i know I have been pushing for core.async to be pushed into master but I 
> > have since changed my mind as i have seen that running macros in 
> > bootstrapped clojurescript is very slow
> 
> Hey Zubair, 
> 
> For a library of the size of `core.async`, I’d recommend making use of 
> bootstrapped ClojureScript’s ability to cache the results of compilation. You 
> can at least eliminate 95% of the start up time (with Andare). Here is an 
> example (where the -K option to Planck enables caching):
> 
> $ time planck -Kc andare-0.2.0.jar -e"(require 'cljs.core.async)" 
> -e"(require-macros 'cljs.core.async.macros)" -e"(cljs.core.async.macros/go)"
> #object[cljs.core.async.impl.channels.ManyToManyChannel]
> 
> real  0m27.401s
> user  0m36.093s
> sys   0m0.940s
> 
> $ time planck -Kc andare-0.2.0.jar -e"(require 'cljs.core.async)" 
> -e"(require-macros 'cljs.core.async.macros)" -e"(cljs.core.async.macros/go)"
> #object[cljs.core.async.impl.channels.ManyToManyChannel]
> 
> real  0m1.505s
> user  0m2.658s
> sys   0m0.357s
> 
> - Mike

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-07-05 Thread Mike Fikes

> i know I have been pushing for core.async to be pushed into master but I have 
> since changed my mind as i have seen that running macros in bootstrapped 
> clojurescript is very slow

Hey Zubair, 

For a library of the size of `core.async`, I’d recommend making use of 
bootstrapped ClojureScript’s ability to cache the results of compilation. You 
can at least eliminate 95% of the start up time (with Andare). Here is an 
example (where the -K option to Planck enables caching):

$ time planck -Kc andare-0.2.0.jar -e"(require 'cljs.core.async)" 
-e"(require-macros 'cljs.core.async.macros)" -e"(cljs.core.async.macros/go)"
#object[cljs.core.async.impl.channels.ManyToManyChannel]

real0m27.401s
user0m36.093s
sys 0m0.940s

$ time planck -Kc andare-0.2.0.jar -e"(require 'cljs.core.async)" 
-e"(require-macros 'cljs.core.async.macros)" -e"(cljs.core.async.macros/go)"
#object[cljs.core.async.impl.channels.ManyToManyChannel]

real0m1.505s
user0m2.658s
sys 0m0.357s

- Mike

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-06-24 Thread mikefikes18
Hi Zubair,

There are no plans on my part for pushing for that.

(My opinion: It is a relatively heavy set of code changes, useful only to a 
small portion of the community. If bootstrap becomes important enough where 
Cognitect would like to consider revising core.async for self-hosted use, at 
least Andare exists as a working example of how it can be done.)

- Mike

> On Jun 24, 2016, at 8:19 AM, Zubair Quraishi  wrote:
> 
> Will this fork make it back in to the main branch at some point?
> 
>> On Saturday, May 14, 2016 at 5:16:10 PM UTC+2, Mike Fikes wrote:
>>> On Tuesday, December 15, 2015 at 8:54:21 AM UTC-5, Zubair Quraishi wrote:
>>> Hi Mike,
>>> I took a quick look. Really happy that you are actively working on this 
>>> too. When do you think a stable will be released? Just a ballpark figure I 
>>> mean, so that I can plan around it?
>>> thanks
>>> Zubair
>> 
>> Hi Zubair,
>> 
>> Basic `core.async` constructs now work in self-hosted ClojureScript in the 
>> fork I've been messing with. See 
>> https://gist.github.com/mfikes/22f553d8c9186dcc613e1263ca9deeda
>> 
>> - Mike
> 
> -- 
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-06-24 Thread Zubair Quraishi
Will this fork make it back in to the main branch at some point?

On Saturday, May 14, 2016 at 5:16:10 PM UTC+2, Mike Fikes wrote:
> On Tuesday, December 15, 2015 at 8:54:21 AM UTC-5, Zubair Quraishi wrote:
> > Hi Mike,
> >  I took a quick look. Really happy that you are actively working on this 
> > too. When do you think a stable will be released? Just a ballpark figure I 
> > mean, so that I can plan around it?
> > thanks
> > Zubair
> 
> Hi Zubair,
> 
> Basic `core.async` constructs now work in self-hosted ClojureScript in the 
> fork I've been messing with. See 
> https://gist.github.com/mfikes/22f553d8c9186dcc613e1263ca9deeda
> 
> - Mike

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-05-14 Thread Mike Fikes
On Tuesday, December 15, 2015 at 8:54:21 AM UTC-5, Zubair Quraishi wrote:
> Hi Mike,
>  I took a quick look. Really happy that you are actively working on this too. 
> When do you think a stable will be released? Just a ballpark figure I mean, 
> so that I can plan around it?
> thanks
> Zubair

Hi Zubair,

Basic `core.async` constructs now work in self-hosted ClojureScript in the fork 
I've been messing with. See 
https://gist.github.com/mfikes/22f553d8c9186dcc613e1263ca9deeda

- Mike

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread David Nolen
There is no more work planned other than bug fixes. It is effectively done.

David

On Tue, Dec 15, 2015 at 1:39 PM, Zubair Quraishi  wrote:

> Ok, makes sense. Is there a roadmap or something for Clojurescript in
> Clojurescript so I can get a better sense of what it will and won't support
> in the future?
>
> --
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread Zubair Quraishi
Ok, thanks for the update

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread Zubair Quraishi
Ok, makes sense. Is there a roadmap or something for Clojurescript in 
Clojurescript so I can get a better sense of what it will and won't support in 
the future?

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


[ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread Zubair Quraishi
I am trying to get core.async (go macros to work in cljs in cljs but they seem 
to do nothing. I try fully qualifying them as well with 
(cljs.core.async.macros/go but it makes no difference. Anyone else have 
core.async working with cljs in cljs?

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread mikefikes18
Hi Zubair,

It definitely doesn't work as-is. I've been working through revisions to see if 
I can get it to load into Planck (and Elbow, a Replumb-based REPL for node). 
It's not complete, but my changes are in the self-host branch here if you are 
curious: 

https://github.com/mfikes/core.async/tree/self-host

- Mike

> On Dec 15, 2015, at 4:34 AM, Zubair Quraishi  wrote:
> 
> I am trying to get core.async (go macros to work in cljs in cljs but they 
> seem to do nothing. I try fully qualifying them as well with 
> (cljs.core.async.macros/go but it makes no difference. Anyone else have 
> core.async working with cljs in cljs?
> 
> -- 
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread David Nolen
Nobody at Cognitect is working on this. It's unlikely to be very high
priority either as the payoff for most users is non-existent.

David

On Tue, Dec 15, 2015 at 10:08 AM, Zubair Quraishi  wrote:

> Ok, but how does it work right now. Are you the main contributor for
> core.async for ClojureScript, or is someone at Cognitect working on it as
> well?
>
> --
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread Zubair Quraishi
Hi Mike,
 I took a quick look. Really happy that you are actively working on this too. 
When do you think a stable will be released? Just a ballpark figure I mean, so 
that I can plan around it?
thanks
Zubair

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread mikefikes18
Hi Zubair,

I don't have specific plans to release a stable version. If things lead to 
that, I may consider it though. I can't speak to timelines either unfortunately.

- Mike

> On Dec 15, 2015, at 8:54 AM, Zubair Quraishi  wrote:
> 
> Hi Mike,
> I took a quick look. Really happy that you are actively working on this too. 
> When do you think a stable will be released? Just a ballpark figure I mean, 
> so that I can plan around it?
> thanks
> Zubair
> 
> -- 
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2015-12-15 Thread Zubair Quraishi
Ok, but how does it work right now. Are you the main contributor for core.async 
for ClojureScript, or is someone at Cognitect working on it as well?

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.