Om と persistent data structure

over 1 year ago • written in Japanese

The Future of JavaScript MVC Frameworks

Instead of using JavaScript objects, Om uses ClojureScript data structures which we know will not be changed. Because of this, we can provide a component that implements shouldComponentUpdate by doing the fastest check possible - a reference equality check. This means we can always determine if the paths changed, starting from the root, in logarithmic time.

「未来」についてはまだ飲み込めてないんだけど、persistent data structure ってこういうところに使えるんだというのが面白かった。