[ClojureScript] How do you / would you like to "test"?

2015-01-27 Thread Thomas Heller
Hello everyone,

I recently started working in adding support for testing in shadow-build. I 
have my own testing workflow but wanted to ask how everyone else does it? 
ClojureScript AND Clojure because I'd like them to be as close as possible.

My CLJ workflow is opening a REPL and use "Run test under Caret" and "Re-run 
last test action" via Cursive (cider before that) until that works and then 
continue with the next test. Occasionally running all tests.

For CLJS I basically have no tests but my goal is to get to the exact same 
workflow as in CLJ. It might need some adjustments due to the nature of 
browsers, also there are some parts that can be tested via node and wouldn't 
need a browser.

So far I have the ability to execute all tests or watch files for changes and 
then execute only those affected by the changed files. I identify a test by 
looking at the :require of the ns form. If cljs.test is in there it is a test. 
Currently that only works with node, although a phantomjs/slimerjs test 
"runner" should be pretty simple. Do you guys do anything special in the html 
file associated with those or just boilerplate?

Would appreciate some examples of other testing workflows.

Thanks,
/thomas

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread Antonin Hildebrand
> ExceptionInfo No such namespace: cljsjs.react 
I have the same issue with 0.8.6 and I can confirm removing piggieback does not 
solve the problem.

I'm new to Clojure/ClojureScript. But my guess is that this problem arises when 
om is required by some code running in "clj" context. My app compiles and runs 
fine. But not when I try to enter 'lein repl'. REPL starts in "clj" mode, I 
enter some piggieback commands and it tries to bootstrap cljs contex and 
establish a browser connection. I think the problem is in that boostrap phase, 
when om gets somehow included in clj context and tries to require cljsjs.react 
which is not on classpath. There is no jar for that.

Unfortunately I was unable to dig deeper. Still don't know how get more verbose 
information about the situation.

Antonin

On Tuesday, January 27, 2015 at 5:16:52 AM UTC+1, Makoto H. wrote:
> Hi, 
> 
> I tried the 0.8.6 but I faced another error. 
> 
> ExceptionInfo No such namespace: cljsjs.react at line 1 
> file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs
>   clojure.core/ex-info (core.clj:4403)
> 
> I am trying to find the cause but I was not able to do it.

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread Antonin Hildebrand
I have just double-checked my local maven repo:

https://gist.github.com/darwin/523ee0a1bc6e512fa27d

cljsjs.react is not present


On Tuesday, January 27, 2015 at 1:12:19 PM UTC+1, Antonin Hildebrand wrote:
> > ExceptionInfo No such namespace: cljsjs.react 
> I have the same issue with 0.8.6 and I can confirm removing piggieback does 
> not solve the problem.
> 
> I'm new to Clojure/ClojureScript. But my guess is that this problem arises 
> when om is required by some code running in "clj" context. My app compiles 
> and runs fine. But not when I try to enter 'lein repl'. REPL starts in "clj" 
> mode, I enter some piggieback commands and it tries to bootstrap cljs contex 
> and establish a browser connection. I think the problem is in that boostrap 
> phase, when om gets somehow included in clj context and tries to require 
> cljsjs.react which is not on classpath. There is no jar for that.
> 
> Unfortunately I was unable to dig deeper. Still don't know how get more 
> verbose information about the situation.
> 
> Antonin
> 
> On Tuesday, January 27, 2015 at 5:16:52 AM UTC+1, Makoto H. wrote:
> > Hi, 
> > 
> > I tried the 0.8.6 but I faced another error. 
> > 
> > ExceptionInfo No such namespace: cljsjs.react at line 1 
> > file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs
> >   clojure.core/ex-info (core.clj:4403)
> > 
> > I am trying to find the cause but I was not able to do it.

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread David Nolen
This isn't very useful without seeing the contents your project.clj or the
output of `lein deps :tree`.

This goes for everyone having trouble on this thread.

David

On Tue, Jan 27, 2015 at 7:17 AM, Antonin Hildebrand <
antonin.hildebr...@gmail.com> wrote:

> I have just double-checked my local maven repo:
>
> https://gist.github.com/darwin/523ee0a1bc6e512fa27d
>
> cljsjs.react is not present
>
>
> On Tuesday, January 27, 2015 at 1:12:19 PM UTC+1, Antonin Hildebrand wrote:
> > > ExceptionInfo No such namespace: cljsjs.react
> > I have the same issue with 0.8.6 and I can confirm removing piggieback
> does not solve the problem.
> >
> > I'm new to Clojure/ClojureScript. But my guess is that this problem
> arises when om is required by some code running in "clj" context. My app
> compiles and runs fine. But not when I try to enter 'lein repl'. REPL
> starts in "clj" mode, I enter some piggieback commands and it tries to
> bootstrap cljs contex and establish a browser connection. I think the
> problem is in that boostrap phase, when om gets somehow included in clj
> context and tries to require cljsjs.react which is not on classpath. There
> is no jar for that.
> >
> > Unfortunately I was unable to dig deeper. Still don't know how get more
> verbose information about the situation.
> >
> > Antonin
> >
> > On Tuesday, January 27, 2015 at 5:16:52 AM UTC+1, Makoto H. wrote:
> > > Hi,
> > >
> > > I tried the 0.8.6 but I faced another error.
> > >
> > > ExceptionInfo No such namespace: cljsjs.react at line 1
> file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs
> clojure.core/ex-info (core.clj:4403)
> > >
> > > I am trying to find the cause but I was not able to do it.
>
> --
> 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 http://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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread Makoto H.
I put an output of 'lein deps :tree'.

