4 ms·
There is a really interesting link between React and Clojurescript in the Om library. There is a great blog entry about Clojurescript and OM by David Nolen "The
by juliangamble 13y ago
There is a really interesting link between React and Clojurescript in the Om library. There is a great blog entry about Clojurescript and OM by David Nolen "The Future of Javascript MVCs".
http://swannodette.github.io/2013/12/17/the-future-of-javascript-mvcs/ http://swannodette.github.io/2013/12/17/the-future-of-javasc...
The claim by David is that, "ClojureScript om based TodoMVC looks 30-40X faster than Backbone.js TodoMVC, which means other JS frameworks left completely in the dust".
https://twitter.com/swannodette/status/412033352699744256 https://twitter.com/swannodette/status/412033352699744256
There is some more discussion of Clojurescript and Om on Fredrik Dyrkell's blog on "A slice of React, Clojurescript and Om". The big idea with Om is to simplify idiomatic state management with Clojurescript’s immutable datastructures, while still getting all the performance. He has some nice comparisons with JavaScript and ClojureScript side by side.
http://www.lexicallyscoped.com/2013/12/25/slice-of-reactjs-and-cljs.html http://www.lexicallyscoped.com/2013/12/25/slice-of-reactjs-a...
On Eric Normand's blog post "React: Another Level of Indirection" he talks about how there are four pieces of the puzzle in ClojureScript Web Development - and Om is the final missing piece:
Problem: Global state management
Solution: Atoms and persistent data structures
Problem: Client-server communication
Solution: EDN (also solved pretty well by JSON)
Problem: Callback hell
Solution: core.async
Problem: Stateful DOM
Solution: React
http://www.lispcast.com/react-another-level-of-indirection http://www.lispcast.com/react-another-level-of-indirection
Form your own opinion of course, but these are some interesting claims.
- grayrest 13y agoI've read them and the only one I feel is misleading is the perf statement. The perf gains over Backbone are because DOM access kills your perf. Backbone isn't fast. It's simple and popular. All the major data binding frameworks can do deferred renders and are on the same order of magnitude. Most need to be configured for it but they can all do it. I think React is a very clever solution to a problem I've been thinking about for years using an approach I would never have considered because I still forget how fast JS engines are. In terms of using it, I'm interested in React because of Clojurescript and not vice versa.