[ClojureScript] Re: Send large immutable data structure with a lot of sharing back and forth to the server

2014-07-25 Thread Zubair Quraishi
Hi Anton, Yes, the change is sent to the server as soon as the change occurs. They could also be bunched up and sent when there are say 20k bytes of changes to be sent, but I haven't found any performance problems yet, so I haven't had to do that yet, but in the future this is very likely how

[ClojureScript] Re: Send large immutable data structure with a lot of sharing back and forth to the server

2014-07-25 Thread peter
Hi Anton, I've been working on a port of Fressian for ClojureScript (https://github.com/spinningtopsofdoom/longshi). I've made it come as close to the api of the Clojure fressian wrapper (https://github.com/clojure/data.fressian) as possible. I'm in the final stages of getting all the perf

[ClojureScript] ANN: ClojureScript 0.0-2277

2014-07-25 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2277 Leiningen dependency information: [org.clojure/clojurescript 0.0-2277] The main reason behind this release is fixing a

[ClojureScript] Re: Send large immutable data structure with a lot of sharing back and forth to the server

2014-07-25 Thread Anton Astashov
On Friday, July 25, 2014 7:43:09 AM UTC-7, Ruslan Prokopchuk wrote: I use clojure.data/diff as briefly explained here http://ul.mantike.pro/syncing-om-with-sente/ , it should be fast on structures which share a lot. It is also applicable to undo/redo stack, you could store it as a pile of

[ClojureScript] Warning: Only React Components are valid for mounting.

2014-07-25 Thread Makoto H.
Hi, I am using om and I often encounter warning of Only React Components are valid for mounting. . For example, when I evaluate the following expression, the warning occurs. (om/root animation-view app-state {:target (.getElementById js/document app)}) What is it and is there any way to

Re: [ClojureScript] Warning: Only React Components are valid for mounting.

2014-07-25 Thread Makoto Hashimoto
Hi Sean, The code is as follows: (def app-state (atom {:count 0 :interval 1000})) (defn animation-view [app owner] (reify om/IWillMount (will-mount [_] (js/setInterval (fn [] (om/transact! app :count inc)) (@app-state :interval))) om/IRender (render [_]

Re: [ClojureScript] Warning: Only React Components are valid for mounting.

2014-07-25 Thread Sean Corfield
I am unable to reproduce it. Here's my project.clj (created by lein new mies-om makoto): (defproject makoto 0.1.0-SNAPSHOT :description FIXME: write this! :url http://example.com/FIXME; :dependencies [[org.clojure/clojure 1.6.0] [org.clojure/clojurescript 0.0-2268]

Re: [ClojureScript] Warning: Only React Components are valid for mounting.

2014-07-25 Thread Makoto H.
Hi Sean, I tested your steps using lein new mies-om makoto and it worked fine without any warning. My environment is complicated but I will check check what causes the warning. (I am using austin and the project has other om test code). https://github.com/tokomakoma123/om-tut Thanks, Makoto

Re: [ClojureScript] Re: Warning: Only React Components are valid for mounting.

2014-07-25 Thread Daniel Kersten
There was a brief discussion about this in the Kioo issue tracker (I thought it was kioo causing the warnings as I first saw them after using kioo) and I believe it happens when you use the latest version of React with Om. Om itself is packaged with a slightly older version of React, so if you

Re: [ClojureScript] Re: Reagent: behavior of nested components

2014-07-25 Thread Michael Wood
On 25 Jul 2014 8:21 PM, Ryan Waters ryan.or...@gmail.com wrote: And for some reason I thought [Clojurescript] was added to the subject line automatically; sorry : ( Indeed it is. I suppose Gmail is just displaying it without it because it merged your sent message with the version that came