https://gist.github.com/tokomakoma123/63ea11a4d4a344750e34

 David Nolen:
> This isn't very useful without seeing the contents your project.clj or the 
> output of `lein deps :tree`.
> 
> 
> This goes for everyone having trouble on this thread.
> 
> 
> 
> David
> 
> 
> On Tue, Jan 27, 2015 at 7:17 AM, Antonin Hildebrand  
> wrote:
> I have just double-checked my local maven repo:
> 
> 
> 
> https://gist.github.com/darwin/523ee0a1bc6e512fa27d
> 
> 
> 
> cljsjs.react is not present
> 
> 
> 
> 
> 
> 
> 
> On Tuesday, January 27, 2015 at 1:12:19 PM UTC+1, Antonin Hildebrand wrote:
> 
> > > ExceptionInfo No such namespace: cljsjs.react
> 
> > I have the same issue with 0.8.6 and I can confirm removing piggieback does 
> > not solve the problem.
> 
> >
> 
> > I'm new to Clojure/ClojureScript. But my guess is that this problem arises 
> > when om is required by some code running in "clj" context. My app compiles 
> > and runs fine. But not when I try to enter 'lein repl'. REPL starts in 
> > "clj" mode, I enter some piggieback commands and it tries to bootstrap cljs 
> > contex and establish a browser connection. I think the problem is in that 
> > boostrap phase, when om gets somehow included in clj context and tries to 
> > require cljsjs.react which is not on classpath. There is no jar for that.
> 
> >
> 
> > Unfortunately I was unable to dig deeper. Still don't know how get more 
> > verbose information about the situation.
> 
> >
> 
> > Antonin
> 
> >
> 
> > On Tuesday, January 27, 2015 at 5:16:52 AM UTC+1, Makoto H. wrote:
> 
> > > Hi,
> 
> > >
> 
> > > I tried the 0.8.6 but I faced another error.
> 
> > >
> 
> > > ExceptionInfo No such namespace: cljsjs.react at line 1 
> > > file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs
> > >   clojure.core/ex-info (core.clj:4403)
> 
> > >
> 
> > > I am trying to find the cause but I was not able to do it.
> 
> 
> 
> --
> 
> 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 clojurescrip...@googlegroups.com.
> 
> To post to this group, send email to clojur...@googlegroups.com.
> 
> Visit this group at http://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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread Antonin Hildebrand
Weasel calling cljs.repl/analyze-source is throwing in my case. I didn't solve 
the cause, but I hacked a way around the problem in my local version of weasel:
https://github.com/darwin/weasel/commit/c2b5b963bcf10a7c341a4cbc8f21121d3adef6b0

I have updated the gist with more info:
https://gist.github.com/darwin/523ee0a1bc6e512fa27d

I cannot reason about these issues. But with Om 0.8.1 it worked for me.

btw. full project is available here:
https://github.com/darwin/flense-nw/tree/weasel-repl

I don't expect more help here because this is probably an issue on Weasel side:
https://github.com/tomjakubowski/weasel/issues/41 (and others)

Thanks for you patience.


On Tuesday, January 27, 2015 at 2:18:42 PM UTC+1, David Nolen wrote:
> This isn't very useful without seeing the contents your project.clj or the 
> output of `lein deps :tree`.
> 
> 
> This goes for everyone having trouble on this thread.
> 
> 
> 
> David
> 
> 
> On Tue, Jan 27, 2015 at 7:17 AM, Antonin Hildebrand  
> wrote:
> I have just double-checked my local maven repo:
> 
> 
> 
> https://gist.github.com/darwin/523ee0a1bc6e512fa27d
> 
> 
> 
> cljsjs.react is not present
> 
> 
> 
> 
> 
> 
> 
> On Tuesday, January 27, 2015 at 1:12:19 PM UTC+1, Antonin Hildebrand wrote:
> 
> > > ExceptionInfo No such namespace: cljsjs.react
> 
> > I have the same issue with 0.8.6 and I can confirm removing piggieback does 
> > not solve the problem.
> 
> >
> 
> > I'm new to Clojure/ClojureScript. But my guess is that this problem arises 
> > when om is required by some code running in "clj" context. My app compiles 
> > and runs fine. But not when I try to enter 'lein repl'. REPL starts in 
> > "clj" mode, I enter some piggieback commands and it tries to bootstrap cljs 
> > contex and establish a browser connection. I think the problem is in that 
> > boostrap phase, when om gets somehow included in clj context and tries to 
> > require cljsjs.react which is not on classpath. There is no jar for that.
> 
> >
> 
> > Unfortunately I was unable to dig deeper. Still don't know how get more 
> > verbose information about the situation.
> 
> >
> 
> > Antonin
> 
> >
> 
> > On Tuesday, January 27, 2015 at 5:16:52 AM UTC+1, Makoto H. wrote:
> 
> > > Hi,
> 
> > >
> 
> > > I tried the 0.8.6 but I faced another error.
> 
> > >
> 
> > > ExceptionInfo No such namespace: cljsjs.react at line 1 
> > > file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs
> > >   clojure.core/ex-info (core.clj:4403)
> 
> > >
> 
> > > I am trying to find the cause but I was not able to do it.
> 
> 
> 
> --
> 
> 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 clojurescrip...@googlegroups.com.
> 
> To post to this group, send email to clojur...@googlegroups.com.
> 
> Visit this group at http://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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread David Nolen
Ah ok, yes I suspect Weasel will need updating for ClojureScript 0.0-2727
and is likely the source of the issues on this thread.

I highly recommend learning how to use the built-in ClojureScript REPLs
directly in order more quickly isolate REPL related issues.

David

On Tue, Jan 27, 2015 at 8:40 AM, Antonin Hildebrand <
antonin.hildebr...@gmail.com> wrote:

> Weasel calling cljs.repl/analyze-source is throwing in my case. I didn't
> solve the cause, but I hacked a way around the problem in my local version
> of weasel:
>
> https://github.com/darwin/weasel/commit/c2b5b963bcf10a7c341a4cbc8f21121d3adef6b0
>
> I have updated the gist with more info:
> https://gist.github.com/darwin/523ee0a1bc6e512fa27d
>
> I cannot reason about these issues. But with Om 0.8.1 it worked for me.
>
> btw. full project is available here:
> https://github.com/darwin/flense-nw/tree/weasel-repl
>
> I don't expect more help here because this is probably an issue on Weasel
> side:
> https://github.com/tomjakubowski/weasel/issues/41 (and others)
>
> Thanks for you patience.
>
>
> On Tuesday, January 27, 2015 at 2:18:42 PM UTC+1, David Nolen wrote:
> > This isn't very useful without seeing the contents your project.clj or
> the output of `lein deps :tree`.
> >
> >
> > This goes for everyone having trouble on this thread.
> >
> >
> >
> > David
> >
> >
> > On Tue, Jan 27, 2015 at 7:17 AM, Antonin Hildebrand <
> antonin.h...@gmail.com> wrote:
> > I have just double-checked my local maven repo:
> >
> >
> >
> > https://gist.github.com/darwin/523ee0a1bc6e512fa27d
> >
> >
> >
> > cljsjs.react is not present
> >
> >
> >
> >
> >
> >
> >
> > On Tuesday, January 27, 2015 at 1:12:19 PM UTC+1, Antonin Hildebrand
> wrote:
> >
> > > > ExceptionInfo No such namespace: cljsjs.react
> >
> > > I have the same issue with 0.8.6 and I can confirm removing piggieback
> does not solve the problem.
> >
> > >
> >
> > > I'm new to Clojure/ClojureScript. But my guess is that this problem
> arises when om is required by some code running in "clj" context. My app
> compiles and runs fine. But not when I try to enter 'lein repl'. REPL
> starts in "clj" mode, I enter some piggieback commands and it tries to
> bootstrap cljs contex and establish a browser connection. I think the
> problem is in that boostrap phase, when om gets somehow included in clj
> context and tries to require cljsjs.react which is not on classpath. There
> is no jar for that.
> >
> > >
> >
> > > Unfortunately I was unable to dig deeper. Still don't know how get
> more verbose information about the situation.
> >
> > >
> >
> > > Antonin
> >
> > >
> >
> > > On Tuesday, January 27, 2015 at 5:16:52 AM UTC+1, Makoto H. wrote:
> >
> > > > Hi,
> >
> > > >
> >
> > > > I tried the 0.8.6 but I faced another error.
> >
> > > >
> >
> > > > ExceptionInfo No such namespace: cljsjs.react at line 1
> file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs
> clojure.core/ex-info (core.clj:4403)
> >
> > > >
> >
> > > > I am trying to find the cause but I was not able to do it.
> >
> >
> >
> > --
> >
> > 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 clojurescrip...@googlegroups.com.
> >
> > To post to this group, send email to clojur...@googlegroups.com.
> >
> > Visit this group at http://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 http://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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread David Nolen
Instructions on running the built-in ClojureScript REPLs is covered here
https://github.com/clojure/clojurescript/wiki/Running-REPLs.

On Tue, Jan 27, 2015 at 8:50 AM, David Nolen  wrote:

> Ah ok, yes I suspect Weasel will need updating for ClojureScript 0.0-2727
> and is likely the source of the issues on this thread.
>
> I highly recommend learning how to use the built-in ClojureScript REPLs
> directly in order more quickly isolate REPL related issues.
>
> David
>
> On Tue, Jan 27, 2015 at 8:40 AM, Antonin Hildebrand <
> antonin.hildebr...@gmail.com> wrote:
>
>> Weasel calling cljs.repl/analyze-source is throwing in my case. I didn't
>> solve the cause, but I hacked a way around the problem in my local version
>> of weasel:
>>
>> https://github.com/darwin/weasel/commit/c2b5b963bcf10a7c341a4cbc8f21121d3adef6b0
>>
>> I have updated the gist with more info:
>> https://gist.github.com/darwin/523ee0a1bc6e512fa27d
>>
>> I cannot reason about these issues. But with Om 0.8.1 it worked for me.
>>
>> btw. full project is available here:
>> https://github.com/darwin/flense-nw/tree/weasel-repl
>>
>> I don't expect more help here because this is probably an issue on Weasel
>> side:
>> https://github.com/tomjakubowski/weasel/issues/41 (and others)
>>
>> Thanks for you patience.
>>
>>
>> On Tuesday, January 27, 2015 at 2:18:42 PM UTC+1, David Nolen wrote:
>> > This isn't very useful without seeing the contents your project.clj or
>> the output of `lein deps :tree`.
>> >
>> >
>> > This goes for everyone having trouble on this thread.
>> >
>> >
>> >
>> > David
>> >
>> >
>> > On Tue, Jan 27, 2015 at 7:17 AM, Antonin Hildebrand <
>> antonin.h...@gmail.com> wrote:
>> > I have just double-checked my local maven repo:
>> >
>> >
>> >
>> > https://gist.github.com/darwin/523ee0a1bc6e512fa27d
>> >
>> >
>> >
>> > cljsjs.react is not present
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Tuesday, January 27, 2015 at 1:12:19 PM UTC+1, Antonin Hildebrand
>> wrote:
>> >
>> > > > ExceptionInfo No such namespace: cljsjs.react
>> >
>> > > I have the same issue with 0.8.6 and I can confirm removing
>> piggieback does not solve the problem.
>> >
>> > >
>> >
>> > > I'm new to Clojure/ClojureScript. But my guess is that this problem
>> arises when om is required by some code running in "clj" context. My app
>> compiles and runs fine. But not when I try to enter 'lein repl'. REPL
>> starts in "clj" mode, I enter some piggieback commands and it tries to
>> bootstrap cljs contex and establish a browser connection. I think the
>> problem is in that boostrap phase, when om gets somehow included in clj
>> context and tries to require cljsjs.react which is not on classpath. There
>> is no jar for that.
>> >
>> > >
>> >
>> > > Unfortunately I was unable to dig deeper. Still don't know how get
>> more verbose information about the situation.
>> >
>> > >
>> >
>> > > Antonin
>> >
>> > >
>> >
>> > > On Tuesday, January 27, 2015 at 5:16:52 AM UTC+1, Makoto H. wrote:
>> >
>> > > > Hi,
>> >
>> > > >
>> >
>> > > > I tried the 0.8.6 but I faced another error.
>> >
>> > > >
>> >
>> > > > ExceptionInfo No such namespace: cljsjs.react at line 1
>> file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs
>> clojure.core/ex-info (core.clj:4403)
>> >
>> > > >
>> >
>> > > > I am trying to find the cause but I was not able to do it.
>> >
>> >
>> >
>> > --
>> >
>> > 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 clojurescrip...@googlegroups.com.
>> >
>> > To post to this group, send email to clojur...@googlegroups.com.
>> >
>> > Visit this group at http://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 http://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 http://groups.google.com/group/clojurescript.


