4 ms·
There is also Mori[1], a JavaScript API for using ClojureScript's persistent data structures: [1] http://swannodette.github.io/mori/
by falava 12y ago
There is also Mori[1], a JavaScript API for using ClojureScript's persistent data structures:
[1] http://swannodette.github.io/mori/
- swah 12y agoI 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.png https://dl.dropboxusercontent.com/u/19746944/overcast_others...
- smrtinsert 12y agoMori 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.
- misuba 12y agoMori's a bit impractical for use in the browser due to its size.
- taude 12y agoI'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?
- misuba 12y agoI didn't see any such statement above. From 176K to 37K (that's what I got on my console anyway) is impressive.
- moomin 12y agoIf you use ClojureScript, it strips out unused functions...
- klibertp 12y agoThat 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?
- rakoo 12y agoClickable link: https://swannodette.github.io/mori/ https://swannodette.github.io/mori/
- pelle 12y agoMori with it's underscore like API indeed seems much simpler and less C++ and Java like. I guess it depends on your taste.