Need advice about which tool to choose?Ask the StackShare community!
Immutable.js vs Raphael: What are the differences?
Developers describe Immutable.js as "Immutable persistent data collections for Javascript which increase efficiency and simplicity, by Facebook". Immutable provides Persistent Immutable List, Stack, Map, OrderedMap, Set, OrderedSet and Record. They are highly efficient on modern JavaScript VMs by using structural sharing via hash maps tries and vector tries as popularized by Clojure and Scala, minimizing the need to copy or cache data. On the other hand, Raphael is detailed as "JavaScript library that draws Vector graphics for web sites". It is a cross-browser JavaScript library that draws Vector graphics for web sites. It will use SVG for most browsers, but will use VML for older versions of Internet Explorer.
Immutable.js and Raphael can be primarily classified as "Javascript Utilities & Libraries" tools.
Immutable.js and Raphael are both open source tools. Immutable.js with 28.2K GitHub stars and 1.64K forks on GitHub appears to be more popular than Raphael with 10.3K GitHub stars and 1.59K GitHub forks.
vLearning Solutions, Gigya, and Fujitsu are some of the popular companies that use Raphael, whereas Immutable.js is used by Instagram, Snapchat, and Rove.me. Raphael has a broader approval, being mentioned in 305 company stacks & 4 developers stacks; compared to Immutable.js, which is listed in 58 company stacks and 64 developer stacks.
Pros of Immutable.js
- Immutable data structures8
- Allows you to mimic functional programming5
- Bring the functional experience to JS2
- Makes writing Javascript less scary1
- Easily transpiles to different ES standards1