Coder Social home page Coder Social logo

Why not using Ramda? about prelude HOT 1 CLOSED

joaomilho avatar joaomilho commented on July 24, 2024
Why not using Ramda?

from prelude.

Comments (1)

briancavalier avatar briancavalier commented on July 24, 2024

Hi @joaomilho. I'm a big fan of Ramda, and have recommended it using it with most--they work together quite well because both support Fantasy Land. However, @most/prelude and Ramda have different priorities and goals. Ramda is a great end-user FP lib. @most/prelude's top priority is to serve the internal needs of most.js and @most/... packages. That way it can stay smaller, and provide maximum performance for the narrow use cases inside of most.

For example, @most/prelude's map, reduce, etc. only need to support arrays, and not also iterables and transducers, as Ramda's do. Another example: @most/prelude's public API is intentionally uncurried, to avoid the (small) overhead of calling curried functions in JS.

The size difference is also substantial. Ramda is larger than all of most.js, currently. I realize it's possible to do custom builds of Ramda, but prelude is less than 1kb gzipped currently.

-rw-r--r--  1 brian  staff     950 Apr 28 15:20 prelude.min.js.gz

-rw-r--r--  1 brian  wheel   11444 May  9 08:36 ramda.min.js.gz

-rw-r--r--  1 brian  staff   11252 May  6 07:28 most.min.js.gz

So, for now, we'll stick with prelude.

from prelude.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.