Re: [ClojureScript] core.async - restriction on macros inside go block?

2014-07-23 Thread Tom Locke
OK I've filed this here: http://dev.clojure.org/jira/browse/ASYNC-79 In trying to create a minimal test case I tried a trivial macro (defmacro my-case [expr cases] `(case ~expr ~@cases)) inside a go block, and that worked fine, so it's more subtle than just case in a macro is broken. I

Re: [ClojureScript] Re: Kioo and devcards

2014-07-23 Thread Daniel Kersten
Yeah, I was thinking that too. Certainly the simplest is just to go oh, html changed, so touch all cljs files. It may even be enough to touch only cljs files containing devcards - it would miss kioo components in other files, but it would still be a lot better than it currently is. On 22 July

Re: [ClojureScript] core.async - restriction on macros inside go block?

2014-07-23 Thread Daniel Kersten
Honestly, I'm against having core.async as anything other than a normal macro. The less built-in magic the better, plus its nice to know that almost everything I use, I could in theory build myself without hacking the language itself, should I ever want to. The more features that get special

Re: [ClojureScript] core.async - restriction on macros inside go block?

2014-07-23 Thread Daniel Kersten
*I meant to write clean architecture :-) On 23 July 2014 15:29, Daniel Kersten dkers...@gmail.com wrote: Honestly, I'm against having core.async as anything other than a normal macro. The less built-in magic the better, plus its nice to know that almost everything I use, I could in theory

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

2014-07-23 Thread Anton Astashov
Hello, Is there any good way to send large immutable data with a lot of structural sharing (like, app state with undo/redo stack) to the server, and also get it from the server and correctly rebuild it in browser's memory? If I just do (clj-js my-data), I will get a JSON, but it will lose the

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

2014-07-23 Thread Sean Grove
We've been exploring lots of different options for this as well. Not quite ready to share it yet, but there's no out-of-the-box solution to do this efficiently yet it seems. On Wed, Jul 23, 2014 at 10:47 AM, Anton Astashov anton.astas...@gmail.com wrote: Hello, Is there any good way to send

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

2014-07-23 Thread Andrew Chambers
Sounds like a tree diff algorithm to me. http://stackoverflow.com/questions/5894879/detect-differences-between-tree-structures On Thursday, July 24, 2014 5:47:54 AM UTC+12, Anton Astashov wrote: Hello, Is there any good way to send large immutable data with a lot of structural sharing

[ClojureScript] Re: Browser memory leaks

2014-07-23 Thread Andrew Stoeckley
On Thursday, July 24, 2014 10:07:56 AM UTC+8, Andrew Stoeckley wrote: I'm looking for advice on where to start looking for the cause of a clojurescript app racking up a whopping 2.5 GB of memory usage according to the Chrome Task Manager. I just found this:

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

2014-07-23 Thread Zubair Quraishi
Hi Anton, In the Coils framework it does actually share structures (atoms) from the client to the server, which can then be replayed back to the client again. An example is at: http://connecttous.co/ :where you can play around with the sample application, and then you can go to: