Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is also Mori[1], a JavaScript API for using ClojureScript's persistent data structures:

  [1] http://swannodette.github.io/mori/


Mori also provides clojure like functionality for the new collections greatly simplifying how you would use them - if you don't use Clojure you might think of the additional functions as an underscore for immutable collections.

I don't see a reason to use any other immutable js lib when Mori exists.


Mori's a bit impractical for use in the browser due to its size.


I'm not seeing how a 32 KB download is impractical in browser use do to size (assuming the above statement about 32KB is true). Is there something else to it?


I didn't see any such statement above. From 176K to 37K (that's what I got on my console anyway) is impressive.


If you use ClojureScript, it strips out unused functions...


That would be true for any properly annotated JS fed to Google Closure Compiler, right?

I definitely need to learn more about it, as dead code elimination for JavaScript seems very, very hard due to its dynamic nature and I'm curious how they do it. Does anyone know about other JS compilers which try to perform dead code elimination?


I really appreciate when a new project mentions the ones in the same space - or the ones that inspired it - and why they aren't good enough and a new project was started.

The guys in the ATP podcast talked about a similar gesture in the Overcast app, and that most users really enjoyed: https://dl.dropboxusercontent.com/u/19746944/overcast_others...


Did FB reference mori? I didn't see it in the README. I was curious if it was just a NIH policy, or if they had reasons why mori didn't fit the bill.


They referenced Clojure. Mori is just Clojure's data structures.



Mori with it's underscore like API indeed seems much simpler and less C++ and Java like. I guess it depends on your taste.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: