Re: [ClojureScript] ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread Dan Holmsand
Thanks! :) /dan On 25 jan 2014, at 01:18, David Nolen wrote: > Great stuff! :) > > > On Fri, Jan 24, 2014 at 7:52 AM, Dan Holmsand wrote: > Cloact, a minimalistic interface between React.js and ClojureScript, is now > called Reagent (the old name was bad in all sorts of ways). > > There is

Re: [ClojureScript] Reagent port of the Om tutorial

2014-01-24 Thread David Nolen
Nice. I do consider the non-modularity of `update-contacts!` here to be one of the big things I try to address in Om. The Reagent `update-contacts!` knows too much. In Om, it doesn't matter at all where :contacts lives in the app state, the Om contacts-view can still update it. David On Sat, Jan

Re: [ClojureScript] A bug in cljs.reader?

2014-01-24 Thread David Nolen
Known bug - http://dev.clojure.org/jira/browse/CLJS-677 On Sat, Jan 25, 2014 at 12:30 AM, wrote: > Came across this issue today when attempting to read a keyword that starts > with a number. > > > (read-string "{:42 \"the answer\"}") > "Cannot read property '0' of null" > > The source of the pr

[ClojureScript] A bug in cljs.reader?

2014-01-24 Thread tcr1272
Came across this issue today when attempting to read a keyword that starts with a number. > (read-string "{:42 \"the answer\"}") "Cannot read property '0' of null" The source of the problem stems from the read-keyword function that uses a symbol-pattern[1]: > (re-matches* symbol-pattern "42")

Re: [ClojureScript] Om Templating

2014-01-24 Thread Mike Haney
Creighton, I've been meaning to thank you for kioo, so - Thanks! I've always been a big fan of the Enlive/Enfocus method of templating, and was excited to see kioo when David added it to the OM readme the other day. Planning on putting it through its paces this weekend with a POC of a fairly

[ClojureScript] Reagent port of the Om tutorial

2014-01-24 Thread Jonas Enlund
Hi As an exercise I ported the Om tutorial to Reagent. It's available at https://github.com/jonase/reagent-tutorial I hope you find it interesting. Jonas -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread David Nolen
Heh, yeah I don't intend to add anything directly to Om for this, just interested in the types of solutions people come up with. Om is pretty tiny and I'd like to keep it that way. On Fri, Jan 24, 2014 at 8:18 PM, Moritz Ulrich wrote: > On Sat, Jan 25, 2014 at 12:37 AM, David Nolen > wrote: >

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread David Pidcock
I imagine it'd be a separate library to "add on" to Om, when desired. Something "compatible" in much the same way kioo and sablono are template addons. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are sub

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread Moritz Ulrich
On Sat, Jan 25, 2014 at 12:37 AM, David Nolen wrote: > Haven't thought it through but synchronization between client/server is > definitely something I'm interested in. Hopefully not for Om! :) I don't think Om should handle that sort of stuff - It might easily grow into a monolithic framework if

Re: [ClojureScript] ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread David Nolen
Great stuff! :) On Fri, Jan 24, 2014 at 7:52 AM, Dan Holmsand wrote: > Cloact, a minimalistic interface between React.js and ClojureScript, is > now called Reagent (the old name was bad in all sorts of ways). > > There is also a new little demo of how to implement undo for Reagent > components

[ClojureScript] ANN: Om 0.3.0

2014-01-24 Thread David Nolen
A few minor simplifications to the Om model in this release. A breaking change if you were using om.core/bind, om.core/pure-bind or om.core/read - these complications have been removed. There's also now a tutorial optimized for Light Table for people want to understand the Om approach to React wit

[ClojureScript] Re: Om Templating

2014-01-24 Thread David Pidcock
... err , ninja'd.. @ Creighton -- Cool, I didn't know kinoo does the slurping part as well. Neat -- 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

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread David Pidcock
On Friday, January 24, 2014 3:45:49 PM UTC-8, David Nolen wrote: > FWIW the latest changes to Pedestal 0.3.0 (still not officially released) > dictates much less with respect to the client. > Good to know. I hope they're also leveraging core.async .. they were at the forefront with their own m

[ClojureScript] Re: Om Templating

2014-01-24 Thread David Pidcock
On Friday, January 24, 2014 3:16:17 PM UTC-8, Joel wrote: > Is there a way to convert html to Om/ClojureScript syntax easily? Or, is > there a way already to simply use some kind of templates that are closer to > html? > > J Well, there's two different plugins for component syntax, but I imagin

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread David Nolen
FWIW the latest changes to Pedestal 0.3.0 (still not officially released) dictates much less with respect to the client. On Fri, Jan 24, 2014 at 6:42 PM, David Pidcock wrote: > I'd also search around for some of the work done on core-async and > web-workers. I'm sure I read of some successful

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread David Pidcock
I'd also search around for some of the work done on core-async and web-workers. I'm sure I read of some successful implementations of client-server comms in that arena (on this forum). Pedestal is great, (although a bit intimidating for a functional-newb like myself).. OTOH, it's pretty much

Re: [ClojureScript] Om Templating

2014-01-24 Thread Creighton Kirkendall
Check out kioo, it does exactly what suggest. It uses a model similar to enlive to pull html in and compile into react nodes. https://github.com/ckirkendall/kioo CK On Fri, Jan 24, 2014 at 6:16 PM, Joel wrote: > Is there a way to convert html to Om/ClojureScript syntax easily? Or, is > ther

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread David Nolen
Haven't thought it through but synchronization between client/server is definitely something I'm interested in. On Fri, Jan 24, 2014 at 5:40 PM, Joel wrote: > > I Lisp'ed quite some time ago, so no longer an insider, although I do get > the gist of Om and Clojure particularly the immutable stat