[ClojureScript] CLJS keyword equality - across frames

2015-01-27 Thread Dave Sann
This is most likely related to 

https://groups.google.com/d/msg/clojurescript/bSFK6CEE3PE/nIoD11yjK_YJ


I have a situation where I need to run some code in a separate frame. I have to 
do this because some of the (external) code I use takes control of the page in 
a way I don't want - but does work I do want. I own the frame so I can call 
functions directly from the parent there.

The same js code is loaded in to the parent and frame (can cache the file).

A problem that I have run into is that keyword equality is no longer preserved 
with data passed across the frame boundary. I expect because of the deftype and 
some underlying comparison on objects from different contexts. (I looked at the 
data in the keyword objects and they appear the same).

The issue really comes out in map lookups which obviously return nil.

I can think of a few solutions to this but am looking for any input.

Options:
1. don't use keywords in cross frame data. somewhat limiting and impacts data 
produced by libraries.

2. encode in the parent (e.g. transit) and decode in the frame. This works but 
incurs overhead just for keyword translation - that will increase with data 
size. (interestingly transit will throw an error if you try to encode or decode 
data from another frame - I got "error can't write").

3. figure out a way to effectively execute  code from the parent only (ensuring 
all keywords are from the same source) - maybe possible - but I think this can 
cause trouble with DOM element creation in some cases - I ran into something 
here a long time ago. It may also mean that the working environment/context of 
the code is possibly harder to manage/reason about.

4. fix in cljs - but would probably result in slower general keyword 
comparison. (this may not be a generally applied thing - but might be a 
compiler option - for those special cases).


If js workers ever allow passing of objects and not only strings - this might 
impact there also.

Any thoughts welcome.

Thanks

Dave

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] CLJS keyword equality - across frames

2015-01-27 Thread David Nolen
The multiple JS Context problem is pretty much the same as the multiple
class loader problem in Java.

We're not going to do anything about it in ClojureScript itself.

David

On Tue, Jan 27, 2015 at 9:01 AM, Dave Sann  wrote:

> This is most likely related to
>
> https://groups.google.com/d/msg/clojurescript/bSFK6CEE3PE/nIoD11yjK_YJ
>
>
> I have a situation where I need to run some code in a separate frame. I
> have to do this because some of the (external) code I use takes control of
> the page in a way I don't want - but does work I do want. I own the frame
> so I can call functions directly from the parent there.
>
> The same js code is loaded in to the parent and frame (can cache the file).
>
> A problem that I have run into is that keyword equality is no longer
> preserved with data passed across the frame boundary. I expect because of
> the deftype and some underlying comparison on objects from different
> contexts. (I looked at the data in the keyword objects and they appear the
> same).
>
> The issue really comes out in map lookups which obviously return nil.
>
> I can think of a few solutions to this but am looking for any input.
>
> Options:
> 1. don't use keywords in cross frame data. somewhat limiting and impacts
> data produced by libraries.
>
> 2. encode in the parent (e.g. transit) and decode in the frame. This works
> but incurs overhead just for keyword translation - that will increase with
> data size. (interestingly transit will throw an error if you try to encode
> or decode data from another frame - I got "error can't write").
>
> 3. figure out a way to effectively execute  code from the parent only
> (ensuring all keywords are from the same source) - maybe possible - but I
> think this can cause trouble with DOM element creation in some cases - I
> ran into something here a long time ago. It may also mean that the working
> environment/context of the code is possibly harder to manage/reason about.
>
> 4. fix in cljs - but would probably result in slower general keyword
> comparison. (this may not be a generally applied thing - but might be a
> compiler option - for those special cases).
>
>
> If js workers ever allow passing of objects and not only strings - this
> might impact there also.
>
> Any thoughts welcome.
>
> Thanks
>
> Dave
>
> --
> 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 http://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 http://groups.google.com/group/clojurescript.


[ClojureScript] Om/angular probleme routing

