[ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread Thomas Heller
Hey, I figured it out. Fun puzzle. ;) As expected core.async is not the real villain here, the behavior sure is odd but I'm not sure it is a bug. The issue is that {:name test} inside a go block always gets turned into a hash-map, while outside the better option array-map is chosen by the

[ClojureScript] Re: Om's implementation of om.core/state

2014-12-25 Thread Leon Grapenthin
It returns the underlying atom. The only use I can currently think of is when you are operating with a cursor outside of the render loop and want to pull a new cursor at a path that was nil at the time the cursor was obtained. E. g.: (def test-cursor (om/root-cursor app-state)) ;; app-state is

Re: [ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread David Nolen
I would actually consider this a core.async defect - the interpretation of literals should not be different in go blocks. I would open a core.async issue with all the details of this thread summarized. David On Thu, Dec 25, 2014 at 12:14 PM, Sven Richter sver...@googlemail.com wrote: Hi Thomas,

[ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread Thomas Heller
I'd imagine it becomes even less obvious once you start using your app and at some point assoc into an array-map, getting over the threshold and turning the result into a hash-map. I'd imagine that would be really hard to track down. Anyways, sorted-set seems to have all sorts of caveats. So

Re: [ClojureScript] Re: How to catch exceptions that occur inside a go block

2014-12-25 Thread Yehonathan Sharvit
I like it Elyahou. Thanks -- 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

[ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread Sven Richter
Hi, while I was preparing the bug report Captaion Obvious hit me again. This also occurs in clojure: As Thomas said, this is enough to reproduce it: (def a (atom #{})) (reset! a (into (sorted-set) [{:name foo}])) (swap! a conj {:name bar}) - java.lang.ClassCastException:

Re: [ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread David Nolen
Seems like a separate issue to me. David On Thu, Dec 25, 2014 at 3:25 PM, Sven Richter sver...@googlemail.com wrote: Hi, while I was preparing the bug report Captaion Obvious hit me again. This also occurs in clojure: As Thomas said, this is enough to reproduce it: (def a (atom #{}))

Re: [ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread Tom Jack
Maps aren't comparable, so they don't make sense with sorted-set. This is not a bug. On Dec 25, 2014 12:25 PM, Sven Richter sver...@googlemail.com wrote: Hi, while I was preparing the bug report Captaion Obvious hit me again. This also occurs in clojure: As Thomas said, this is enough to

[ClojureScript] Re: Getting started with cljs.test

2014-12-25 Thread Yehonathan Sharvit
Hello Andrew, I'd like to be able to run my cljs test on a continuous integration server. For that purpose. I need to get a proper exit code from lein cljsbuild once test With your tutorial, lein cljsbuild once test always return 0. Is there a way to make the build fail when the tests fail?

Re: [ClojureScript] Re: Being productive with clojurescript

2014-12-25 Thread pandeiro
Hi Arnaud, I feel your pain. I've been developing with cljs nearly from the beginning (though as a newbie to Clojure) and the road has been bumpy but plenty rewarding. My advice is to stay at it; your flow will improve and the language and tooling have been improving a lot, too. I'll speak to