News for hackers. Stuff that matters.
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by alejandrodob on Tuesday May 26, 2015 @11:41AM (#9605507)
Because Clojurescript uses immutable data structures, and keeps the state in a centralized atom, so comparing different states is as easy (and fast) as comparing the different versions of the data structure, which in turn (and thanks to being immutable data structures) reduces to compare their memory references, which is fast.
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by xtrumanx on Tuesday May 26, 2015 @12:18PM (#9605737)
Immutable.js is a project also from FaceBook that brings immutable data structures to your JS applications including those using React.

Since Clojurescript compiles down to JS, wouldn't it be possible to use Immutable.js and a slightly different app design (a single Flux Store for the entire app) to get the same benefit of using React with Clojurescript?

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by lewisl9029 on Wednesday May 27, 2015 @02:24AM (#9609625)
The centralized immutable state oriented architecture advocated by Om can definitely be implemented using plain JavaScript (my favorite in this space is https://github.com/moreartyjs/moreartyjs), but language features like core.async, transducers and macros are not so easily replicated.
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by Touche on Tuesday May 26, 2015 @12:25PM (#9605785)
Nitpicking but ClojureScript the language does not keep state in a centralized atom. That's just a common pattern used for Reagent/Om apps.
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by mbrock on Tuesday May 26, 2015 @11:53AM (#9605590)
Centralized state as an immutable data structure is exactly how the app I work with is built. It's plain JavaScript and React. So I don't see how React is "behind" on this front.
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by woah on Tuesday May 26, 2015 @12:27PM (#9605797)
Nuclear.js also does this, with pretty idiomatic JavaScript