2015-01-27 Thread Raphael Boukara
Hello guys,
I have a simple web app with om and angular. On route www.example.com/#myroute, 
I reach the angular controller "mycontroller" that contain my om/root function. 
Problem: On refresh my om element is rendering on the page but when I am going 
to my url from link in the angular app I don't have anything from om on the 
screen :(
Please hel

-- 
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 http://groups.google.com/group/clojurescript.


[ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread Olav Nymoen
Just testing clojurescript out so many possible pitfalls on my side here.

Does the new javascript externals stuff break lighttables live external browser 
functionality?

Following the basic intro tutorial I cannot get live updates to work. The 
mies-om om-tut is based on 0.8.4 , and it cannot reference com.facebook.react, 
while 0.8.6 cannot find cljsjs.react.

It compiles nicely with lein, but I can't seem to get the lighttable live REPL 
stuff to work.

Olav

On Tuesday, January 27, 2015 at 1:57:19 AM UTC+1, David Nolen wrote:
> The only significant change is that Om now relies on the cljsjs.react 
> artifact instead of the one I maintained myself. cljsjs.react has the benefit 
> that usage of React with addons instead of plain React may be configured via 
> Maven in your pom.xml or your project.clj. It's exciting to see that we are 
> already reaping the benefits of :foreign-libs and Maven over existing 
> JavaScript solutions for managing dependencies.
> 
> 
> This release also includes a fix for a very subtle set-state! bug discovered 
> by Brenton Ashworth.
> 
> 
> 
> Feedback welcome!
> 
> 
> https://github.com/swannodette/om
> 
> 
> 
> David

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread David Nolen
I think expecting every last thing to work especially from third parties
who may be wisely lagging behind is unlikely at least for the near future.

I haven't kept up with Light Table and what issues it may have. Now is
probably a good time to remove the Light Table centric nature of the Om
tutorials and switch to a Figwheel based thing that doesn't require
anything more than your text editor of choice.

The wiki has always been community editable and I would love to see people
push it forward especially with stuff like this. I will have less time for
such things as I focus more on Om core and ClojureScript enhancements.

David

On Tue, Jan 27, 2015 at 10:46 AM, Olav Nymoen  wrote:

> Just testing clojurescript out so many possible pitfalls on my side here.
>
> Does the new javascript externals stuff break lighttables live external
> browser functionality?
>
> Following the basic intro tutorial I cannot get live updates to work. The
> mies-om om-tut is based on 0.8.4 , and it cannot reference
> com.facebook.react, while 0.8.6 cannot find cljsjs.react.
>
> It compiles nicely with lein, but I can't seem to get the lighttable live
> REPL stuff to work.
>
> Olav
>
> On Tuesday, January 27, 2015 at 1:57:19 AM UTC+1, David Nolen wrote:
> > The only significant change is that Om now relies on the cljsjs.react
> artifact instead of the one I maintained myself. cljsjs.react has the
> benefit that usage of React with addons instead of plain React may be
> configured via Maven in your pom.xml or your project.clj. It's exciting to
> see that we are already reaping the benefits of :foreign-libs and Maven
> over existing JavaScript solutions for managing dependencies.
> >
> >
> > This release also includes a fix for a very subtle set-state! bug
> discovered by Brenton Ashworth.
> >
> >
> >
> > Feedback welcome!
> >
> >
> > https://github.com/swannodette/om
> >
> >
> >
> > David
>
> --
> 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 http://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 http://groups.google.com/group/clojurescript.


[ClojureScript] Self-hosting ClojureScript -- how far away is it, and how can I help?

2015-01-27 Thread Adam Avramov
Hey folks :)

I see the development of ClojureScript is progressing at a steady pace, however 
the coveted self-hosted compiler seems to remain as mythical a beast as always. 
Long story short, I honestly can't wait any longer.

I beg you, good people, be so kind as to point me towards any areas where I can 
help make it happen. I know a fair deal of JavaScript (browser and Node.js) and 
Python, but I can even get up to speed with Java if need be. Give me 
directions, tickets, areas of interest, people I should pester, anything. I 
just need a robust Lisp on Node.js so I can do magic with it.

I did try going with the old CLJS-on-CLJS repo from 2013, and played with it 
quite intently for a while until inevitably hitting a wall -- here's half a 
thing I built before I ran into the incompleteness of that runtime: 
https://github.com/egasimus/cljs-audio-experiments

Cheers,
Adam

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Self-hosting ClojureScript -- how far away is it, and how can I help?

2015-01-27 Thread David Nolen
https://github.com/clojure/clojurescript/wiki/Bootstrapping-the-Compiler

Some people are already working on tools.reader. Feature expression like
functionality is underway for 1.7.0.

If you want to help now is good time to start reading the source of the
ClojureScript compiler :)

David

On Tue, Jan 27, 2015 at 11:33 AM, Adam Avramov 
wrote:

> Hey folks :)
>
> I see the development of ClojureScript is progressing at a steady pace,
> however the coveted self-hosted compiler seems to remain as mythical a
> beast as always. Long story short, I honestly can't wait any longer.
>
> I beg you, good people, be so kind as to point me towards any areas where
> I can help make it happen. I know a fair deal of JavaScript (browser and
> Node.js) and Python, but I can even get up to speed with Java if need be.
> Give me directions, tickets, areas of interest, people I should pester,
> anything. I just need a robust Lisp on Node.js so I can do magic with it.
>
> I did try going with the old CLJS-on-CLJS repo from 2013, and played with
> it quite intently for a while until inevitably hitting a wall -- here's
> half a thing I built before I ran into the incompleteness of that runtime:
> https://github.com/egasimus/cljs-audio-experiments
>
> Cheers,
> Adam
>
> --
> 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 http://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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Self-hosting ClojureScript -- how far away is it, and how can I help?

