These are chat archives for ramda/ramda

12th
May 2016
Joy Krishna Mondal
@JoyKrishnaMondal
May 12 2016 10:38
there is also prelude-ls that is a direct competition with ramda :)
Gabe Johnson
@gabejohnson
May 12 2016 13:10
@JoyKrishnaMondal except they’re targeting two different languages
Raine Virta
@raine
May 12 2016 13:16
ramda works great with livescript and i'd assume prelude-ls works great with js as well. i see no reason to use prelude with either though
Nils Eriksson
@note89
May 12 2016 15:04
Is ramda lazy or does it have someway of doing lazy stuff ? or do i also need lazy.js if i would like to do something like that. tnx!
Raine Virta
@raine
May 12 2016 15:04
no, kind of, maybe
what are you trying to do?
Nils Eriksson
@note89
May 12 2016 15:08
Well im trying to answer the question what js library i could use to emulate lazyness in javascript.
Making a list of what librarys are needed in to get the same feature set as Elm.
i was thinking maybe ramda did both currying and lazyness
Vladimir Starkov
@iamstarkov
May 12 2016 15:22
Afaik ramda does not provide laziness, correct me if I'm wrong here
Ryan Zeigler
@rzeigler
May 12 2016 16:06
@note89 what kind of laziness are you interested in? I investigated http://www.streamjs.org/ when looking for lazy infinite lists
but that was a while ago and there may be other options that you can get from npm
Lewis
@6ewis
May 12 2016 16:17
oh boy...
when you think that in clojurescript you have all that baked in
(lazy-seq (...))
BasH
@bas080
May 12 2016 16:53
6ewis, you know it!
Ryan Zeigler
@rzeigler
May 12 2016 18:16
immutable.js apparently has a lazy-seq as well
Lewis
@6ewis
May 12 2016 18:22
what brought me to ramda was me not wanting to learn immutable.js
I felt like it was overkill just to get immutable state
(just a random comment)
as soon as i heard that there's a lot of converting to do back and forth I ran away
BasH
@bas080
May 12 2016 18:28
6ewis, maybe write a monad around immutable.js's api.
Lewis
@6ewis
May 12 2016 18:28
And oddly enough it's not fully immutable
why don't more people use ramda.js instead to get the same benefit, what am I missing
@bas080 a nomad around immutable.js's api?
BasH
@bas080
May 12 2016 18:32
6ewis, i don't think ramda makes immutable redundant. Or am i wrong?
Ryan Zeigler
@rzeigler
May 12 2016 18:33
immutable is more concerned with the data side and ramda is more concerned with the code side
Lewis
@6ewis
May 12 2016 18:34
@arzig is it fair to compare seamless-immutable to ramda
Ryan Zeigler
@rzeigler
May 12 2016 18:35
neither of them seem to be concerned much with the composition of functions
which is where the bulk of ramda's surface area is
or, like all of it
BasH
@bas080
May 12 2016 18:40
6ewis, a monad yes. Looking at the immutable docs. All the datasets have an of and map method
Lewis
@6ewis
May 12 2016 18:45
@note89 you could use transducers to emulate lazyness to my understanding
This message was deleted
@arzig but all of them are concerned with immutability , and it seems that most people use it for that end - correct me if I'm wrong
Tim Navrotskyy
@dypsilon
May 12 2016 20:15
what do you mean by lazyniess?
Tim Navrotskyy
@dypsilon
May 12 2016 20:41
ok, I found out myself, in case someone else in the channel is interested, here is a nice blog post http://blog.gypsydave5.com/2015/03/21/lazy-eval-and-memo/
Vladimir Starkov
@iamstarkov
May 12 2016 21:03
Memo is in ramda
Lewis
@6ewis
May 12 2016 22:59
memoize
Vladimir Starkov
@iamstarkov
May 12 2016 23:22
Yep