Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-07-12 Thread Alexander Semenov
Found this https://groups.google.com/forum/#!topic/reactjs/LkTihnf6Ey8 "React, by default, only batches it's own events because we need an efficient way of knowing the boundaries of an event loop. You can see this by trigger an update through a click handler: http://jsfiddle.net/25Adh/5/

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-07-12 Thread Alexander Semenov
Hi, David. May I ask you - in Om you queue rendering in requestAnimationFrame by passing a function which calls forceUpdate on the affected components. But as I understand forceUpdate does not guarantee to execute immediately and is also queued. So, the rendering should be out of sync with requ

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-07 Thread David Nolen
If you install locally you need to depend on [om "0.1.6-SNAPSHOT"] I did make a mistake and accidentally did not push the previous version to Clojars which you can depend on as specified in the README: [om "0.1.5"] On Tue, Jan 7, 2014 at 6:29 AM, Rick Walsh wrote: > Hi Guys, > > So... I'm tr

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-07 Thread Rick Walsh
Hi Guys, So... I'm trying to compile a cljs project with OM. As in instructed above I've: cloned the repo: git clone https://github.com/swannodette/om.git Installed: lein install (Output shown below) Retrieving org/clojure/clojurescript/0.0-2138/clojurescript-0.0-2138.pom from central Retr

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-06 Thread David Nolen
The sortable example in the repo is now relatively baked. I'm happy to see React can handle interactive UIs so well. On Monday, January 6, 2014, David Pidcock wrote: > Ha! Just saw your Sortable example popup in Git! > > Very cool. > > > > On Thursday, January 2, 2014 4:00:45 PM UTC-8, David Pidc

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-06 Thread Curtis Gagliardi
I watched a few talks from facebook people about React and was impressed, lots of talk about the simplicity of just rerendering everything and pure functions. I think this is the first time I've been excited about a javascript framework, looking forward to trying it out with Om. On Sunday, Ja

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-05 Thread David Pidcock
Ha! Just saw your Sortable example popup in Git! Very cool. On Thursday, January 2, 2014 4:00:45 PM UTC-8, David Pidcock wrote: > Very nice. Relatively easy to follow.  Basically it's re-implementing the > drag-list behaviour  in React.  I had thought to re-use some existing code, > provide

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread Dave Dixon
On Friday, January 3, 2014 9:25:49 AM UTC-8, David Nolen wrote: > Yeah I cannot reproduce this. Updating to the latest version of lein fixed the problem. Om/React is very cool, looking forward to having some fun with it. -- Note that posts from new members are moderated - please be patient with

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread David Nolen
Yeah I cannot reproduce this. On Fri, Jan 3, 2014 at 12:24 PM, Dave Dixon wrote: > On Friday, January 3, 2014 9:11:34 AM UTC-8, David Nolen wrote: > > Then need more information., need a link to a minimal project where > you're experiencing this problem. > > I think this is a local lein problem

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread Dave Dixon
On Friday, January 3, 2014 9:11:34 AM UTC-8, David Nolen wrote: > Then need more information., need a link to a minimal project where you're > experiencing this problem. I think this is a local lein problem, not something specific to the om project. Just created an empty project using "lein new

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread Dave Dixon
On Friday, January 3, 2014 9:11:34 AM UTC-8, David Nolen wrote: > Then need more information., need a link to a minimal project where you're > experiencing this problem. Sorry, I wasn't clear. I'm building directly from om, i.e. https://github.com/swannodette/om/blob/master/project.clj. -- Not

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread David Nolen
Then need more information., need a link to a minimal project where you're experiencing this problem. On Fri, Jan 3, 2014 at 12:06 PM, Dave Dixon wrote: > On Friday, January 3, 2014 8:50:10 AM UTC-8, David Nolen wrote: > > Sounds like a problem in your project.clj. > > > > > > > > On Fri, Jan 3

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread Dave Dixon
On Friday, January 3, 2014 8:50:10 AM UTC-8, David Nolen wrote: > Sounds like a problem in your project.clj. > > > > On Fri, Jan 3, 2014 at 11:22 AM, Dave Dixon wrote: > > Trying to build an om example. "lein cljsbuild once hello" throws > java.lang.IllegalArgumentException: Duplicate key: or

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread David Nolen
Sounds like a problem in your project.clj. On Fri, Jan 3, 2014 at 11:22 AM, Dave Dixon wrote: > Trying to build an om example. "lein cljsbuild once hello" throws > java.lang.IllegalArgumentException: Duplicate key: org.clojure/clojure. Am > I missing something? The todo example builds fine. Tha

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-03 Thread Dave Dixon
Trying to build an om example. "lein cljsbuild once hello" throws java.lang.IllegalArgumentException: Duplicate key: org.clojure/clojure. Am I missing something? The todo example builds fine. Thanks. Dave -- Note that posts from new members are moderated - please be patient with your first po

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-02 Thread David Pidcock
Very nice. Relatively easy to follow. Basically it's re-implementing the drag-list behaviour in React. I had thought to re-use some existing code, provided I could inform React that the DOM was changing. (This is the approach used by the example in the fiddler, albeit with jquery instead of

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-30 Thread David Nolen
>From a React dev: https://www.khanacademy.org/preview/content/items/xfa03b103 https://github.com/Khan/perseus/blob/master/src/widgets/orderer.jsx#L6-L439 I'm sure this can be adapted for Om. I may write up a simpler Om example in the future. David On Tue, Dec 31, 2013 at 12:43 AM, David Pidco

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-30 Thread David Pidcock
On Thursday, December 19, 2013 11:12:12 AM UTC-8, David Nolen wrote: > Enjoy, http://swannodette.github.io/2013/12/17/the-future-of-javascript-mvcs/ > > > > David I've been playing around with some basics. I'm still a relative n00b when it comes to functional programming, and I've never looked

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-24 Thread Conrad Barski
(Should have written "DSL-based" not "macro-based" On Tuesday, December 24, 2013 1:55:19 PM UTC-6, Conrad Barski wrote: > On Tuesday, December 24, 2013 5:27:12 AM UTC-6, Nikita Prokopov wrote: > > Hi David, > > > > cool work, > > > > Just wondering, why in todomvc you rely so heavily onto #js li

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-24 Thread Conrad Barski
On Tuesday, December 24, 2013 5:27:12 AM UTC-6, Nikita Prokopov wrote: > Hi David, > > cool work, > > Just wondering, why in todomvc you rely so heavily onto #js literals, and > prefer dsl-like syntax (dom/...) instead of some declarative markup like > hiccup? Is it because of performance reaso

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-24 Thread Nikita Prokopov
Hi David, cool work, Just wondering, why in todomvc you rely so heavily onto #js literals, and prefer dsl-like syntax (dom/...) instead of some declarative markup like hiccup? Is it because of performance reasons? Thanks! -- Note that posts from new members are moderated - please be patient

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-22 Thread David Nolen
I've marked my blog post on source maps as outdated - accurate information on source maps and integrating them into your development web server setup can be found here - https://github.com/clojure/clojurescript/wiki/Source-maps David On Sun, Dec 22, 2013 at 1:47 PM, David Nolen wrote: > Conrad

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-22 Thread Daniel Bell
On Sunday, December 22, 2013 11:30:12 AM UTC-7, Conrad Barski wrote: > Hi Daniel- someone doctored up repl-listen to do double duty as a Dev server > for clojurescript files. This is needed because a standard web server can't > follow all the app dependencies to find the cljs files and source map

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-22 Thread David Nolen
Conrad, That's old bug / hack. Your web server can serve the generated source maps now just fine. The easiest thing to do is use :optimizations :none and we generate source maps for each compiled file. David On Sun, Dec 22, 2013 at 1:30 PM, Conrad Barski wrote: > Hi Daniel- someone doctored u

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-22 Thread Conrad Barski
Hi Daniel- someone doctored up repl-listen to do double duty as a Dev server for clojurescript files. This is needed because a standard web server can't follow all the app dependencies to find the cljs files and source map files necessary for the fancy new source mapping stuff. If you follow the

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-22 Thread Daniel Bell
Conrad--- Is there a typo or something? AFAIK, repl-listen doesn't have anything to do with serving up files (are you thinking of Ring?), but with providing a bridge for a REPL to execute cljs in the browser. -- Note that posts from new members are moderated - please be patient with your fir

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-22 Thread Daniel Bell
-- 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 email to clojurescript+unsu

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-21 Thread David Nolen
Don't know about 1. 2 is actually being sorted out, we're determining the best approach according to the core React devs given our slightly unusual usage of React. On Saturday, December 21, 2013, Conrad Barski wrote: > Two quick questions as I am working through the OM stuff... glad if anyone > h

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-21 Thread Conrad Barski
Two quick questions as I am working through the OM stuff... glad if anyone here has some pointers to point me in the right directions... 1. I seem to be unable to get "lein trampoline cljsbuild repl-listen" to serve up a css file on my own Om project... I have my css located at "[project root]/

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-19 Thread Dan Holmsand
On 19 dec 2013, at 23:10, David Nolen wrote: > On Thu, Dec 19, 2013 at 5:02 PM, Dan Holmsand wrote: > You also seem to call React asynchronously. That may be good for performance, > but doesn't makes testing awfully cumbersome? Why not rely on React's own > batching? > > React's batching depe

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-19 Thread David Nolen
On Thu, Dec 19, 2013 at 5:02 PM, Dan Holmsand wrote: > You also seem to call React asynchronously. That may be good for > performance, but doesn't makes testing awfully cumbersome? Why not rely on > React's own batching? > React's batching depends on setState, which I don't want to get involved

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-19 Thread Dan Holmsand
Nice, React seems to be very popular around here today... Very interesting to see such a different take on a React interface from my own humble attempt. I try to keep components as self contained as possible, where as you seem to like more of a top-down approach (if I understand your code corre

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-19 Thread David Nolen
Give it a spin. It's very much early days so I wouldn't get too tied to anything that's currently present. It'll probably take a few months to get something closer to a real API nailed down but the conceptual foundation is there. On Thu, Dec 19, 2013 at 4:39 PM, Luke Morton wrote: > Excellent an

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-19 Thread Luke Morton
Excellent and insightful post David. Thanks for much for your work in Clojure and ClojureScript. Going to be playing with Om as part of my exploration of Clojure(Script). On 19 December 2013 21:36, David Nolen wrote: > On Thu, Dec 19, 2013 at 4:25 PM, Thomas Heller wrote: > >> Hey David, >> >>

Re: [ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-19 Thread David Nolen
On Thu, Dec 19, 2013 at 4:25 PM, Thomas Heller wrote: > Hey David, > > looks really interesting although I have to be a little critical of your > benchmarks. Add a download of 200 todos via xhr and then do the render, you > will most certainly lose to other JS Framework out there (especially if y

[ClojureScript] Re: ANN: Om, a ClojureScript binding to Facebook's React

2013-12-19 Thread Thomas Heller
Hey David, looks really interesting although I have to be a little critical of your benchmarks. Add a download of 200 todos via xhr and then do the render, you will most certainly lose to other JS Framework out there (especially if you choose EDN over JSON) cause of the extra overhead associate