[ClojureScript] Re: hash equality between Clojure and ClojureScript

2015-04-21 Thread Peter Taoussanis
Thanks Herwig, Francis - appreciate the assistance! -- 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

Re: [ClojureScript] Re: re-frame - handling default values

2015-04-21 Thread Colin Yates
Hi Mike - yeah, reading through I wasn't very clear. Let me try again with a more fleshed out example: On the server there is a hierarchy, each node in that hierarchy may contain some meta data for example: :id - the unique id of the node :type - indicating some semantics about that particular

Re: [ClojureScript] Re: re-frame - handling default values

2015-04-21 Thread Mike Thompson
On Tuesday, April 21, 2015 at 10:58:31 PM UTC+10, Colin Yates wrote: Hi Mike - yeah, reading through I wasn't very clear. Let me try again with a more fleshed out example: On the server there is a hierarchy, each node in that hierarchy may contain some meta data for example: :id - the

[ClojureScript] compilation warning when calling satisfies? inside a go block

2015-04-21 Thread Yehonathan Sharvit
This piece of code is causing the following compilation warning: (defprotocol a) (defrecord b []) (go (satisfies? a (b.))) WARNING: Use of undeclared Var cljs-explore.me/bit__4884__auto__ at line 12 src/cljs_explore/me.cljs -- Note that posts from new members are moderated - please be

Re: [ClojureScript] compilation warning when calling satisfies? inside a go block

2015-04-21 Thread David Nolen
File a bug with core.async, thanks. David On Tuesday, April 21, 2015, Yehonathan Sharvit vie...@gmail.com wrote: This piece of code is causing the following compilation warning: (defprotocol a) (defrecord b []) (go (satisfies? a (b.))) WARNING: Use of undeclared Var

Re: [ClojureScript] Re: freactive vs rum

2015-04-21 Thread Kurt Sys
Just to be sure I get it right... What I do now, with datascript is also 'one way': all events are put on an core/async channel (well, publisher, actually). The subscribers change datascript-values. Any changes in the database trigger an update of the view: (defonce init (fn []

Re: [ClojureScript] Re: hash equality between Clojure and ClojureScript

2015-04-21 Thread Christian Weilbach
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20.04.2015 20:02, Francis Avila wrote: There's no contract, but strings, keywords, and symbols should hash the same, and collections of these (vectors, lists, maps, sets) should hash the same. It's difficult to hash numbers the same between

[ClojureScript] Very slow Clojurescript build

2015-04-21 Thread Harri Ohra-aho
Hi, Our project's build has recently got extremely slow if started from a clean state. The build time currently is close to two hours. The build always seems to hang here: Analyzing jar:file:/Users/ohra/.m2/repository/reagent/reagent/0.5.0/reagent0.5.0.jar!/reagent/debug.cljs Compiling

Re: [ClojureScript] autocomplete/typeahead in Reagent/re-frame

2015-04-21 Thread Jamie Orchard-Hays
Thanks for all the suggestions, y'all. I spent a few hours on the weekend and Monday prototyping what effort it would take to create my own. Too much given the many hats I'm wearing and current workload. I was able to get typeahead working in it. I had been using this with a regular React

Re: [ClojureScript] Re: re-frame - handling default values

2015-04-21 Thread Colin Yates
Yes, that is a valid reduction. Specifically my register-handler, which only has access to db needs to know the result of f. The general principle of having my register-sub delegating to a defn which is called from the register-handler is causing the pain because there is actually a hierarchy of

Re: [ClojureScript] compilation warning when calling satisfies? inside a go block

2015-04-21 Thread Yehonathan Sharvit
I’ve opened a bug: http://dev.clojure.org/jira/browse/ASYNC-121 On Tue, Apr 21, 2015 at 1:02 PM, David Nolen dnolen.li...@gmail.com wrote: File a bug with core.async, thanks. David On Tuesday, April 21, 2015, Yehonathan Sharvit vie...@gmail.com wrote: This piece of code is causing the

[ClojureScript] Re: re-frame - handling default values

2015-04-21 Thread Mike Thompson
On Tuesday, April 21, 2015 at 4:52:05 AM UTC+10, Colin Yates wrote: Hi, This is somewhat reframe specific, but how do people handle default-values that can change? My specific use-case is that I have a tree which can be expanded and collapsed. By default the tree should be expanded to a

Re: [ClojureScript] Re: freactive vs rum

2015-04-21 Thread Julien Eluard
I am also curious about the advantages of using something like Clara versus DataScript listen feature. Especially there has been discussions [1] of improving listen so that it can accept a query details argument. Alan I can see you commented on this ticket how do you think it compares to Clara?

Re: [ClojureScript] Very slow Clojurescript build

2015-04-21 Thread David Nolen
Seems like you have enough information to try and put together a minimal reproducible case. That would be helpful. David On Tue, Apr 21, 2015 at 7:36 AM, Harri Ohra-aho hohra...@gmail.com wrote: Hi, Our project's build has recently got extremely slow if started from a clean state. The build

[ClojureScript] [Help] unsubscribe from reframe subscription?

2015-04-21 Thread Matt Ho
First off, thanks for putting together such a wonderful framework in reframe. We've been using it pretty extensively and loving it. One question came up recently though. Subscribing to an event is straightforward enough, but how do I unsubscribe? Specifically, when the component that's

[ClojureScript] Re: [Help] unsubscribe from reframe subscription?

2015-04-21 Thread Mike Thompson
On Wednesday, April 22, 2015 at 6:18:34 AM UTC+10, Matt Ho wrote: First off, thanks for putting together such a wonderful framework in reframe. We've been using it pretty extensively and loving it. One question came up recently though. Subscribing to an event is straightforward enough,

Re: [ClojureScript] Re: re-frame - handling default values

2015-04-21 Thread Mike Thompson
On Tuesday, April 21, 2015 at 11:43:12 PM UTC+10, Colin Yates wrote: Yes, that is a valid reduction. Specifically my register-handler, which only has access to db needs to know the result of f. The general principle of having my register-sub delegating to a defn which is called from the

Re: [ClojureScript] Re: Slimerjs for client testing on OSX

2015-04-21 Thread jmckitrick
Hi Sebastian, I'm using cemerick/clojurescript.test 0.3.3. The test command I use is {client-test [phantomjs ;;slimerjs :runner resources/es5-shim.js resources/public/js/client-test.js]} As far as I know, there should be no CoffeeScript anywhere in the system. On Tue, Apr 14, 2015 at 10:06 AM