These are chat archives for ramda/ramda

19th
Feb 2016
Stepan Kuzmin
@stepankuzmin
Feb 19 2016 12:23
Hi there! Is there any way to do string interpolation using Ramda?
Raine Virta
@raine
Feb 19 2016 12:30
there is not
what are you trying to do
Scott Sauyet
@CrossEye
Feb 19 2016 12:53
@LeonineKing1199: sorry, device died mid-conversation yesterday, then forgot about it when recharged. Yes, it might be interesting to report algorithmic complexity at least for the surprising ones like uniq.
Jakub Korzeniowski
@kujon
Feb 19 2016 14:51
do I understand it correctly that the only difference in between Reader and IO (ramda-fantasy) is that the former is environment dependent? or am I missing something?
Richard Seldon
@arcseldon
Feb 19 2016 16:48
@LeonineKing1199 - I have used https://www.npmjs.com/package/plato on a number of node projects, and it is abc simple to introduce if you were considering a PR. Please let me know if you have something better - always keen to learn which NPM modules are best in given field.
Scott Sauyet
@CrossEye
Feb 19 2016 17:25
@arcseldon: if I understand correctly, it's a matter of algorithmic complexity rather than code complexity.
LeonineKing1199
@LeonineKing1199
Feb 19 2016 17:53
Source code analysis is awesome but yes, I meant algorithmic complexity. But then again I'm a weirdo who's obsessed with things like cache hit ratios. If I could, I'd profile my JavaScript 'til my eyes bleed.
Then again, I'm not as bad as the CUDA programmers, hey-oh!
Richard Seldon
@arcseldon
Feb 19 2016 18:13
Hi. Sorry, yep thanks for clarifying - I was thinking of halstead complexity etc
Richard Seldon
@arcseldon
Feb 19 2016 18:21
@CrossEye - was taking a look at the ramda manual you have started. Think it is currently tied to version 17 - is that right? http://ramdajs.com/0.17/manual/index.html
if you think the light weight descriptions / unit tests i provided for "other libraries" section is of sufficient quality i could raise a PR and get that loaded in there.
I would quite like to have a go at the algebraic data types section and how it relates to ramda too, but still slightly fumbling in the dark atm - raised an issue to hear any discussion / get some pointers here.
think i now have a strong enough handle on the basic concepts from a Haskell view point, just trying to relate that back to FL spec - ie. bind, return, pure etc in terms of what has been provided in JS world.
LeonineKing1199
@LeonineKing1199
Feb 19 2016 18:25
return (char* data = malloc(64));
Does that count as giving a pointer?
Richard Seldon
@arcseldon
Feb 19 2016 18:27
lol, ok now i got it :smile:
shall choose my wording better in future - i did ask for "any pointer" so...
LeonineKing1199
@LeonineKing1199
Feb 19 2016 18:28

Lol I couldn't resist. Hold on, I gotta make sure I release that memory back to the OS.

free(data);

Phew. Crisis averted.
Richard Seldon
@arcseldon
Feb 19 2016 18:35
@LeonineKing1199 - which npm packages would you consider for the algorithmic complexity analysis? interested to learn more. It is 3:35 am here in Japan, so likely going to crash any minute - but not from memory leak problems!
Scott Sauyet
@CrossEye
Feb 19 2016 19:41
@arcseldon: it's not tired to that version
You can replace the 0.17 with 0.18.0 or 0.19.1 or 0.19.0.
a build change now means we have to include the point number in the URL.
*tied to that version
LeonineKing1199
@LeonineKing1199
Feb 19 2016 19:43
@arcseldon I don't know of any, actually. Ramda's documentation does point to the implementations on their github so it would be possible to just go an look and derive it from there. It'd be neat if there was a programmatic way of doing complexity analysis.
Scott Sauyet
@CrossEye
Feb 19 2016 19:44
Please feel free to open a PR. I would expect to offer changes, but I haven't thought through at that level yet.
(Sorry, that was silk @arcseldon )
wow. Lovely autocorrect. That was still @arcseldon .
Asaf
@asaf-romano
Feb 19 2016 21:41
@CrossEye converge(Array.of) is the current implementation of juxt :)
well _arrayOf, but still
unless i read the comment wrong
btw, see private msg.
Scott Sauyet
@CrossEye
Feb 19 2016 21:52
@LeonineKing1199: I'd be curi