2015-01-27 Thread Francis Avila
And as I said in reply to your other post 
https://groups.google.com/d/msg/clojure/gNPUmCNHrKg/ySLU8iDf6WwJ if you really 
need a self-hosted lisp on node.js *today* there's always WISP.

https://github.com/Gozala/wisp
http://jeditoolkit.com/try-wisp/

The biggest thing you give up is clojure's data structures but you can regain 
those through mori or immutable-js.


On Tuesday, January 27, 2015 at 10:37:22 AM UTC-6, David Nolen wrote:
> https://github.com/clojure/clojurescript/wiki/Bootstrapping-the-Compiler
> 
> 
> 
> Some people are already working on tools.reader. Feature expression like 
> functionality is underway for 1.7.0.
> 
> 
> If you want to help now is good time to start reading the source of the 
> ClojureScript compiler :)
> 
> 
> David
> 
> 
> On Tue, Jan 27, 2015 at 11:33 AM, Adam Avramov  wrote:
> Hey folks :)
> 
> 
> 
> I see the development of ClojureScript is progressing at a steady pace, 
> however the coveted self-hosted compiler seems to remain as mythical a beast 
> as always. Long story short, I honestly can't wait any longer.
> 
> 
> 
> I beg you, good people, be so kind as to point me towards any areas where I 
> can help make it happen. I know a fair deal of JavaScript (browser and 
> Node.js) and Python, but I can even get up to speed with Java if need be. 
> Give me directions, tickets, areas of interest, people I should pester, 
> anything. I just need a robust Lisp on Node.js so I can do magic with it.
> 
> 
> 
> I did try going with the old CLJS-on-CLJS repo from 2013, and played with it 
> quite intently for a while until inevitably hitting a wall -- here's half a 
> thing I built before I ran into the incompleteness of that runtime: 
> https://github.com/egasimus/cljs-audio-experiments
> 
> 
> 
> Cheers,
> 
> Adam
> 
> 
> 
> --
> 
> 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 clojurescrip...@googlegroups.com.
> 
> To post to this group, send email to clojur...@googlegroups.com.
> 
> Visit this group at http://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 http://groups.google.com/group/clojurescript.


[ClojureScript] Re: How do we do authentification in a Om app?

2015-01-27 Thread Leon Talbot
Le lundi 26 janvier 2015 13:20:36 UTC-5, Leon Talbot a écrit :
> Le dimanche 25 janvier 2015 21:14:35 UTC-5, Leon Talbot a écrit :
> > Le samedi 24 janvier 2015 14:49:49 UTC-5, Mike Haney a écrit :
> > > Yes, Sean has switched to Reagent and has been very active in its recent 
> > > development.  I also use Reagent most of the time, as well as a newer 
> > > library called Rum that I find quite interesting. 
> > 
> > Rum looks really cool!
> > 
> > > You've inspired me to put together a demo app using Firebase, including 
> > > authentication.  It will use Reagent, because that's the quickest and 
> > > most comfortable for me, but I'll keep the UI simple enough that it 
> > > should be easy to adapt it to Om.  Even if you don't use Firebase, 
> > > hopefully it will give you a general idea of how to handle authentication 
> > > on the client side.  I'll work on it this weekend and post as soon as 
> > > it's ready.
> > 
> > This is AWESOME! Thanks so much! Will probably use Firebase!
> 
> @Mike, 
> I just found out this Reagent-Firebase example. 
> https://github.com/hzhu/reagent-firebase
> 
> No auth though.

Sorry to bother again @Mike. I read your recent comments in Rum annoncement. 
Would you prefer to build the example using Rum? I'd be up for trying it out.

Léon

-- 
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 http://groups.google.com/group/clojurescript.


[ClojureScript] Re: How do we do authentification in a Om app?

2015-01-27 Thread Mike Haney
I might do that, since I promised some examples of Rum I might as well knock 
out both.

Hang in there just a little longer - I'm between jobs right now and I've been 
busy getting out resumes.  After I get them out to all the companies on my 
list, I will be focusing on demo apps.

-- 
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 http://groups.google.com/group/clojurescript.


[ClojureScript] Re: How do we do authentification in a Om app?

2015-01-27 Thread Mike Haney
I have a question for you (or anyone else):

I have a lot of demo code I would like to share from my last project, and 
permission to do so minus certain proprietary bits.  I see 2 main ways of 
sharing the code:

1) extract several demo apps, removing the proprietary info and maybe 
simplifying them somewhat to focus on a particular topic, like Datomic, Reagent 
vs. Om, Sente, Firebase, Cordova, etc.

2) creating a series of tutorials to build these apps up step by step, or maybe 
combining it all into a single app we build towards, which would be a simpler 
version of the app I worked on.

I keep going back and forth on which approach would provide more value to the 
community and people trying to learn Clojure or at least particular aspects of 
it.  So I figured I would ask my "customers" what they wanted.

So which approach would you find more useful?

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] How do you / would you like to "test"?

2015-01-27 Thread Colin Fleming
Hi Thomas,

For what it's worth, I'm planning to add support for cljs.test to Cursive
soon, so then your workflow can be identical to Clojure. The basic model
(run one test, fix it, move on, occasionally running all) is also what I do
in Clojure.

Cheers,
Colin

On 27 January 2015 at 23:42, Thomas Heller  wrote:

> Hello everyone,
>
> I recently started working in adding support for testing in shadow-build.
> I have my own testing workflow but wanted to ask how everyone else does it?
> ClojureScript AND Clojure because I'd like them to be as close as possible.
>
> My CLJ workflow is opening a REPL and use "Run test under Caret" and
> "Re-run last test action" via Cursive (cider before that) until that works
> and then continue with the next test. Occasionally running all tests.
>
> For CLJS I basically have no tests but my goal is to get to the exact same
> workflow as in CLJ. It might need some adjustments due to the nature of
> browsers, also there are some parts that can be tested via node and
> wouldn't need a browser.
>
> So far I have the ability to execute all tests or watch files for changes
> and then execute only those affected by the changed files. I identify a
> test by looking at the :require of the ns form. If cljs.test is in there it
> is a test. Currently that only works with node, although a
> phantomjs/slimerjs test "runner" should be pretty simple. Do you guys do
> anything special in the html file associated with those or just boilerplate?
>
> Would appreciate some examples of other testing workflows.
>
> Thanks,
> /thomas
>
> --
> 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 http://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 http://groups.google.com/group/clojurescript.


[ClojureScript] cljs + om (transactable? cursor)

2015-01-27 Thread isaiah perumalla
hi all
i am fairly new to cljs and om
one of the values in my app state is a lazy-seq , however when i update the 
cursor to this state using om/transact! state (fn [s] (rest s)) 
i get the following error
Assert failed: (transactable? cursor)

if i convert to a seq   (seq my-lazyseq) then it works fine. 
any ideas why this is the case ?

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread Daniel Kersten
A figwheel-based tutorial would be fantastic.

I don't have an awful lot of time to convert it right now, but if nobody
does before I do get time, I'll happily take a stab at it. Will likely be a
month or two though.

On 27 January 2015 at 16:24, David Nolen  wrote:

> I think expecting every last thing to work especially from third parties
> who may be wisely lagging behind is unlikely at least for the near future.
>
> I haven't kept up with Light Table and what issues it may have. Now is
> probably a good time to remove the Light Table centric nature of the Om
> tutorials and switch to a Figwheel based thing that doesn't require
> anything more than your text editor of choice.
>
> The wiki has always been community editable and I would love to see people
> push it forward especially with stuff like this. I will have less time for
> such things as I focus more on Om core and ClojureScript enhancements.
>
> David
>
> On Tue, Jan 27, 2015 at 10:46 AM, Olav Nymoen  wrote:
>
>> Just testing clojurescript out so many possible pitfalls on my side here.
>>
>> Does the new javascript externals stuff break lighttables live external
>> browser functionality?
>>
>> Following the basic intro tutorial I cannot get live updates to work. The
>> mies-om om-tut is based on 0.8.4 , and it cannot reference
>> com.facebook.react, while 0.8.6 cannot find cljsjs.react.
>>
>> It compiles nicely with lein, but I can't seem to get the lighttable live
>> REPL stuff to work.
>>
>> Olav
>>
>> On Tuesday, January 27, 2015 at 1:57:19 AM UTC+1, David Nolen wrote:
>> > The only significant change is that Om now relies on the cljsjs.react
>> artifact instead of the one I maintained myself. cljsjs.react has the
>> benefit that usage of React with addons instead of plain React may be
>> configured via Maven in your pom.xml or your project.clj. It's exciting to
>> see that we are already reaping the benefits of :foreign-libs and Maven
>> over existing JavaScript solutions for managing dependencies.
>> >
>> >
>> > This release also includes a fix for a very subtle set-state! bug
>> discovered by Brenton Ashworth.
>> >
>> >
>> >
>> > Feedback welcome!
>> >
>> >
>> > https://github.com/swannodette/om
>> >
>> >
>> >
>> > David
>>
>> --
>> 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 http://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 http://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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread Oliver George
FWIW I found LightTable and chestnut can play nicely.

On Wed, Jan 28, 2015 at 10:46 AM, Daniel Kersten  wrote:

> A figwheel-based tutorial would be fantastic.
>
> I don't have an awful lot of time to convert it right now, but if nobody
> does before I do get time, I'll happily take a stab at it. Will likely be a
> month or two though.
>
> On 27 January 2015 at 16:24, David Nolen  wrote:
>
>> I think expecting every last thing to work especially from third parties
>> who may be wisely lagging behind is unlikely at least for the near future.
>>
>> I haven't kept up with Light Table and what issues it may have. Now is
>> probably a good time to remove the Light Table centric nature of the Om
>> tutorials and switch to a Figwheel based thing that doesn't require
>> anything more than your text editor of choice.
>>
>> The wiki has always been community editable and I would love to see
>> people push it forward especially with stuff like this. I will have less
>> time for such things as I focus more on Om core and ClojureScript
>> enhancements.
>>
>> David
>>
>> On Tue, Jan 27, 2015 at 10:46 AM, Olav Nymoen  wrote:
>>
>>> Just testing clojurescript out so many possible pitfalls on my side here.
>>>
>>> Does the new javascript externals stuff break lighttables live external
>>> browser functionality?
>>>
>>> Following the basic intro tutorial I cannot get live updates to work.
>>> The mies-om om-tut is based on 0.8.4 , and it cannot reference
>>> com.facebook.react, while 0.8.6 cannot find cljsjs.react.
>>>
>>> It compiles nicely with lein, but I can't seem to get the lighttable
>>> live REPL stuff to work.
>>>
>>> Olav
>>>
>>> On Tuesday, January 27, 2015 at 1:57:19 AM UTC+1, David Nolen wrote:
>>> > The only significant change is that Om now relies on the cljsjs.react
>>> artifact instead of the one I maintained myself. cljsjs.react has the
>>> benefit that usage of React with addons instead of plain React may be
>>> configured via Maven in your pom.xml or your project.clj. It's exciting to
>>> see that we are already reaping the benefits of :foreign-libs and Maven
>>> over existing JavaScript solutions for managing dependencies.
>>> >
>>> >
>>> > This release also includes a fix for a very subtle set-state! bug
>>> discovered by Brenton Ashworth.
>>> >
>>> >
>>> >
>>> > Feedback welcome!
>>> >
>>> >
>>> > https://github.com/swannodette/om
>>> >
>>> >
>>> >
>>> > David
>>>
>>> --
>>> 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 http://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 http://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 http://groups.google.com/group/clojurescript.
>



-- 
Oliver George
Director, Condense
0428 740 978

-- 
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 http://groups.google.com/group/clojurescript.


[ClojureScript] Re: cljs + om (transactable? cursor)

2015-01-27 Thread Leon Grapenthin
On Tuesday, January 27, 2015 at 11:30:22 PM UTC+1, isaiah perumalla wrote:
> hi all
> i am fairly new to cljs and om
> one of the values in my app state is a lazy-seq , however when i update the 
> cursor to this state using om/transact! state (fn [s] (rest s)) 
> i get the following error
> Assert failed: (transactable? cursor)
> 
> if i convert to a seq   (seq my-lazyseq) then it works fine. 
> any ideas why this is the case ?

AFAIK only vectors and maps are supported as cursors. It should work with korks 
though, e. g. (om/transact! thing-with-state :path-to-state rest)

-- 
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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Self-hosting ClojureScript -- how far away is it, and how can I help?

2015-01-27 Thread Ken Restivo
How will Closure Advanced compilation work without a JVM?

On Tue, Jan 27, 2015 at 11:37:19AM -0500, David Nolen wrote:
> https://github.com/clojure/clojurescript/wiki/Bootstrapping-the-Compiler
> 
> Some people are already working on tools.reader. Feature expression like
> functionality is underway for 1.7.0.
> 
> If you want to help now is good time to start reading the source of the
> ClojureScript compiler :)
> 
> David
> 
> On Tue, Jan 27, 2015 at 11:33 AM, Adam Avramov 
> wrote:
> 
> > Hey folks :)
> >
> > I see the development of ClojureScript is progressing at a steady pace,
> > however the coveted self-hosted compiler seems to remain as mythical a
> > beast as always. Long story short, I honestly can't wait any longer.
> >
> > I beg you, good people, be so kind as to point me towards any areas where
> > I can help make it happen. I know a fair deal of JavaScript (browser and
> > Node.js) and Python, but I can even get up to speed with Java if need be.
> > Give me directions, tickets, areas of interest, people I should pester,
> > anything. I just need a robust Lisp on Node.js so I can do magic with it.
> >
> > I did try going with the old CLJS-on-CLJS repo from 2013, and played with
> > it quite intently for a while until inevitably hitting a wall -- here's
> > half a thing I built before I ran into the incompleteness of that runtime:
> > https://github.com/egasimus/cljs-audio-experiments
> >
> > Cheers,
> > Adam
> >
> > --
> > 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 http://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 http://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 http://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: How do we do authentification in a Om app?

2015-01-27 Thread Leon Talbot
First, thanks so much for doing this!

I suspect building a series of tutorial takes more time but if you can
spend that time, gives more value to the community (at least for the
beginners).

Le mar 27 janv. 2015 2:48 PM, Mike Haney  a écrit :

> I have a question for you (or anyone else):
>
> I have a lot of demo code I would like to share from my last project, and
> permission to do so minus certain proprietary bits.  I see 2 main ways of
> sharing the code:
>
> 1) extract several demo apps, removing the proprietary info and maybe
> simplifying them somewhat to focus on a particular topic, like Datomic,
> Reagent vs. Om, Sente, Firebase, Cordova, etc.
>
> 2) creating a series of tutorials to build these apps up step by step, or
> maybe combining it all into a single app we build towards, which would be a
> simpler version of the app I worked on.
>
> I keep going back and forth on which approach would provide more value to
> the community and people trying to learn Clojure or at least particular
> aspects of it.  So I figured I would ask my "customers" what they wanted.
>
> So which approach would you find more useful?
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/clojurescript/7yxB6n7OGHo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at http://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 http://groups.google.com/group/clojurescript.


[ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread David Nolen
Just released Om 0.8.7. The only change was bumping the cljsjs.react
dependency to get proper externs support.

David

On Mon, Jan 26, 2015 at 7:57 PM, David Nolen  wrote:

> The only significant change is that Om now relies on the cljsjs.react
> artifact instead of the one I maintained myself. cljsjs.react has the
> benefit that usage of React with addons instead of plain React may be
> configured via Maven in your pom.xml or your project.clj. It's exciting to
> see that we are already reaping the benefits of :foreign-libs and Maven
> over existing JavaScript solutions for managing dependencies.
>
> This release also includes a fix for a very subtle set-state! bug
> discovered by Brenton Ashworth.
>
> Feedback welcome!
>
> https://github.com/swannodette/om
>
> David
>

-- 
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 http://groups.google.com/group/clojurescript.


[ClojureScript] Working with createjs

2015-01-27 Thread C K Kashyap
Hi all,
A friend of mine is writing a game with createjs (seems like an interesting
javascript library for games - includes audio - http://www.createjs.com/).
I suggested to him about using clojurescript and pointed to a couple of
David Nolen videos - he's onboard.

I just wanted to double check with the group if there is any advice/caution
that I need to keep in mind.

Regards,
Kashyap

-- 
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 http://groups.google.com/group/clojurescript.