Re: [ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread Gary Trakhman
It might be worth taking a look at pedestal, it predates Om, but it's built to implement an application state model shared between UI and server. http://pedestal.io/ On Fri, Jan 24, 2014 at 5:40 PM, Joel wrote: > > I Lisp'ed quite some time ago, so no longer an insider, although I do get > the

[ClojureScript] Om Templating

2014-01-24 Thread Joel
Is there a way to convert html to Om/ClojureScript syntax easily? Or, is there a way already to simply use some kind of templates that are closer to html? J -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you ar

[ClojureScript] OM/Reagent Handling client/server synchronization

2014-01-24 Thread Joel
I Lisp'ed quite some time ago, so no longer an insider, although I do get the gist of Om and Clojure particularly the immutable state. I was wondering if Om already (or could) be used for keeping state in sync with the server as well as other clients. Maybe this has already been "exampled", bu

[ClojureScript] CLJS tutorials

2014-01-24 Thread Julio Barros
Hi Mimmo, Just wanted to say that I really liked the modern cljs tutorials. They are very well done and I got a lot out of them. Thank you for making them available. Julio -- Note that posts from new members are moderated - please be patient with your first post. --- You received this me

Re: [ClojureScript] clojurescript.test vs cljs.nodejs

2014-01-24 Thread Michael Glaesemann
On Jan 24, 2014, at 9:18, Chas Emerick wrote: > For anyone following along, I've merged Michael's patch (thanks again! :-D), > and "released" a SNAPSHOT build of clojurescript.test that includes the > node.js test runner. Use version "0.2.2-SNAPSHOT" to get it. Thanks for the patient guidance

Re: [ClojureScript] clojurescript.test vs cljs.nodejs

2014-01-24 Thread Roman Scherer
Works great for me. Thanks! On Friday, January 24, 2014 3:18:48 PM UTC+1, Chas Emerick wrote: > On Thu 23 Jan 2014 09:29:52 PM EST, Chas Emerick wrote: > > > > > > On 01/23/2014 08:19 PM, Michael Glaesemann wrote: > > >> On Jan 23, 2014, at 10:16, Chas Emerick wrote: > > >> > > >>> Nice, than

Re: [ClojureScript] OM: read - an experience report & some suggestions

2014-01-24 Thread David Nolen
On Fri, Jan 24, 2014 at 2:44 PM, kovas boguta wrote: > On Fri, Jan 24, 2014 at 10:29 AM, David Nolen > wrote: > > a) cursor can always be read directly during the render phase > > What does that look like exactly? No more om/value? Or by "directly", > you mean via re-walking the path from the roo

Re: [ClojureScript] OM: read - an experience report & some suggestions

2014-01-24 Thread kovas boguta
On Fri, Jan 24, 2014 at 10:29 AM, David Nolen wrote: > a) cursor can always be read directly during the render phase What does that look like exactly? No more om/value? Or by "directly", you mean via re-walking the path from the root? > b) outside the render phase you can only update the applica

[ClojureScript] Re: ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread Shashy Dass
Thanks for a great library and the fantastic documentation too. Reagent is fantastic. Shashy -- 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 unsu

Re: [ClojureScript] OM: read - an experience report & some suggestions

2014-01-24 Thread David Nolen
Ok I agree that om.core/read is a bear now that I'm working on the Om tutorial. Here's are my current thoughts for 0.3.0: a) cursor can always be read directly during the render phase b) outside the render phase you can only update the application state or `cljs.core/deref` cursors and you will g

Re: [ClojureScript] Re: ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread Dan Holmsand
On 24 jan 2014, at 16:32, ritchie turner wrote: > Thanks for this library, i like the simplicity. > > One issue, I'm trying to add a non standard attr during rendering but it's > being dropped, is that a bug or a feature :) ? Thanks! Turns out its both bug and feature... Non standard attribu

[ClojureScript] Re: ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread ritchie turner
Hi Thanks for this library, i like the simplicity. One issue, I'm trying to add a non standard attr during rendering but it's being dropped, is that a bug or a feature :) ? Specifically trying to add prod-code to the img tag, doesn't turn up in output [:img.action {:src "/images/baske

[ClojureScript] Re: ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread ritchie turner
I've started to use reagent, I like how simple it is. Thanks! R On Friday, January 24, 2014 9:52:39 AM UTC-3, Dan Holmsand wrote: > Cloact, a minimalistic interface between React.js and ClojureScript, is now > called Reagent (the old name was bad in all sorts of ways). > > > > There is als

Re: [ClojureScript] clojurescript.test vs cljs.nodejs

2014-01-24 Thread Chas Emerick
On Thu 23 Jan 2014 09:29:52 PM EST, Chas Emerick wrote: On 01/23/2014 08:19 PM, Michael Glaesemann wrote: On Jan 23, 2014, at 10:16, Chas Emerick wrote: Nice, thanks for digging in! It looks like you're not yet accommodating arbitrary JS expressions, which can appear in the test command ve

[ClojureScript] ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread Dan Holmsand
Cloact, a minimalistic interface between React.js and ClojureScript, is now called Reagent (the old name was bad in all sorts of ways). There is also a new little demo of how to implement undo for Reagent components here: http://holmsand.github.io/reagent/news/cloact-reagent-undo-demo.html The