News for hackers. Stuff that matters.
Re:Programming R at native speed using Haskell by jbssm on Wednesday September 09, 2015 @07:58AM (#10190873)
I don't know almost anything about Haskell (tried to learn it some years ago but never pass form the basics).

Yet from what I'm seeing we are only calling R functions from Haskell. I'm probably missing something on the explanation, but how does this speed up R?

Re:Programming R at native speed using Haskell by dagw on Wednesday September 09, 2015 @08:07AM (#10190896)
Often what is slow in an R program is not the core analysis function you want to call, but everything you have to do before and after you call that function, IE turning your raw data into a data structure containing the relevant data to feed into the function and taking the output of the function and munging it into whatever output format you actually need. This should help speed up those bits quite a lot.
Re:Programming R at native speed using Haskell by jbssm on Wednesday September 09, 2015 @08:32AM (#10191009)
I see, thanks. I my own code I suspect that it's the for loops I can't vectorise that are making R taking so long in some operations, so this is where this project would help.

Must give it a try then.

Re:Programming R at native speed using Haskell by Mikeb85 on Wednesday September 09, 2015 @04:16PM (#10194243)
In R its very easy to simply create a function in C++ or Fortran, then call that. Plus there's plenty of functions already that you can call instead of using for loops in R (which really aren't idiomatic).
Re:Programming R at native speed using Haskell by Lofkin on Wednesday September 09, 2015 @03:31PM (#10193768)
You can use python, call out to R libraries with Rpy2 and speed up loops to faster than Julia and around native Speed with numba
Re:Programming R at native speed using Haskell by thesz on Wednesday September 09, 2015 @08:10AM (#10190907)
I don't know about speed, but with this package you can have Haskell types at your disposal.

If you use them properly, you would not be able to compare p values of experiments directly (a common mistake).

Re:Programming R at native speed using Haskell by jbssm on Wednesday September 09, 2015 @08:33AM (#10191015)
I'm an astrophysicist, we don't really trust p-values. But it could be handy in some other areas.